Documentation ¶
Overview ¶
Package models contains application specific entities.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Profile ¶
type Profile struct { ID int `bun:"id,pk,autoincrement" json:"-"` AccountID int `bun:"account_id,notnull" json:"-"` UpdatedAt time.Time `bun:"updated_at,nullzero,notnull,default:current_timestamp" json:"updated_at,omitempty"` Theme string `bun:"theme" json:"theme,omitempty"` }
Profile holds specific application settings linked to an Account.
func (*Profile) BeforeInsert ¶
BeforeInsert hook executed before database insert operation.
func (*Profile) BeforeUpdate ¶
BeforeUpdate hook executed before database update operation.
Click to show internal directories.
Click to hide internal directories.