Skip to content

Instantly share code, notes, and snippets.

@maltebucksch
Last active June 26, 2018 07:56
Show Gist options
  • Save maltebucksch/5850d4e2619988b682e5f1811ee83687 to your computer and use it in GitHub Desktop.
Save maltebucksch/5850d4e2619988b682e5f1811ee83687 to your computer and use it in GitHub Desktop.
Sync-service: User-model
class User: Object {
@objc dynamic var id: Int = 0
@objc dynamic var username: String = ""
@objc dynamic var updatedDate: Date = Date()
override static func primaryKey() -> String? {
return "id"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment