mentorenwahl/backend/src/backend/db/teacher.cr
Dominic Grimm 50379148bc
Some checks failed
continuous-integration/drone/push Build is failing
Update codebase
2022-10-31 09:47:26 +01:00

18 lines
353 B
Crystal

module Backend
module Db
class Teacher
include Clear::Model
self.table = :teachers
primary_key type: :serial
belongs_to user : User
column max_students : Int32
has_many teacher_votes : TeacherVote, foreign_key: :teacher_id
has_many assignments : Assignment, foreign_key: :teacher_id
end
end
end