42 lines
1.4 KiB
Go
42 lines
1.4 KiB
Go
// Code generated by gormcol. DO NOT EDIT.
|
|
|
|
package dbmodel
|
|
|
|
import "git.ma-al.com/goc_marek/gormcol"
|
|
|
|
const TableNamePsStoreLang = "ps_store_lang"
|
|
|
|
// PsStoreLang mapped from table <ps_store_lang>
|
|
type PsStoreLang struct {
|
|
IDStore int32 `gorm:"column:id_store;primaryKey" json:"id_store"`
|
|
IDLang int32 `gorm:"column:id_lang;primaryKey" json:"id_lang"`
|
|
Name string `gorm:"column:name;not null" json:"name"`
|
|
Address1 string `gorm:"column:address1;not null" json:"address1"`
|
|
Address2 *string `gorm:"column:address2" json:"address2"`
|
|
Hours *string `gorm:"column:hours" json:"hours"`
|
|
Note *string `gorm:"column:note" json:"note"`
|
|
}
|
|
|
|
// TableName PsStoreLang's table name
|
|
func (*PsStoreLang) TableName() string {
|
|
return TableNamePsStoreLang
|
|
}
|
|
|
|
var PsStoreLangCols = struct {
|
|
IDStore gormcol.Field
|
|
IDLang gormcol.Field
|
|
Name gormcol.Field
|
|
Address1 gormcol.Field
|
|
Address2 gormcol.Field
|
|
Hours gormcol.Field
|
|
Note gormcol.Field
|
|
}{
|
|
IDStore: gormcol.Field{}.Set((&PsStoreLang{}).TableName(), "id_store"),
|
|
IDLang: gormcol.Field{}.Set((&PsStoreLang{}).TableName(), "id_lang"),
|
|
Name: gormcol.Field{}.Set((&PsStoreLang{}).TableName(), "name"),
|
|
Address1: gormcol.Field{}.Set((&PsStoreLang{}).TableName(), "address1"),
|
|
Address2: gormcol.Field{}.Set((&PsStoreLang{}).TableName(), "address2"),
|
|
Hours: gormcol.Field{}.Set((&PsStoreLang{}).TableName(), "hours"),
|
|
Note: gormcol.Field{}.Set((&PsStoreLang{}).TableName(), "note"),
|
|
}
|