16 lines
257 B
Crystal
16 lines
257 B
Crystal
module Backend
|
|
module Db
|
|
class TeacherVote
|
|
include Clear::Model
|
|
self.table = :teacher_votes
|
|
|
|
primary_key type: :serial
|
|
|
|
belongs_to vote : Vote
|
|
belongs_to teacher : Teacher
|
|
|
|
column priority : Int32
|
|
end
|
|
end
|
|
end
|