16 lines
255 B
Crystal
16 lines
255 B
Crystal
require "granite"
|
|
|
|
module MW
|
|
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
|
|
end
|
|
end
|
|
end
|