// Code generated by gormcol. DO NOT EDIT.

package dbmodel

import (
	"git.ma-al.com/goc_marek/gormcol"
	"time"
)

const TableNamePsMaalCmsCategory = "ps_maal_cms_category"

// PsMaalCmsCategory mapped from table <ps_maal_cms_category>
type PsMaalCmsCategory struct {
	IDCategory    int32     `gorm:"column:id_category;primaryKey;autoIncrement:true" json:"id_category"`
	IDParent      int32     `gorm:"column:id_parent;not null;index:category_parent,priority:1" json:"id_parent"`
	IDShopDefault int32     `gorm:"column:id_shop_default;not null;default:1" json:"id_shop_default"`
	Active        bool      `gorm:"column:active;not null;index:activenleft,priority:1;index:activenright,priority:1;index:nleftrightactive,priority:1" json:"active"`
	DateAdd       time.Time `gorm:"column:date_add;not null" json:"date_add"`
	DateUpd       time.Time `gorm:"column:date_upd;not null" json:"date_upd"`
	Position      int32     `gorm:"column:position;not null" json:"position"`
}

// TableName PsMaalCmsCategory's table name
func (*PsMaalCmsCategory) TableName() string {
	return TableNamePsMaalCmsCategory
}

var PsMaalCmsCategoryCols = struct {
	IDCategory gormcol.Field
	IDParent gormcol.Field
	IDShopDefault gormcol.Field
	Active gormcol.Field
	DateAdd gormcol.Field
	DateUpd gormcol.Field
	Position gormcol.Field
}{
	IDCategory: gormcol.Field{}.Set((&PsMaalCmsCategory{}).TableName(), "id_category"),
	IDParent: gormcol.Field{}.Set((&PsMaalCmsCategory{}).TableName(), "id_parent"),
	IDShopDefault: gormcol.Field{}.Set((&PsMaalCmsCategory{}).TableName(), "id_shop_default"),
	Active: gormcol.Field{}.Set((&PsMaalCmsCategory{}).TableName(), "active"),
	DateAdd: gormcol.Field{}.Set((&PsMaalCmsCategory{}).TableName(), "date_add"),
	DateUpd: gormcol.Field{}.Set((&PsMaalCmsCategory{}).TableName(), "date_upd"),
	Position: gormcol.Field{}.Set((&PsMaalCmsCategory{}).TableName(), "position"),
}
