add models generation and josn print
This commit is contained in:
33
app/model/prestadb/ps_specific_price_rule.go
Normal file
33
app/model/prestadb/ps_specific_price_rule.go
Normal file
@@ -0,0 +1,33 @@
|
||||
// Code generated by gorm.io/gen. DO NOT EDIT.
|
||||
// Code generated by gorm.io/gen. DO NOT EDIT.
|
||||
// Code generated by gorm.io/gen. DO NOT EDIT.
|
||||
|
||||
package prestadb
|
||||
|
||||
import (
|
||||
"time"
|
||||
)
|
||||
|
||||
const TableNamePsSpecificPriceRule = "ps_specific_price_rule"
|
||||
|
||||
// PsSpecificPriceRule mapped from table <ps_specific_price_rule>
|
||||
type PsSpecificPriceRule struct {
|
||||
IDSpecificPriceRule int32 `gorm:"column:id_specific_price_rule;primaryKey;autoIncrement:true" json:"id_specific_price_rule"`
|
||||
Name string `gorm:"column:name;not null" json:"name"`
|
||||
IDShop int32 `gorm:"column:id_shop;not null;index:id_product,priority:1;default:1" json:"id_shop"`
|
||||
IDCurrency int32 `gorm:"column:id_currency;not null;index:id_product,priority:2" json:"id_currency"`
|
||||
IDCountry int32 `gorm:"column:id_country;not null;index:id_product,priority:3" json:"id_country"`
|
||||
IDGroup int32 `gorm:"column:id_group;not null;index:id_product,priority:4" json:"id_group"`
|
||||
FromQuantity int32 `gorm:"column:from_quantity;not null;index:id_product,priority:5" json:"from_quantity"`
|
||||
Price *float64 `gorm:"column:price" json:"price"`
|
||||
Reduction float64 `gorm:"column:reduction;not null" json:"reduction"`
|
||||
ReductionTax bool `gorm:"column:reduction_tax;not null;default:1" json:"reduction_tax"`
|
||||
ReductionType string `gorm:"column:reduction_type;not null" json:"reduction_type"`
|
||||
From time.Time `gorm:"column:from;not null;index:id_product,priority:6" json:"from"`
|
||||
To time.Time `gorm:"column:to;not null;index:id_product,priority:7" json:"to"`
|
||||
}
|
||||
|
||||
// TableName PsSpecificPriceRule's table name
|
||||
func (*PsSpecificPriceRule) TableName() string {
|
||||
return TableNamePsSpecificPriceRule
|
||||
}
|
||||
Reference in New Issue
Block a user