13 lines
204 B
Crystal
13 lines
204 B
Crystal
module Backend
|
|
module Db
|
|
class Vote < Granite::Base
|
|
table votes
|
|
|
|
belongs_to :student
|
|
has_many teacher_votes : TeacherVote
|
|
|
|
column id : Int64, primary: true
|
|
end
|
|
end
|
|
end
|