// // UserDetailsModel.swift // Learn Genie // // Created by Suraj Kumar Mandal on 11/09/21. // import Foundation import RealmSwift class UserDetailsModel: Object { @objc dynamic var accountExpired = 0 @objc dynamic var accountLocked = 0 @objc dynamic var dateCreated = "" @objc dynamic var dateOfBirth = "" @objc dynamic var districtId = 0 @objc dynamic var email = "" @objc dynamic var enabled = 0 @objc dynamic var gender = "" @objc dynamic var id = 0 @objc dynamic var levelId = 0 @objc dynamic var mobile = "" @objc dynamic var name = "" @objc dynamic var password = "" @objc dynamic var passwordExpired = 0 @objc dynamic var roleId = 0 @objc dynamic var stateId = 0 @objc dynamic var topicId = 0 @objc dynamic var username = "" @objc dynamic var appleIdentifier = "" override static func primaryKey() -> String? { return "email" } convenience init(accountExpired: Int, accountLocked :Int, dateCreated :String, dateOfBirth: String, districtId: Int, email : String, enabled : Int, gender : String, id : Int, levelId : Int, mobile : String, name : String, password : String, passwordExpired : Int, roleId : Int, stateId : Int, topicId : Int, username : String, appleIdentifier: String ) { self.init() self.accountExpired = accountExpired self.accountLocked = accountLocked self.dateCreated = dateCreated self.dateOfBirth = dateOfBirth self.districtId = districtId self.email = email self.enabled = enabled self.gender = gender self.id = id self.levelId = levelId self.mobile = mobile self.name = name self.password = password self.passwordExpired = passwordExpired self.roleId = roleId self.stateId = stateId self.topicId = topicId self.username = username self.appleIdentifier = appleIdentifier } }