// Code generated by gormcol. DO NOT EDIT.

package dbmodel

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

const TableNamePsCmsCategory = "ps_cms_category"

// PsCmsCategory mapped from table <ps_cms_category>
type PsCmsCategory struct {
	IDCmsCategory int32     `gorm:"column:id_cms_category;primaryKey;autoIncrement:true" json:"id_cms_category"`
	IDParent      int32     `gorm:"column:id_parent;not null;index:category_parent,priority:1" json:"id_parent"`
	LevelDepth    int32     `gorm:"column:level_depth;not null" json:"level_depth"`
	Active        bool      `gorm:"column:active;not null" 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 PsCmsCategory's table name
func (*PsCmsCategory) TableName() string {
	return TableNamePsCmsCategory
}

var PsCmsCategoryCols = struct {
	IDCmsCategory gormcol.Field
	IDParent gormcol.Field
	LevelDepth gormcol.Field
	Active gormcol.Field
	DateAdd gormcol.Field
	DateUpd gormcol.Field
	Position gormcol.Field
}{
	IDCmsCategory: gormcol.Field{}.Set((&PsCmsCategory{}).TableName(), "id_cms_category"),
	IDParent: gormcol.Field{}.Set((&PsCmsCategory{}).TableName(), "id_parent"),
	LevelDepth: gormcol.Field{}.Set((&PsCmsCategory{}).TableName(), "level_depth"),
	Active: gormcol.Field{}.Set((&PsCmsCategory{}).TableName(), "active"),
	DateAdd: gormcol.Field{}.Set((&PsCmsCategory{}).TableName(), "date_add"),
	DateUpd: gormcol.Field{}.Set((&PsCmsCategory{}).TableName(), "date_upd"),
	Position: gormcol.Field{}.Set((&PsCmsCategory{}).TableName(), "position"),
}
