// Code generated by gormcol. DO NOT EDIT.

package dbmodel

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

const TableNamePsCmsCategoryLang = "ps_cms_category_lang"

// PsCmsCategoryLang mapped from table <ps_cms_category_lang>
type PsCmsCategoryLang struct {
	IDCmsCategory   int32   `gorm:"column:id_cms_category;primaryKey" json:"id_cms_category"`
	IDLang          int32   `gorm:"column:id_lang;primaryKey" json:"id_lang"`
	IDShop          int32   `gorm:"column:id_shop;primaryKey;default:1" json:"id_shop"`
	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"`
	MetaKeywords    *string `gorm:"column:meta_keywords" json:"meta_keywords"`
	MetaDescription *string `gorm:"column:meta_description" json:"meta_description"`
}

// TableName PsCmsCategoryLang's table name
func (*PsCmsCategoryLang) TableName() string {
	return TableNamePsCmsCategoryLang
}

var PsCmsCategoryLangCols = struct {
	IDCmsCategory gormcol.Field
	IDLang gormcol.Field
	IDShop gormcol.Field
	Name gormcol.Field
	Description gormcol.Field
	LinkRewrite gormcol.Field
	MetaTitle gormcol.Field
	MetaKeywords gormcol.Field
	MetaDescription gormcol.Field
}{
	IDCmsCategory: gormcol.Field{}.Set((&PsCmsCategoryLang{}).TableName(), "id_cms_category"),
	IDLang: gormcol.Field{}.Set((&PsCmsCategoryLang{}).TableName(), "id_lang"),
	IDShop: gormcol.Field{}.Set((&PsCmsCategoryLang{}).TableName(), "id_shop"),
	Name: gormcol.Field{}.Set((&PsCmsCategoryLang{}).TableName(), "name"),
	Description: gormcol.Field{}.Set((&PsCmsCategoryLang{}).TableName(), "description"),
	LinkRewrite: gormcol.Field{}.Set((&PsCmsCategoryLang{}).TableName(), "link_rewrite"),
	MetaTitle: gormcol.Field{}.Set((&PsCmsCategoryLang{}).TableName(), "meta_title"),
	MetaKeywords: gormcol.Field{}.Set((&PsCmsCategoryLang{}).TableName(), "meta_keywords"),
	MetaDescription: gormcol.Field{}.Set((&PsCmsCategoryLang{}).TableName(), "meta_description"),
}
