Use table name constant in Cols for type safety
This commit is contained in:
37
app/model/dbmodel/ps_configuration_kpi_lang.go
Normal file
37
app/model/dbmodel/ps_configuration_kpi_lang.go
Normal file
@@ -0,0 +1,37 @@
|
||||
// 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"
|
||||
"time"
|
||||
)
|
||||
|
||||
const TableNamePsConfigurationKpiLang = "ps_configuration_kpi_lang"
|
||||
|
||||
// PsConfigurationKpiLang mapped from table <ps_configuration_kpi_lang>
|
||||
type PsConfigurationKpiLang struct {
|
||||
IDConfigurationKpi int32 `gorm:"column:id_configuration_kpi;primaryKey" json:"id_configuration_kpi"`
|
||||
IDLang int32 `gorm:"column:id_lang;primaryKey" json:"id_lang"`
|
||||
Value *string `gorm:"column:value" json:"value"`
|
||||
DateUpd *time.Time `gorm:"column:date_upd" json:"date_upd"`
|
||||
}
|
||||
|
||||
// TableName PsConfigurationKpiLang's table name
|
||||
func (*PsConfigurationKpiLang) TableName() string {
|
||||
return TableNamePsConfigurationKpiLang
|
||||
}
|
||||
|
||||
var PsConfigurationKpiLangCols = struct {
|
||||
IDConfigurationKpi gormcol.Field
|
||||
IDLang gormcol.Field
|
||||
Value gormcol.Field
|
||||
DateUpd gormcol.Field
|
||||
}{
|
||||
IDConfigurationKpi: gormcol.Field{Table: TableNamePsConfigurationKpiLang, Column: "id_configuration_kpi"},
|
||||
IDLang: gormcol.Field{Table: TableNamePsConfigurationKpiLang, Column: "id_lang"},
|
||||
Value: gormcol.Field{Table: TableNamePsConfigurationKpiLang, Column: "value"},
|
||||
DateUpd: gormcol.Field{Table: TableNamePsConfigurationKpiLang, Column: "date_upd"},
|
||||
}
|
||||
Reference in New Issue
Block a user