Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BaseModel ¶
type BaseModel struct {
ID uuid.UUID `db:"id" json:"id" yaml:"id"`
Created time.Time `db:"created" json:"created" yaml:"created"`
Updated time.Time `db:"updated" json:"updated" yaml:"updated"`
Deleted time.Time `db:"deleted" json:"deleted" yaml:"deleted"`
}
BaseModel underlies (almost) all of our models
func NewBaseWithID ¶
NewBaseWithID initializes a new BaseModel with a specific ID
type UserBaseModel ¶
type UserBaseModel struct {
BaseModel
UserID uuid.UUID `db:"user_id" json:"user_id" yaml:"user_id"`
}
UserBaseModel is a user-related underlying model for many of our models eg. in IDP
func NewUserBase ¶
func NewUserBase(userID uuid.UUID) UserBaseModel
NewUserBase initializes a new user base model
func (UserBaseModel) Validate ¶
func (u UserBaseModel) Validate() error
Validate implements Validateable
Click to show internal directories.
Click to hide internal directories.