// Code generated by gormcol. DO NOT EDIT.

package dbmodel

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

const TableNamePsCarrier = "ps_carrier"

// PsCarrier mapped from table <ps_carrier>
type PsCarrier struct {
	IDCarrier          int32    `gorm:"column:id_carrier;primaryKey;autoIncrement:true" json:"id_carrier"`
	IDReference        int32    `gorm:"column:id_reference;not null;index:reference,priority:1" json:"id_reference"`
	IDTaxRulesGroup    *int32   `gorm:"column:id_tax_rules_group;index:id_tax_rules_group,priority:1" json:"id_tax_rules_group"`
	Name               string   `gorm:"column:name;not null" json:"name"`
	URL                *string  `gorm:"column:url" json:"url"`
	Active             bool     `gorm:"column:active;not null;index:deleted,priority:2;index:reference,priority:3" json:"active"`
	Deleted            bool     `gorm:"column:deleted;not null;index:deleted,priority:1;index:reference,priority:2" json:"deleted"`
	ShippingHandling   bool     `gorm:"column:shipping_handling;not null;default:1" json:"shipping_handling"`
	RangeBehavior      bool     `gorm:"column:range_behavior;not null" json:"range_behavior"`
	IsModule           bool     `gorm:"column:is_module;not null" json:"is_module"`
	IsFree             bool     `gorm:"column:is_free;not null" json:"is_free"`
	ShippingExternal   bool     `gorm:"column:shipping_external;not null" json:"shipping_external"`
	NeedRange          bool     `gorm:"column:need_range;not null" json:"need_range"`
	ExternalModuleName *string  `gorm:"column:external_module_name" json:"external_module_name"`
	ShippingMethod     int32    `gorm:"column:shipping_method;not null" json:"shipping_method"`
	Position           int32    `gorm:"column:position;not null" json:"position"`
	MaxWidth           *int32   `gorm:"column:max_width" json:"max_width"`
	MaxHeight          *int32   `gorm:"column:max_height" json:"max_height"`
	MaxDepth           *int32   `gorm:"column:max_depth" json:"max_depth"`
	MaxWeight          *float64 `gorm:"column:max_weight;default:0.000000" json:"max_weight"`
	Grade              *int32   `gorm:"column:grade" json:"grade"`
}

// TableName PsCarrier's table name
func (*PsCarrier) TableName() string {
	return TableNamePsCarrier
}

var PsCarrierCols = struct {
	IDCarrier gormcol.Field
	IDReference gormcol.Field
	IDTaxRulesGroup gormcol.Field
	Name gormcol.Field
	URL gormcol.Field
	Active gormcol.Field
	Deleted gormcol.Field
	ShippingHandling gormcol.Field
	RangeBehavior gormcol.Field
	IsModule gormcol.Field
	IsFree gormcol.Field
	ShippingExternal gormcol.Field
	NeedRange gormcol.Field
	ExternalModuleName gormcol.Field
	ShippingMethod gormcol.Field
	Position gormcol.Field
	MaxWidth gormcol.Field
	MaxHeight gormcol.Field
	MaxDepth gormcol.Field
	MaxWeight gormcol.Field
	Grade gormcol.Field
}{
	IDCarrier: gormcol.Field{}.Set((&PsCarrier{}).TableName(), "id_carrier"),
	IDReference: gormcol.Field{}.Set((&PsCarrier{}).TableName(), "id_reference"),
	IDTaxRulesGroup: gormcol.Field{}.Set((&PsCarrier{}).TableName(), "id_tax_rules_group"),
	Name: gormcol.Field{}.Set((&PsCarrier{}).TableName(), "name"),
	URL: gormcol.Field{}.Set((&PsCarrier{}).TableName(), "url"),
	Active: gormcol.Field{}.Set((&PsCarrier{}).TableName(), "active"),
	Deleted: gormcol.Field{}.Set((&PsCarrier{}).TableName(), "deleted"),
	ShippingHandling: gormcol.Field{}.Set((&PsCarrier{}).TableName(), "shipping_handling"),
	RangeBehavior: gormcol.Field{}.Set((&PsCarrier{}).TableName(), "range_behavior"),
	IsModule: gormcol.Field{}.Set((&PsCarrier{}).TableName(), "is_module"),
	IsFree: gormcol.Field{}.Set((&PsCarrier{}).TableName(), "is_free"),
	ShippingExternal: gormcol.Field{}.Set((&PsCarrier{}).TableName(), "shipping_external"),
	NeedRange: gormcol.Field{}.Set((&PsCarrier{}).TableName(), "need_range"),
	ExternalModuleName: gormcol.Field{}.Set((&PsCarrier{}).TableName(), "external_module_name"),
	ShippingMethod: gormcol.Field{}.Set((&PsCarrier{}).TableName(), "shipping_method"),
	Position: gormcol.Field{}.Set((&PsCarrier{}).TableName(), "position"),
	MaxWidth: gormcol.Field{}.Set((&PsCarrier{}).TableName(), "max_width"),
	MaxHeight: gormcol.Field{}.Set((&PsCarrier{}).TableName(), "max_height"),
	MaxDepth: gormcol.Field{}.Set((&PsCarrier{}).TableName(), "max_depth"),
	MaxWeight: gormcol.Field{}.Set((&PsCarrier{}).TableName(), "max_weight"),
	Grade: gormcol.Field{}.Set((&PsCarrier{}).TableName(), "grade"),
}
