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
class Customer: Object, Decodable { | |
@objc dynamic var id: Int = 0 | |
@objc dynamic var name: String = "" | |
@objc dynamic var birthday: Date = Date() | |
@objc dynamic var age: Int = 0 | |
var sales = List<Sales>() | |
override public static func primaryKey() -> String? { | |
return "id" |
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
range Rows = 1..10; |