StudentDetailsModel.swift 782 B

12345678910111213141516171819202122232425262728293031323334353637
  1. //
  2. // StudentDetailsModel.swift
  3. // LMS
  4. //
  5. // Created by Suraj Kumar Mandal on 27/12/22.
  6. //
  7. import Foundation
  8. import RealmSwift
  9. class StudentDetailsModel: Object {
  10. @objc dynamic var studentId = 0
  11. @objc dynamic var standard = ""
  12. @objc dynamic var division = ""
  13. @objc dynamic var academicYear = ""
  14. override static func primaryKey() -> String? {
  15. return "studentId"
  16. }
  17. convenience init(studentId: Int,
  18. standard: String,
  19. division :String,
  20. academicYear :String
  21. ) {
  22. self.init()
  23. self.studentId = studentId
  24. self.standard = standard
  25. self.division = division
  26. self.academicYear = academicYear
  27. }
  28. }