15 lines
266 B
Crystal
15 lines
266 B
Crystal
module Backend
|
|
module Db
|
|
class Teacher < Granite::Base
|
|
table teachers
|
|
|
|
belongs_to :user
|
|
has_many teacher_votes : TeacherVote
|
|
|
|
column id : Int64, primary: true
|
|
column max_students : Int32
|
|
column skif : Bool
|
|
end
|
|
end
|
|
end
|