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

51 lines
2.3 KiB
Go

// Code generated by gormcol. DO NOT EDIT.
package dbmodel
import "git.ma-al.com/goc_marek/gormcol"
const TableNamePsReferrerShop = "ps_referrer_shop"
// PsReferrerShop mapped from table <ps_referrer_shop>
type PsReferrerShop struct {
IDReferrer int32 `gorm:"column:id_referrer;primaryKey;autoIncrement:true" json:"id_referrer"`
IDShop int32 `gorm:"column:id_shop;primaryKey;default:1" json:"id_shop"`
CacheVisitors *int32 `gorm:"column:cache_visitors" json:"cache_visitors"`
CacheVisits *int32 `gorm:"column:cache_visits" json:"cache_visits"`
CachePages *int32 `gorm:"column:cache_pages" json:"cache_pages"`
CacheRegistrations *int32 `gorm:"column:cache_registrations" json:"cache_registrations"`
CacheOrders *int32 `gorm:"column:cache_orders" json:"cache_orders"`
CacheSales *float64 `gorm:"column:cache_sales" json:"cache_sales"`
CacheRegRate *float64 `gorm:"column:cache_reg_rate" json:"cache_reg_rate"`
CacheOrderRate *float64 `gorm:"column:cache_order_rate" json:"cache_order_rate"`
}
// TableName PsReferrerShop's table name
func (*PsReferrerShop) TableName() string {
return TableNamePsReferrerShop
}
var PsReferrerShopCols = struct {
IDReferrer gormcol.Field
IDShop gormcol.Field
CacheVisitors gormcol.Field
CacheVisits gormcol.Field
CachePages gormcol.Field
CacheRegistrations gormcol.Field
CacheOrders gormcol.Field
CacheSales gormcol.Field
CacheRegRate gormcol.Field
CacheOrderRate gormcol.Field
}{
IDReferrer: gormcol.Field{}.Set((&PsReferrerShop{}).TableName(), "id_referrer"),
IDShop: gormcol.Field{}.Set((&PsReferrerShop{}).TableName(), "id_shop"),
CacheVisitors: gormcol.Field{}.Set((&PsReferrerShop{}).TableName(), "cache_visitors"),
CacheVisits: gormcol.Field{}.Set((&PsReferrerShop{}).TableName(), "cache_visits"),
CachePages: gormcol.Field{}.Set((&PsReferrerShop{}).TableName(), "cache_pages"),
CacheRegistrations: gormcol.Field{}.Set((&PsReferrerShop{}).TableName(), "cache_registrations"),
CacheOrders: gormcol.Field{}.Set((&PsReferrerShop{}).TableName(), "cache_orders"),
CacheSales: gormcol.Field{}.Set((&PsReferrerShop{}).TableName(), "cache_sales"),
CacheRegRate: gormcol.Field{}.Set((&PsReferrerShop{}).TableName(), "cache_reg_rate"),
CacheOrderRate: gormcol.Field{}.Set((&PsReferrerShop{}).TableName(), "cache_order_rate"),
}