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