Use table name constant in Cols for type safety
This commit is contained in:
43
app/model/dbmodel/ps_dpdpoland_payer_number.go
Normal file
43
app/model/dbmodel/ps_dpdpoland_payer_number.go
Normal file
@@ -0,0 +1,43 @@
|
||||
// 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 TableNamePsDpdpolandPayerNumber = "ps_dpdpoland_payer_number"
|
||||
|
||||
// PsDpdpolandPayerNumber mapped from table <ps_dpdpoland_payer_number>
|
||||
type PsDpdpolandPayerNumber struct {
|
||||
IDDpdpolandPayerNumber int32 `gorm:"column:id_dpdpoland_payer_number;primaryKey;autoIncrement:true" json:"id_dpdpoland_payer_number"`
|
||||
IDShop int32 `gorm:"column:id_shop;not null" json:"id_shop"`
|
||||
PayerNumber string `gorm:"column:payer_number;not null" json:"payer_number"`
|
||||
Name string `gorm:"column:name;not null" json:"name"`
|
||||
DateAdd time.Time `gorm:"column:date_add;not null" json:"date_add"`
|
||||
DateUpd time.Time `gorm:"column:date_upd;not null" json:"date_upd"`
|
||||
}
|
||||
|
||||
// TableName PsDpdpolandPayerNumber's table name
|
||||
func (*PsDpdpolandPayerNumber) TableName() string {
|
||||
return TableNamePsDpdpolandPayerNumber
|
||||
}
|
||||
|
||||
var PsDpdpolandPayerNumberCols = struct {
|
||||
IDDpdpolandPayerNumber gormcol.Field
|
||||
IDShop gormcol.Field
|
||||
PayerNumber gormcol.Field
|
||||
Name gormcol.Field
|
||||
DateAdd gormcol.Field
|
||||
DateUpd gormcol.Field
|
||||
}{
|
||||
IDDpdpolandPayerNumber: gormcol.Field{Table: TableNamePsDpdpolandPayerNumber, Column: "id_dpdpoland_payer_number"},
|
||||
IDShop: gormcol.Field{Table: TableNamePsDpdpolandPayerNumber, Column: "id_shop"},
|
||||
PayerNumber: gormcol.Field{Table: TableNamePsDpdpolandPayerNumber, Column: "payer_number"},
|
||||
Name: gormcol.Field{Table: TableNamePsDpdpolandPayerNumber, Column: "name"},
|
||||
DateAdd: gormcol.Field{Table: TableNamePsDpdpolandPayerNumber, Column: "date_add"},
|
||||
DateUpd: gormcol.Field{Table: TableNamePsDpdpolandPayerNumber, Column: "date_upd"},
|
||||
}
|
||||
Reference in New Issue
Block a user