66 lines
3.3 KiB
Go
66 lines
3.3 KiB
Go
// Code generated by gormcol. DO NOT EDIT.
|
|
|
|
package dbmodel
|
|
|
|
import "git.ma-al.com/goc_marek/gormcol"
|
|
|
|
const TableNamePsProductLang = "ps_product_lang"
|
|
|
|
// PsProductLang mapped from table <ps_product_lang>
|
|
type PsProductLang struct {
|
|
IDProduct int32 `gorm:"column:id_product;primaryKey;index:idx_ps_product_lang,priority:1" json:"id_product"`
|
|
IDShop int32 `gorm:"column:id_shop;primaryKey;index:idx_ps_product_lang,priority:2;default:1" json:"id_shop"`
|
|
IDLang int32 `gorm:"column:id_lang;primaryKey;index:idx_ps_product_lang,priority:3;index:id_lang,priority:1" json:"id_lang"`
|
|
Description *string `gorm:"column:description" json:"description"`
|
|
DescriptionShort *string `gorm:"column:description_short" json:"description_short"`
|
|
LinkRewrite string `gorm:"column:link_rewrite;not null" json:"link_rewrite"`
|
|
MetaDescription *string `gorm:"column:meta_description" json:"meta_description"`
|
|
MetaKeywords *string `gorm:"column:meta_keywords" json:"meta_keywords"`
|
|
MetaTitle *string `gorm:"column:meta_title" json:"meta_title"`
|
|
Name string `gorm:"column:name;not null;index:name,priority:1" json:"name"`
|
|
AvailableNow *string `gorm:"column:available_now" json:"available_now"`
|
|
AvailableLater *string `gorm:"column:available_later" json:"available_later"`
|
|
DeliveryInStock *string `gorm:"column:delivery_in_stock" json:"delivery_in_stock"`
|
|
DeliveryOutStock *string `gorm:"column:delivery_out_stock" json:"delivery_out_stock"`
|
|
Usage *string `gorm:"column:usage" json:"usage"`
|
|
}
|
|
|
|
// TableName PsProductLang's table name
|
|
func (*PsProductLang) TableName() string {
|
|
return TableNamePsProductLang
|
|
}
|
|
|
|
var PsProductLangCols = struct {
|
|
IDProduct gormcol.Field
|
|
IDShop gormcol.Field
|
|
IDLang gormcol.Field
|
|
Description gormcol.Field
|
|
DescriptionShort gormcol.Field
|
|
LinkRewrite gormcol.Field
|
|
MetaDescription gormcol.Field
|
|
MetaKeywords gormcol.Field
|
|
MetaTitle gormcol.Field
|
|
Name gormcol.Field
|
|
AvailableNow gormcol.Field
|
|
AvailableLater gormcol.Field
|
|
DeliveryInStock gormcol.Field
|
|
DeliveryOutStock gormcol.Field
|
|
Usage gormcol.Field
|
|
}{
|
|
IDProduct: gormcol.Field{}.Set((&PsProductLang{}).TableName(), "id_product"),
|
|
IDShop: gormcol.Field{}.Set((&PsProductLang{}).TableName(), "id_shop"),
|
|
IDLang: gormcol.Field{}.Set((&PsProductLang{}).TableName(), "id_lang"),
|
|
Description: gormcol.Field{}.Set((&PsProductLang{}).TableName(), "description"),
|
|
DescriptionShort: gormcol.Field{}.Set((&PsProductLang{}).TableName(), "description_short"),
|
|
LinkRewrite: gormcol.Field{}.Set((&PsProductLang{}).TableName(), "link_rewrite"),
|
|
MetaDescription: gormcol.Field{}.Set((&PsProductLang{}).TableName(), "meta_description"),
|
|
MetaKeywords: gormcol.Field{}.Set((&PsProductLang{}).TableName(), "meta_keywords"),
|
|
MetaTitle: gormcol.Field{}.Set((&PsProductLang{}).TableName(), "meta_title"),
|
|
Name: gormcol.Field{}.Set((&PsProductLang{}).TableName(), "name"),
|
|
AvailableNow: gormcol.Field{}.Set((&PsProductLang{}).TableName(), "available_now"),
|
|
AvailableLater: gormcol.Field{}.Set((&PsProductLang{}).TableName(), "available_later"),
|
|
DeliveryInStock: gormcol.Field{}.Set((&PsProductLang{}).TableName(), "delivery_in_stock"),
|
|
DeliveryOutStock: gormcol.Field{}.Set((&PsProductLang{}).TableName(), "delivery_out_stock"),
|
|
Usage: gormcol.Field{}.Set((&PsProductLang{}).TableName(), "usage"),
|
|
}
|