Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Model ¶
type Model struct {
ID uuid.UUID `json:"id" gorm:"type:uuid;primarykey;default:gen_random_uuid()"`
CreatedAt types.DateTime `json:"createdAt" gorm:"type:timestamp with time zone;default:current_timestamp"`
UpdatedAt types.DateTime `json:"updatedAt" gorm:"type:timestamp with time zone;default:current_timestamp"`
DeletedAt types.DateTime `json:"deletedAt" gorm:"index type:timestamp with time zone"`
}
type TenantBound ¶
type TenantBound interface {
IsTenantBound() bool
}
TenantBound defines an interface for models that belong to a tenant
Click to show internal directories.
Click to hide internal directories.