50 lines
2.3 KiB
Go
50 lines
2.3 KiB
Go
// 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 dbmodel
|
|
|
|
import "git.ma-al.com/goc_marek/gormcol"
|
|
|
|
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
|
|
}
|
|
|
|
var PsTaxRuleCols = struct {
|
|
IDTaxRule gormcol.Field
|
|
IDTaxRulesGroup gormcol.Field
|
|
IDCountry gormcol.Field
|
|
IDState gormcol.Field
|
|
ZipcodeFrom gormcol.Field
|
|
ZipcodeTo gormcol.Field
|
|
IDTax gormcol.Field
|
|
Behavior gormcol.Field
|
|
Description gormcol.Field
|
|
}{
|
|
IDTaxRule: gormcol.Field{Table: TableNamePsTaxRule, Column: "id_tax_rule"},
|
|
IDTaxRulesGroup: gormcol.Field{Table: TableNamePsTaxRule, Column: "id_tax_rules_group"},
|
|
IDCountry: gormcol.Field{Table: TableNamePsTaxRule, Column: "id_country"},
|
|
IDState: gormcol.Field{Table: TableNamePsTaxRule, Column: "id_state"},
|
|
ZipcodeFrom: gormcol.Field{Table: TableNamePsTaxRule, Column: "zipcode_from"},
|
|
ZipcodeTo: gormcol.Field{Table: TableNamePsTaxRule, Column: "zipcode_to"},
|
|
IDTax: gormcol.Field{Table: TableNamePsTaxRule, Column: "id_tax"},
|
|
Behavior: gormcol.Field{Table: TableNamePsTaxRule, Column: "behavior"},
|
|
Description: gormcol.Field{Table: TableNamePsTaxRule, Column: "description"},
|
|
}
|