Files
b2b/app/model/dbmodel/ps_shop_group.go
2026-03-30 01:02:02 +02:00

42 lines
1.6 KiB
Go

// Code generated by gormcol. DO NOT EDIT.
package dbmodel
import "git.ma-al.com/goc_marek/gormcol"
const TableNamePsShopGroup = "ps_shop_group"
// PsShopGroup mapped from table <ps_shop_group>
type PsShopGroup struct {
IDShopGroup int32 `gorm:"column:id_shop_group;primaryKey;autoIncrement:true" json:"id_shop_group"`
Name string `gorm:"column:name;not null" json:"name"`
ShareCustomer bool `gorm:"column:share_customer;not null" json:"share_customer"`
ShareOrder bool `gorm:"column:share_order;not null" json:"share_order"`
ShareStock bool `gorm:"column:share_stock;not null" json:"share_stock"`
Active bool `gorm:"column:active;not null" json:"active"`
Deleted bool `gorm:"column:deleted;not null" json:"deleted"`
}
// TableName PsShopGroup's table name
func (*PsShopGroup) TableName() string {
return TableNamePsShopGroup
}
var PsShopGroupCols = struct {
IDShopGroup gormcol.Field
Name gormcol.Field
ShareCustomer gormcol.Field
ShareOrder gormcol.Field
ShareStock gormcol.Field
Active gormcol.Field
Deleted gormcol.Field
}{
IDShopGroup: gormcol.Field{}.Set((&PsShopGroup{}).TableName(), "id_shop_group"),
Name: gormcol.Field{}.Set((&PsShopGroup{}).TableName(), "name"),
ShareCustomer: gormcol.Field{}.Set((&PsShopGroup{}).TableName(), "share_customer"),
ShareOrder: gormcol.Field{}.Set((&PsShopGroup{}).TableName(), "share_order"),
ShareStock: gormcol.Field{}.Set((&PsShopGroup{}).TableName(), "share_stock"),
Active: gormcol.Field{}.Set((&PsShopGroup{}).TableName(), "active"),
Deleted: gormcol.Field{}.Set((&PsShopGroup{}).TableName(), "deleted"),
}