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