add models generation and josn print
This commit is contained in:
25
app/model/prestadb/ps_tax_rule.go
Normal file
25
app/model/prestadb/ps_tax_rule.go
Normal file
@@ -0,0 +1,25 @@
|
||||
// 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
|
||||
|
||||
const TableNamePsTaxRule = "ps_tax_rule"
|
||||
|
||||
// PsTaxRule mapped from table <ps_tax_rule>
|
||||
type PsTaxRule struct {
|
||||
IDTaxRule int32 `gorm:"column:id_tax_rule;primaryKey;autoIncrement:true" json:"id_tax_rule"`
|
||||
IDTaxRulesGroup int32 `gorm:"column:id_tax_rules_group;not null;index:category_getproducts,priority:1;index:id_tax_rules_group,priority:1" json:"id_tax_rules_group"`
|
||||
IDCountry int32 `gorm:"column:id_country;not null;index:category_getproducts,priority:2" json:"id_country"`
|
||||
IDState int32 `gorm:"column:id_state;not null;index:category_getproducts,priority:3" json:"id_state"`
|
||||
ZipcodeFrom string `gorm:"column:zipcode_from;not null;index:category_getproducts,priority:4" json:"zipcode_from"`
|
||||
ZipcodeTo string `gorm:"column:zipcode_to;not null" json:"zipcode_to"`
|
||||
IDTax int32 `gorm:"column:id_tax;not null;index:id_tax,priority:1" json:"id_tax"`
|
||||
Behavior int32 `gorm:"column:behavior;not null" json:"behavior"`
|
||||
Description string `gorm:"column:description;not null" json:"description"`
|
||||
}
|
||||
|
||||
// TableName PsTaxRule's table name
|
||||
func (*PsTaxRule) TableName() string {
|
||||
return TableNamePsTaxRule
|
||||
}
|
||||
Reference in New Issue
Block a user