Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/placeos-models/user.cr
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,9 @@ module PlaceOS::Model
attribute support : Bool = false, mass_assignment: false
attribute locatable : Bool = true

attribute login_count : Int64 = 0
attribute last_login : Time? = nil, converter: Time::EpochConverterOptional, type: "integer", format: "Int64"
attribute logged_out_at : Time? = nil
attribute login_count : Int64 = 0, mass_assignment: false
attribute last_login : Time? = nil, mass_assignment: false, converter: Time::EpochConverterOptional, type: "integer", format: "Int64"
attribute logged_out_at : Time? = nil, mass_assignment: false

attribute work_preferences : Array(WorktimePreference) = [] of WorktimePreference, converter: PlaceOS::Model::DBArrConverter(PlaceOS::Model::User::WorktimePreference)
attribute work_overrides : Hash(String, WorktimePreference) = {} of String => WorktimePreference, converter: PlaceOS::Model::DBHashConverter(String, PlaceOS::Model::User::WorktimePreference)
Expand Down
Loading