Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Model ¶
type Model struct { ID string `gorm:"primaryKey;default:(gen_ulid())" sql:"DEFAULT:gen_ulid()"` // sqlite must define as (gen_ulid()) CreatedAt time.Time `gorm:"index" sql:"type:timestamptz; DEFAULT:current_timestamp"` UpdatedAt time.Time `gorm:"index" sql:"type:timestamptz; DEFAULT:current_timestamp"` DeletedAt gorm.DeletedAt `gorm:"index"` DB *gorm.DB `gorm:"-" mapstructure:"-" json:"-" yaml:"-" copier:"-"` }
Click to show internal directories.
Click to hide internal directories.