27 lines
702 B
Go
27 lines
702 B
Go
// Code generated by gormcol. DO NOT EDIT.
|
|
|
|
package dbmodel
|
|
|
|
import "git.ma-al.com/goc_marek/gormcol"
|
|
|
|
const TableNamePsZoneShop = "ps_zone_shop"
|
|
|
|
// PsZoneShop mapped from table <ps_zone_shop>
|
|
type PsZoneShop struct {
|
|
IDZone int32 `gorm:"column:id_zone;primaryKey" json:"id_zone"`
|
|
IDShop int32 `gorm:"column:id_shop;primaryKey;index:id_shop,priority:1" json:"id_shop"`
|
|
}
|
|
|
|
// TableName PsZoneShop's table name
|
|
func (*PsZoneShop) TableName() string {
|
|
return TableNamePsZoneShop
|
|
}
|
|
|
|
var PsZoneShopCols = struct {
|
|
IDZone gormcol.Field
|
|
IDShop gormcol.Field
|
|
}{
|
|
IDZone: gormcol.Field{}.Set((&PsZoneShop{}).TableName(), "id_zone"),
|
|
IDShop: gormcol.Field{}.Set((&PsZoneShop{}).TableName(), "id_shop"),
|
|
}
|