25 lines
1.2 KiB
Go
25 lines
1.2 KiB
Go
// Code generated by gorm.io/gen. DO NOT EDIT.
|
|
// Code generated by gorm.io/gen. DO NOT EDIT.
|
|
// Code generated by gorm.io/gen. DO NOT EDIT.
|
|
|
|
package prestadb
|
|
|
|
const TableNamePsShopURL = "ps_shop_url"
|
|
|
|
// PsShopURL mapped from table <ps_shop_url>
|
|
type PsShopURL struct {
|
|
IDShopURL int32 `gorm:"column:id_shop_url;primaryKey;autoIncrement:true" json:"id_shop_url"`
|
|
IDShop int32 `gorm:"column:id_shop;not null;index:id_shop,priority:1" json:"id_shop"`
|
|
Domain string `gorm:"column:domain;not null;uniqueIndex:full_shop_url,priority:1" json:"domain"`
|
|
DomainSsl string `gorm:"column:domain_ssl;not null;uniqueIndex:full_shop_url_ssl,priority:1" json:"domain_ssl"`
|
|
PhysicalURI string `gorm:"column:physical_uri;not null;uniqueIndex:full_shop_url,priority:2;uniqueIndex:full_shop_url_ssl,priority:2" json:"physical_uri"`
|
|
VirtualURI string `gorm:"column:virtual_uri;not null;uniqueIndex:full_shop_url,priority:3;uniqueIndex:full_shop_url_ssl,priority:3" json:"virtual_uri"`
|
|
Main bool `gorm:"column:main;not null;index:id_shop,priority:2" json:"main"`
|
|
Active bool `gorm:"column:active;not null" json:"active"`
|
|
}
|
|
|
|
// TableName PsShopURL's table name
|
|
func (*PsShopURL) TableName() string {
|
|
return TableNamePsShopURL
|
|
}
|