Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ValidateParams ¶ added in v0.0.13
ValidateParams checks string parameters passed to it and returns error in case of blank values.
Types ¶
type Base ¶
type Base struct {
ID uuid.UUID `gorm:"type:varchar(36);primary_key;"`
CreatedAt time.Time `gorm:"column:createdOn"`
UpdatedAt time.Time `gorm:"column:modifiedOn"`
DeletedAt *time.Time `sql:"index" gorm:"column:deletedOn"`
}
Base contains common columns for all tables.
type TenantBase ¶ added in v0.0.5
type TenantBase struct {
ID uuid.UUID `gorm:"type:varchar(36);primary_key;"`
TenantID uuid.UUID `gorm:"type:varchar(36);column:tenantId;"`
CreatedAt time.Time `gorm:"column:createdOn"`
UpdatedAt time.Time `gorm:"column:modifiedOn"`
DeletedAt *time.Time `sql:"index" gorm:"column:deletedOn"`
}
TenantBase contains common columns for all tables that are tenant specific.
Click to show internal directories.
Click to hide internal directories.