// Code generated by gormcol. DO NOT EDIT.

package dbmodel

import "git.ma-al.com/goc_marek/gormcol"

const TableNamePsState = "ps_state"

// PsState mapped from table <ps_state>
type PsState struct {
	IDState     int32  `gorm:"column:id_state;primaryKey;autoIncrement:true" json:"id_state"`
	IDCountry   int32  `gorm:"column:id_country;not null;index:id_country,priority:1" json:"id_country"`
	IDZone      int32  `gorm:"column:id_zone;not null;index:id_zone,priority:1" json:"id_zone"`
	Name        string `gorm:"column:name;not null;index:name,priority:1" json:"name"`
	IsoCode     string `gorm:"column:iso_code;not null" json:"iso_code"`
	TaxBehavior int32  `gorm:"column:tax_behavior;not null" json:"tax_behavior"`
	Active      bool   `gorm:"column:active;not null" json:"active"`
}

// TableName PsState's table name
func (*PsState) TableName() string {
	return TableNamePsState
}

var PsStateCols = struct {
	IDState gormcol.Field
	IDCountry gormcol.Field
	IDZone gormcol.Field
	Name gormcol.Field
	IsoCode gormcol.Field
	TaxBehavior gormcol.Field
	Active gormcol.Field
}{
	IDState: gormcol.Field{}.Set((&PsState{}).TableName(), "id_state"),
	IDCountry: gormcol.Field{}.Set((&PsState{}).TableName(), "id_country"),
	IDZone: gormcol.Field{}.Set((&PsState{}).TableName(), "id_zone"),
	Name: gormcol.Field{}.Set((&PsState{}).TableName(), "name"),
	IsoCode: gormcol.Field{}.Set((&PsState{}).TableName(), "iso_code"),
	TaxBehavior: gormcol.Field{}.Set((&PsState{}).TableName(), "tax_behavior"),
	Active: gormcol.Field{}.Set((&PsState{}).TableName(), "active"),
}
