Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BinaryUUID ¶
binary uuid wrapper over uuid.UUID example - gorm:"type:binary(16);default:(UUID_TO_BIN(UUID()));
func (BinaryUUID) MarshalJSON ¶
func (a BinaryUUID) MarshalJSON() ([]byte, error)
convert to json string
func (*BinaryUUID) Scan ¶
func (a *BinaryUUID) Scan(value interface{}) error
scan value into BinaryUUID
func (BinaryUUID) String ¶
func (a BinaryUUID) String() string
func (*BinaryUUID) UnmarshalJSON ¶
func (a *BinaryUUID) UnmarshalJSON(by []byte) error
convert from json string
type Datetime ¶
custom time types Used to format time into a human-readable string
func (Datetime) MarshalJSON ¶
func (*Datetime) UnmarshalJSON ¶
type Model ¶
type Model struct { RecordID uint `gorm:"column:record_id;primaryKey;autoIncrement;" json:"-"` CreatedAt Datetime `gorm:"column:created_at;autoCreateTime;" json:"created_at"` UpdatedAt Datetime `gorm:"column:updated_at;autoUpdateTime;" json:"updated_at"` DeletedAt gorm.DeletedAt `gorm:"column:deleted_at;index;" json:"-"` }
Model base model
Click to show internal directories.
Click to hide internal directories.