Skip to content

Instantly share code, notes, and snippets.

@abdulowork
Created December 27, 2016 18:58
Show Gist options
  • Save abdulowork/d855901300d2d59513323b74101078f0 to your computer and use it in GitHub Desktop.
Save abdulowork/d855901300d2d59513323b74101078f0 to your computer and use it in GitHub Desktop.
import RealmSwift
class MarketGroup: Object {
dynamic var marketGroupID: Int = -1
dynamic var parentGroup: MarketGroup? = nil
dynamic var marketGroupName: String = ""
dynamic var groupDescription: String = ""
dynamic var hasTypes: Bool = false
var iconID: RealmOptional<Int> = RealmOptional(nil)
override static func primaryKey() -> String? {
return "marketGroupID"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment