Skip to content

Commit

Permalink
tested a different way of defining Device.LastAccess
Browse files Browse the repository at this point in the history
  • Loading branch information
CommanderStorm committed Oct 22, 2023
1 parent 0f0c4c3 commit 589e528
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/model/device.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ type Device struct {
Member null.Int `gorm:"column:member;type:int;" json:"member"`
UUID string `gorm:"column:uuid;type:varchar(50);" json:"uuid"`
Created null.Time `gorm:"column:created;type:timestamp;" json:"created"`
LastAccess time.Time `gorm:"column:lastAccess;type:timestamp;default:0000-00-00 00:00:00;" json:"last_access"`
LastAccess time.Time `gorm:"column:lastAccess;type:timestamp;default:'0000-00-00 00:00:00';" json:"last_access"`
LastAPI string `gorm:"column:lastApi;type:text;size:16777215;" json:"last_api"`
Developer string `gorm:"column:developer;type:char;size:5;default:false;" json:"developer"`
OsVersion string `gorm:"column:osVersion;type:text;size:16777215;" json:"os_version"`
Expand Down

0 comments on commit 589e528

Please sign in to comment.