// Code generated by gormcol. DO NOT EDIT.

package dbmodel

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

const TableNamePsCategoryLang = "ps_category_lang"

// PsCategoryLang mapped from table <ps_category_lang>
type PsCategoryLang 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"`
	MetaKeywords    *string `gorm:"column:meta_keywords" json:"meta_keywords"`
	MetaDescription *string `gorm:"column:meta_description" json:"meta_description"`
}

// TableName PsCategoryLang's table name
func (*PsCategoryLang) TableName() string {
	return TableNamePsCategoryLang
}

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