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"
const TableNamePsInpostCartChoice = "ps_inpost_cart_choice"
// PsInpostCartChoice mapped from table <ps_inpost_cart_choice>
type PsInpostCartChoice struct {
IDCart int32 `gorm:"column:id_cart;primaryKey" json:"id_cart"`
Service string `gorm:"column:service;not null" json:"service"`
Email *string `gorm:"column:email" json:"email"`
Phone *string `gorm:"column:phone" json:"phone"`
Point *string `gorm:"column:point" json:"point"`
}
// TableName PsInpostCartChoice's table name
func (*PsInpostCartChoice) TableName() string {
return TableNamePsInpostCartChoice
}
var PsInpostCartChoiceCols = struct {
IDCart gormcol.Field
Service gormcol.Field
Email gormcol.Field
Phone gormcol.Field
Point gormcol.Field
}{
IDCart: gormcol.Field{Table: TableNamePsInpostCartChoice, Column: "id_cart"},
Service: gormcol.Field{Table: TableNamePsInpostCartChoice, Column: "service"},
Email: gormcol.Field{Table: TableNamePsInpostCartChoice, Column: "email"},
Phone: gormcol.Field{Table: TableNamePsInpostCartChoice, Column: "phone"},
Point: gormcol.Field{Table: TableNamePsInpostCartChoice, Column: "point"},
}