models.go 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161
  1. package api
  2. import(
  3. "../schedule"
  4. )
  5. type Professionalmodule struct {
  6. ID uint
  7. Name string
  8. Shortname string
  9. IDCycle uint
  10. }
  11. type Cycle struct {
  12. ID uint
  13. Name string
  14. Shortname string
  15. }
  16. type Lesson struct {
  17. ID uint
  18. Timestart string
  19. Timeend string
  20. }
  21. type Attestation struct {
  22. ID uint
  23. Name string
  24. Shortname string
  25. }
  26. type Subjectofgroup struct {
  27. ID uint
  28. IDSubject uint
  29. IDGroup uint
  30. IDTeacher uint
  31. IDSemester uint
  32. IDAttestation uint
  33. Hoursquantity uint
  34. }
  35. type Subject struct {
  36. ID uint
  37. Name string
  38. Shortname string
  39. ID_professionalmodule uint
  40. IDStype uint
  41. }
  42. type Group struct {
  43. ID uint
  44. IDSpecialty uint
  45. Year uint
  46. IDTeacher uint
  47. Groupnumber string
  48. Studentsquantity uint
  49. Isbudget bool
  50. IDPlan uint
  51. }
  52. type Semester struct {
  53. ID uint
  54. Weeksquantity uint
  55. }
  56. type Exampleprogram struct {
  57. ID uint
  58. IDSpecialty uint
  59. }
  60. type Teacher struct {
  61. ID uint
  62. Name string
  63. IDClassroom uint
  64. Surname string
  65. Patronymic string
  66. }
  67. type Scheduleofgroup struct {
  68. ID uint
  69. IDSubject uint
  70. IDGroup uint
  71. IDSchedule uint
  72. IDLessonnumber uint
  73. IDClassroom uint
  74. }
  75. type Schedule struct {
  76. ID uint
  77. IsShort bool
  78. IDGroup uint
  79. IsEvenWeek bool
  80. Weekday schedule.DayType
  81. }
  82. type Classroom struct {
  83. ID uint
  84. Placequantity uint
  85. Iscomputer bool
  86. IDBuilding uint
  87. Name string
  88. }
  89. type Building struct {
  90. ID uint
  91. Address string
  92. }
  93. type Specialty struct {
  94. ID uint
  95. Code string
  96. Name string
  97. IDDuration uint
  98. }
  99. type DurationOfStudy struct {
  100. ID uint
  101. Yearsquantity uint
  102. }
  103. type Subjecttype struct {
  104. ID uint
  105. Name string
  106. }
  107. type Subjectofplan struct {
  108. ID uint
  109. IDPlan uint
  110. IDSubject uint
  111. Hoursquantitytotal uint
  112. independentwork uint
  113. consulthours uint
  114. }
  115. type Studyplan struct {
  116. ID uint
  117. IDSpecialty uint
  118. IDGroup uint
  119. Isarchive bool
  120. }
  121. type Subjectofexample struct {
  122. ID uint
  123. IDSubject uint
  124. IDExampleprogram uint
  125. Totalhours uint
  126. Preferredcourse string
  127. Labhours uint
  128. Practicehours uint
  129. }
  130. type VariateHours struct {
  131. IDSubject uint
  132. Freehours uint
  133. }