1
0

models.txt 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  1. package api
  2. import "time"
  3. type Subject struct {
  4. ID uint
  5. Name string
  6. Shortname string
  7. ID_professionalmodule uint
  8. }
  9. type Professionalmodule struct {
  10. ID uint
  11. Name string
  12. Shortname string
  13. IDCycle uint
  14. }
  15. type Cycle struct {
  16. ID uint
  17. Name string
  18. Shortname string
  19. }
  20. type Lesson struct {
  21. ID uint
  22. Timestart time.Time
  23. Timeend time.Time
  24. }
  25. type Attestation struct {
  26. ID uint
  27. Name string
  28. Shortname string
  29. }
  30. type SubjectOfGroup struct {
  31. ID uint
  32. IDSubject uint
  33. IDGroup uint
  34. IDTeacher uint
  35. IDSemester uint
  36. IDAttestation uint
  37. Hoursquantity uint
  38. }
  39. type Semester struct {
  40. ID uint
  41. WeeksQuantity uint
  42. }
  43. type Teacher struct {
  44. ID uint
  45. Name string
  46. IDClassroom uint
  47. Surname string
  48. Patronymic string
  49. }
  50. type ScheduleOfGroup struct {
  51. ID uint
  52. IDSubject uint
  53. IDGroup uint
  54. IDSchedule uint
  55. IDLessonNumber uint
  56. IDClassroom uint
  57. }
  58. type Schedule struct {
  59. ID uint
  60. IsShort bool
  61. IDGroup uint
  62. IsEvenWeek bool
  63. Weekday string
  64. }
  65. type Classroom struct {
  66. ID uint
  67. Placequantity uint
  68. Iscomputer bool
  69. IDBuilding uint
  70. Name string
  71. }
  72. type Building struct {
  73. ID uint
  74. Address string
  75. }
  76. type Group struct {
  77. ID uint
  78. IDSpecialty uint
  79. Year uint
  80. IDTeacher uint
  81. Groupnumber string
  82. }
  83. type Specialty struct {
  84. ID uint
  85. Code string
  86. Name string
  87. IDDuration uint
  88. }
  89. type DurationOfStudy struct {
  90. ID uint
  91. Yearsquantity uint
  92. }