Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Device ¶
type Device struct {
SoftDeletableModel
ID string `gorm:"primaryKey;type:char(21)"`
Name *string `gorm:"type:varchar(128)"`
AuthToken string `gorm:"not null;uniqueIndex;type:char(21)"`
PushToken *string `gorm:"type:varchar(256)"`
LastSeen time.Time `gorm:"not null;autocreatetime:false;default:CURRENT_TIMESTAMP(3);index:idx_devices_last_seen"`
UserID string `gorm:"not null;type:varchar(32)"`
}
type SoftDeletableModel ¶ added in v1.23.0
type SoftDeletableModel struct {
TimedModel
DeletedAt *time.Time `gorm:"<-:update"`
}
Click to show internal directories.
Click to hide internal directories.