Use table name constant in Cols for type safety

This commit is contained in:
2026-03-29 15:29:39 +02:00
parent 0cfddddccb
commit a53e24c5b8
315 changed files with 13092 additions and 5 deletions

View 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 TableNamePsConfigurationLang = "ps_configuration_lang"
// PsConfigurationLang mapped from table <ps_configuration_lang>
type PsConfigurationLang struct {
IDConfiguration int32 `gorm:"column:id_configuration;primaryKey" json:"id_configuration"`
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 PsConfigurationLang's table name
func (*PsConfigurationLang) TableName() string {
return TableNamePsConfigurationLang
}
var PsConfigurationLangCols = struct {
IDConfiguration gormcol.Field
IDLang gormcol.Field
Value gormcol.Field
DateUpd gormcol.Field
}{
IDConfiguration: gormcol.Field{Table: TableNamePsConfigurationLang, Column: "id_configuration"},
IDLang: gormcol.Field{Table: TableNamePsConfigurationLang, Column: "id_lang"},
Value: gormcol.Field{Table: TableNamePsConfigurationLang, Column: "value"},
DateUpd: gormcol.Field{Table: TableNamePsConfigurationLang, Column: "date_upd"},
}