Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SoftDelete ¶
type Timestamps ¶
type Timestamps struct { CreatedAt time.Time `json:"created_at"` UpdatedAt *time.Time `json:"updated_at" gorm:"<-:update"` }
func (*Timestamps) BeforeUpdate ¶
func (m *Timestamps) BeforeUpdate(tx *gorm.DB) error
Click to show internal directories.
Click to hide internal directories.