// Code generated by gormcol. 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{}.Set((&PsTaxRule{}).TableName(), "id_tax_rule"),
	IDTaxRulesGroup: gormcol.Field{}.Set((&PsTaxRule{}).TableName(), "id_tax_rules_group"),
	IDCountry: gormcol.Field{}.Set((&PsTaxRule{}).TableName(), "id_country"),
	IDState: gormcol.Field{}.Set((&PsTaxRule{}).TableName(), "id_state"),
	ZipcodeFrom: gormcol.Field{}.Set((&PsTaxRule{}).TableName(), "zipcode_from"),
	ZipcodeTo: gormcol.Field{}.Set((&PsTaxRule{}).TableName(), "zipcode_to"),
	IDTax: gormcol.Field{}.Set((&PsTaxRule{}).TableName(), "id_tax"),
	Behavior: gormcol.Field{}.Set((&PsTaxRule{}).TableName(), "behavior"),
	Description: gormcol.Field{}.Set((&PsTaxRule{}).TableName(), "description"),
}
