12345678910111213141516171819202122232425262728293031323334353637 |
- //
- // StudentDetailsModel.swift
- // LMS
- //
- // Created by Suraj Kumar Mandal on 27/12/22.
- //
- import Foundation
- import RealmSwift
- class StudentDetailsModel: Object {
-
- @objc dynamic var studentId = 0
- @objc dynamic var standard = ""
- @objc dynamic var division = ""
- @objc dynamic var academicYear = ""
-
- override static func primaryKey() -> String? {
- return "studentId"
- }
-
- convenience init(studentId: Int,
- standard: String,
- division :String,
- academicYear :String
- ) {
-
- self.init()
-
- self.studentId = studentId
- self.standard = standard
- self.division = division
- self.academicYear = academicYear
-
- }
-
- }
|