fix products listing
This commit is contained in:
26
app/model/dbmodel/ps_employee_shop.go
Normal file
26
app/model/dbmodel/ps_employee_shop.go
Normal file
@@ -0,0 +1,26 @@
|
||||
// Code generated by gormcol. DO NOT EDIT.
|
||||
|
||||
package dbmodel
|
||||
|
||||
import "git.ma-al.com/goc_marek/gormcol"
|
||||
|
||||
const TableNamePsEmployeeShop = "ps_employee_shop"
|
||||
|
||||
// PsEmployeeShop mapped from table <ps_employee_shop>
|
||||
type PsEmployeeShop struct {
|
||||
IDEmployee int32 `gorm:"column:id_employee;primaryKey" json:"id_employee"`
|
||||
IDShop int32 `gorm:"column:id_shop;primaryKey;index:id_shop,priority:1" json:"id_shop"`
|
||||
}
|
||||
|
||||
// TableName PsEmployeeShop's table name
|
||||
func (*PsEmployeeShop) TableName() string {
|
||||
return TableNamePsEmployeeShop
|
||||
}
|
||||
|
||||
var PsEmployeeShopCols = struct {
|
||||
IDEmployee gormcol.Field
|
||||
IDShop gormcol.Field
|
||||
}{
|
||||
IDEmployee: gormcol.Field{}.Set((&PsEmployeeShop{}).TableName(), "id_employee"),
|
||||
IDShop: gormcol.Field{}.Set((&PsEmployeeShop{}).TableName(), "id_shop"),
|
||||
}
|
||||
Reference in New Issue
Block a user