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

16 lines
301 B
Crystal

module Backend
module Db
class Student
include Clear::Model
self.table = :students
primary_key type: :serial
belongs_to user : User
has_one vote : Vote?, foreign_key: :student_id
has_one assignment : Assignment?, foreign_key: :student_id
end
end
end