Documentation
¶
Index ¶
Constants ¶
View Source
const NoVersion int64 = 0
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BaseModel ¶
type BaseModel struct {
ID int32 `gorm:"primaryKey;autoIncrement;column:id;type:integer;not null"`
Erased bool `gorm:"column:erased;type:boolean;not null;default false"`
Hidden bool `gorm:"column:hidden;type:boolean"`
CreatedAt time.Time `gorm:"column:created_at;type:timestamp with time zone;not null;autoCreateTime"`
UpdatedAt time.Time `gorm:"column:updated_at;type:timestamp with time zone;not null;autoUpdateTime"`
Version int64 `gorm:"column:version;type:bigint"`
}
func (BaseModel) GetVersion ¶
type Referenced ¶
type Referenced interface {
References() []Reference
}
Click to show internal directories.
Click to hide internal directories.