// Code generated by gormcol. DO NOT EDIT.

package dbmodel

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

const TableNamePsMaalCmsCategoryLang = "ps_maal_cms_category_lang"

// PsMaalCmsCategoryLang mapped from table <ps_maal_cms_category_lang>
type PsMaalCmsCategoryLang struct {
	IDCategory      int32   `gorm:"column:id_category;primaryKey" json:"id_category"`
	IDShop          int32   `gorm:"column:id_shop;primaryKey;default:1" json:"id_shop"`
	IDLang          int32   `gorm:"column:id_lang;primaryKey" json:"id_lang"`
	Name            string  `gorm:"column:name;not null;index:category_name,priority:1" json:"name"`
	Description     *string `gorm:"column:description" json:"description"`
	LinkRewrite     string  `gorm:"column:link_rewrite;not null" json:"link_rewrite"`
	MetaTitle       *string `gorm:"column:meta_title" json:"meta_title"`
	MetaDescription *string `gorm:"column:meta_description" json:"meta_description"`
}

// TableName PsMaalCmsCategoryLang's table name
func (*PsMaalCmsCategoryLang) TableName() string {
	return TableNamePsMaalCmsCategoryLang
}

var PsMaalCmsCategoryLangCols = struct {
	IDCategory gormcol.Field
	IDShop gormcol.Field
	IDLang gormcol.Field
	Name gormcol.Field
	Description gormcol.Field
	LinkRewrite gormcol.Field
	MetaTitle gormcol.Field
	MetaDescription gormcol.Field
}{
	IDCategory: gormcol.Field{}.Set((&PsMaalCmsCategoryLang{}).TableName(), "id_category"),
	IDShop: gormcol.Field{}.Set((&PsMaalCmsCategoryLang{}).TableName(), "id_shop"),
	IDLang: gormcol.Field{}.Set((&PsMaalCmsCategoryLang{}).TableName(), "id_lang"),
	Name: gormcol.Field{}.Set((&PsMaalCmsCategoryLang{}).TableName(), "name"),
	Description: gormcol.Field{}.Set((&PsMaalCmsCategoryLang{}).TableName(), "description"),
	LinkRewrite: gormcol.Field{}.Set((&PsMaalCmsCategoryLang{}).TableName(), "link_rewrite"),
	MetaTitle: gormcol.Field{}.Set((&PsMaalCmsCategoryLang{}).TableName(), "meta_title"),
	MetaDescription: gormcol.Field{}.Set((&PsMaalCmsCategoryLang{}).TableName(), "meta_description"),
}
