fix products listing
This commit is contained in:
41
app/model/dbmodel/ps_customized_data.go
Normal file
41
app/model/dbmodel/ps_customized_data.go
Normal file
@@ -0,0 +1,41 @@
|
||||
// Code generated by gormcol. DO NOT EDIT.
|
||||
|
||||
package dbmodel
|
||||
|
||||
import "git.ma-al.com/goc_marek/gormcol"
|
||||
|
||||
const TableNamePsCustomizedDatum = "ps_customized_data"
|
||||
|
||||
// PsCustomizedDatum mapped from table <ps_customized_data>
|
||||
type PsCustomizedDatum struct {
|
||||
IDCustomization int32 `gorm:"column:id_customization;primaryKey" json:"id_customization"`
|
||||
Type bool `gorm:"column:type;primaryKey" json:"type"`
|
||||
Index int32 `gorm:"column:index;primaryKey" json:"index"`
|
||||
Value string `gorm:"column:value;not null" json:"value"`
|
||||
IDModule int32 `gorm:"column:id_module;not null" json:"id_module"`
|
||||
Price float64 `gorm:"column:price;not null;default:0.000000" json:"price"`
|
||||
Weight float64 `gorm:"column:weight;not null;default:0.000000" json:"weight"`
|
||||
}
|
||||
|
||||
// TableName PsCustomizedDatum's table name
|
||||
func (*PsCustomizedDatum) TableName() string {
|
||||
return TableNamePsCustomizedDatum
|
||||
}
|
||||
|
||||
var PsCustomizedDatumCols = struct {
|
||||
IDCustomization gormcol.Field
|
||||
Type gormcol.Field
|
||||
Index gormcol.Field
|
||||
Value gormcol.Field
|
||||
IDModule gormcol.Field
|
||||
Price gormcol.Field
|
||||
Weight gormcol.Field
|
||||
}{
|
||||
IDCustomization: gormcol.Field{}.Set((&PsCustomizedDatum{}).TableName(), "id_customization"),
|
||||
Type: gormcol.Field{}.Set((&PsCustomizedDatum{}).TableName(), "type"),
|
||||
Index: gormcol.Field{}.Set((&PsCustomizedDatum{}).TableName(), "index"),
|
||||
Value: gormcol.Field{}.Set((&PsCustomizedDatum{}).TableName(), "value"),
|
||||
IDModule: gormcol.Field{}.Set((&PsCustomizedDatum{}).TableName(), "id_module"),
|
||||
Price: gormcol.Field{}.Set((&PsCustomizedDatum{}).TableName(), "price"),
|
||||
Weight: gormcol.Field{}.Set((&PsCustomizedDatum{}).TableName(), "weight"),
|
||||
}
|
||||
Reference in New Issue
Block a user