15 lines
218 B
Crystal
15 lines
218 B
Crystal
require "granite"
|
|
|
|
module MW
|
|
module Db
|
|
class Vote < Granite::Base
|
|
table votes
|
|
|
|
belongs_to :student
|
|
has_many teacher_votes : TeacherVote
|
|
|
|
column id : Int64, primary: true
|
|
end
|
|
end
|
|
end
|