Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
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:"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:"deletedOn"` }
TenantBase contains common columns for all tables that are tenant specific.
Click to show internal directories.
Click to hide internal directories.