Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Model ¶
type Model struct { gorm.Model ID uuid.UUID `gorm:"type:uuid;primary_key;"` OwnedBy string CreatedBy string UpdatedBy string }
Model a basic GoLang struct which includes the following fields: ID, CreatedAt, UpdatedAt, DeletedAt It may be embedded into your model or you may build your own model without it
type User struct { gorm.Base }
https://gorm.io/docs/conventions.html
func (*Model) BeforeCreate ¶
BeforeCreate will set a UUID rather than numeric ID.
Click to show internal directories.
Click to hide internal directories.