50 lines
2.0 KiB
Go
50 lines
2.0 KiB
Go
// Code generated by gorm.io/gen. DO NOT EDIT.
|
|
// Code generated by gorm.io/gen. DO NOT EDIT.
|
|
// Code generated by gorm.io/gen. DO NOT EDIT.
|
|
|
|
package dbmodel
|
|
|
|
import "git.ma-al.com/goc_marek/gormcol"
|
|
|
|
const TableNamePsCmsLang = "ps_cms_lang"
|
|
|
|
// PsCmsLang mapped from table <ps_cms_lang>
|
|
type PsCmsLang struct {
|
|
IDCms int32 `gorm:"column:id_cms;primaryKey" json:"id_cms"`
|
|
IDLang int32 `gorm:"column:id_lang;primaryKey" json:"id_lang"`
|
|
IDShop int32 `gorm:"column:id_shop;primaryKey;default:1" json:"id_shop"`
|
|
MetaTitle string `gorm:"column:meta_title;not null" json:"meta_title"`
|
|
HeadSeoTitle *string `gorm:"column:head_seo_title" json:"head_seo_title"`
|
|
MetaDescription *string `gorm:"column:meta_description" json:"meta_description"`
|
|
MetaKeywords *string `gorm:"column:meta_keywords" json:"meta_keywords"`
|
|
Content *string `gorm:"column:content" json:"content"`
|
|
LinkRewrite string `gorm:"column:link_rewrite;not null" json:"link_rewrite"`
|
|
}
|
|
|
|
// TableName PsCmsLang's table name
|
|
func (*PsCmsLang) TableName() string {
|
|
return TableNamePsCmsLang
|
|
}
|
|
|
|
var PsCmsLangCols = struct {
|
|
IDCms gormcol.Field
|
|
IDLang gormcol.Field
|
|
IDShop gormcol.Field
|
|
MetaTitle gormcol.Field
|
|
HeadSeoTitle gormcol.Field
|
|
MetaDescription gormcol.Field
|
|
MetaKeywords gormcol.Field
|
|
Content gormcol.Field
|
|
LinkRewrite gormcol.Field
|
|
}{
|
|
IDCms: gormcol.Field{Table: TableNamePsCmsLang, Column: "id_cms"},
|
|
IDLang: gormcol.Field{Table: TableNamePsCmsLang, Column: "id_lang"},
|
|
IDShop: gormcol.Field{Table: TableNamePsCmsLang, Column: "id_shop"},
|
|
MetaTitle: gormcol.Field{Table: TableNamePsCmsLang, Column: "meta_title"},
|
|
HeadSeoTitle: gormcol.Field{Table: TableNamePsCmsLang, Column: "head_seo_title"},
|
|
MetaDescription: gormcol.Field{Table: TableNamePsCmsLang, Column: "meta_description"},
|
|
MetaKeywords: gormcol.Field{Table: TableNamePsCmsLang, Column: "meta_keywords"},
|
|
Content: gormcol.Field{Table: TableNamePsCmsLang, Column: "content"},
|
|
LinkRewrite: gormcol.Field{Table: TableNamePsCmsLang, Column: "link_rewrite"},
|
|
}
|