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:"createdAt"`
UpdatedAt *time.Time `json:"updatedAt" gorm:"<-:update"`
}
func (*Timestamps) BeforeUpdate ¶
func (m *Timestamps) BeforeUpdate(tx *gorm.DB) error
Click to show internal directories.
Click to hide internal directories.