Last active
June 26, 2018 07:56
-
-
Save maltebucksch/5850d4e2619988b682e5f1811ee83687 to your computer and use it in GitHub Desktop.
Sync-service: User-model
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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