12345678910111213141516171819202122232425262728293031 |
- //
- // RoleModel.swift
- // Learn Genie
- //
- // Created by Suraj Kumar Mandal on 03/09/21.
- //
- import Foundation
- import RealmSwift
- class RoleModel: Object {
-
- @objc dynamic var id = 0
- @objc dynamic var name = ""
- @objc dynamic var authority = ""
-
- override static func primaryKey() -> String? {
- return "id"
- }
-
- convenience init(id:Int, name:String, authority:String) {
-
- self.init()
-
- self.id = id
- self.name = name
- self.authority = authority
-
- }
-
- }
|