Use table name constant in Cols for type safety
This commit is contained in:
52
app/model/dbmodel/ps_maal_events_lang.go
Normal file
52
app/model/dbmodel/ps_maal_events_lang.go
Normal file
@@ -0,0 +1,52 @@
|
||||
// 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 TableNamePsMaalEventsLang = "ps_maal_events_lang"
|
||||
|
||||
// PsMaalEventsLang mapped from table <ps_maal_events_lang>
|
||||
type PsMaalEventsLang struct {
|
||||
IDEventLang int32 `gorm:"column:id_event_lang;primaryKey;autoIncrement:true" json:"id_event_lang"`
|
||||
IDEvent int32 `gorm:"column:id_event;not null;index:id_event_id_lang,priority:1" json:"id_event"`
|
||||
IDLang int32 `gorm:"column:id_lang;not null;index:id_event_id_lang,priority:2" json:"id_lang"`
|
||||
PostTitle *string `gorm:"column:post_title" json:"post_title"`
|
||||
MetaTitle *string `gorm:"column:meta_title" json:"meta_title"`
|
||||
MetaDescription *string `gorm:"column:meta_description" json:"meta_description"`
|
||||
ContentTop *string `gorm:"column:content_top" json:"content_top"`
|
||||
ContentMiddle *string `gorm:"column:content_middle" json:"content_middle"`
|
||||
ContentBottom *string `gorm:"column:content_bottom" json:"content_bottom"`
|
||||
LinkRewrite *string `gorm:"column:link_rewrite" json:"link_rewrite"`
|
||||
}
|
||||
|
||||
// TableName PsMaalEventsLang's table name
|
||||
func (*PsMaalEventsLang) TableName() string {
|
||||
return TableNamePsMaalEventsLang
|
||||
}
|
||||
|
||||
var PsMaalEventsLangCols = struct {
|
||||
IDEventLang gormcol.Field
|
||||
IDEvent gormcol.Field
|
||||
IDLang gormcol.Field
|
||||
PostTitle gormcol.Field
|
||||
MetaTitle gormcol.Field
|
||||
MetaDescription gormcol.Field
|
||||
ContentTop gormcol.Field
|
||||
ContentMiddle gormcol.Field
|
||||
ContentBottom gormcol.Field
|
||||
LinkRewrite gormcol.Field
|
||||
}{
|
||||
IDEventLang: gormcol.Field{Table: TableNamePsMaalEventsLang, Column: "id_event_lang"},
|
||||
IDEvent: gormcol.Field{Table: TableNamePsMaalEventsLang, Column: "id_event"},
|
||||
IDLang: gormcol.Field{Table: TableNamePsMaalEventsLang, Column: "id_lang"},
|
||||
PostTitle: gormcol.Field{Table: TableNamePsMaalEventsLang, Column: "post_title"},
|
||||
MetaTitle: gormcol.Field{Table: TableNamePsMaalEventsLang, Column: "meta_title"},
|
||||
MetaDescription: gormcol.Field{Table: TableNamePsMaalEventsLang, Column: "meta_description"},
|
||||
ContentTop: gormcol.Field{Table: TableNamePsMaalEventsLang, Column: "content_top"},
|
||||
ContentMiddle: gormcol.Field{Table: TableNamePsMaalEventsLang, Column: "content_middle"},
|
||||
ContentBottom: gormcol.Field{Table: TableNamePsMaalEventsLang, Column: "content_bottom"},
|
||||
LinkRewrite: gormcol.Field{Table: TableNamePsMaalEventsLang, Column: "link_rewrite"},
|
||||
}
|
||||
Reference in New Issue
Block a user