Use table name constant in Cols for type safety
This commit is contained in:
28
app/model/dbmodel/ps_dpdpoland_pudo_cart.go
Normal file
28
app/model/dbmodel/ps_dpdpoland_pudo_cart.go
Normal 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"},
|
||||
}
|
||||
Reference in New Issue
Block a user