Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func UnmarshalID ¶
UnmarshalID implements reverse marshalling for IDs from strings
Types ¶
type Model ¶
type Model struct { ID hide.ID `gorm:"type: bigserial;primary_key" json:"id"` // int64 CreatedAt time.Time UpdatedAt time.Time }
Model Default model structure with hard deleting
type SoftDelete ¶
type SoftDelete struct { ID hide.ID `gorm:"type: bigserial;primary_key" json:"id"` // int64 CreatedAt time.Time UpdatedAt time.Time DeletedAt *time.Time }
SoftDelete Default model structure with soft deleting
func (SoftDelete) IDstring ¶
func (m SoftDelete) IDstring() string
IDstring returns the ID as a hash string
Click to show internal directories.
Click to hide internal directories.