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,28 @@
// 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 TableNamePsDpdpolandPudoCart = "ps_dpdpoland_pudo_cart"
// PsDpdpolandPudoCart mapped from table <ps_dpdpoland_pudo_cart>
type PsDpdpolandPudoCart struct {
PudoCode string `gorm:"column:pudo_code;not null" json:"pudo_code"`
IDCart int32 `gorm:"column:id_cart;primaryKey" json:"id_cart"`
}
// TableName PsDpdpolandPudoCart's table name
func (*PsDpdpolandPudoCart) TableName() string {
return TableNamePsDpdpolandPudoCart
}
var PsDpdpolandPudoCartCols = struct {
PudoCode gormcol.Field
IDCart gormcol.Field
}{
PudoCode: gormcol.Field{Table: TableNamePsDpdpolandPudoCart, Column: "pudo_code"},
IDCart: gormcol.Field{Table: TableNamePsDpdpolandPudoCart, Column: "id_cart"},
}