Created
December 30, 2017 00:12
-
-
Save kmkrn/af4e2b63b01000fa3eea0436fb770b92 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
import Foundation | |
import Realm | |
import RealmSwift | |
class CatPerson: Object, Decodable { | |
@objc dynamic var personId: Int = 0 | |
@objc dynamic var firstName: String = "" | |
@objc dynamic var lastName: String = "" | |
var cats = List<Cat>() | |
override static func primaryKey() -> String? { | |
return "personId" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment