16 lines
306 B
Crystal
16 lines
306 B
Crystal
|
require "jennifer"
|
||
|
|
||
|
class User < Jennifer::Model::Base
|
||
|
with_timestamps
|
||
|
|
||
|
mapping(
|
||
|
id: {type: String, primary: true},
|
||
|
email: String,
|
||
|
discord_only_account: {type: Bool, default: false},
|
||
|
discord_id: String?,
|
||
|
password_hash: String?,
|
||
|
created_at: Time?,
|
||
|
updated_at: Time?,
|
||
|
)
|
||
|
end
|