14 lines
209 B
Crystal
14 lines
209 B
Crystal
module Backend
|
|
module Db
|
|
class Student < Granite::Base
|
|
table students
|
|
|
|
belongs_to :user
|
|
has_one :vote
|
|
|
|
column id : Int64, primary: true
|
|
column skif : Bool
|
|
end
|
|
end
|
|
end
|