Use table name constant in Cols for type safety
This commit is contained in:
61
app/model/dbmodel/ps_dpdpoland_sender_address.go
Normal file
61
app/model/dbmodel/ps_dpdpoland_sender_address.go
Normal file
@@ -0,0 +1,61 @@
|
||||
// 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 TableNamePsDpdpolandSenderAddress = "ps_dpdpoland_sender_address"
|
||||
|
||||
// PsDpdpolandSenderAddress mapped from table <ps_dpdpoland_sender_address>
|
||||
type PsDpdpolandSenderAddress struct {
|
||||
IDSenderAddress int32 `gorm:"column:id_sender_address;primaryKey;autoIncrement:true" json:"id_sender_address"`
|
||||
Alias string `gorm:"column:alias;not null" json:"alias"`
|
||||
Company string `gorm:"column:company;not null" json:"company"`
|
||||
Name string `gorm:"column:name;not null" json:"name"`
|
||||
Address string `gorm:"column:address;not null" json:"address"`
|
||||
City string `gorm:"column:city;not null" json:"city"`
|
||||
Email string `gorm:"column:email;not null" json:"email"`
|
||||
Postcode string `gorm:"column:postcode;not null" json:"postcode"`
|
||||
Phone string `gorm:"column:phone;not null" json:"phone"`
|
||||
IDShop int32 `gorm:"column:id_shop;not null" json:"id_shop"`
|
||||
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 PsDpdpolandSenderAddress's table name
|
||||
func (*PsDpdpolandSenderAddress) TableName() string {
|
||||
return TableNamePsDpdpolandSenderAddress
|
||||
}
|
||||
|
||||
var PsDpdpolandSenderAddressCols = struct {
|
||||
IDSenderAddress gormcol.Field
|
||||
Alias gormcol.Field
|
||||
Company gormcol.Field
|
||||
Name gormcol.Field
|
||||
Address gormcol.Field
|
||||
City gormcol.Field
|
||||
Email gormcol.Field
|
||||
Postcode gormcol.Field
|
||||
Phone gormcol.Field
|
||||
IDShop gormcol.Field
|
||||
DateAdd gormcol.Field
|
||||
DateUpd gormcol.Field
|
||||
}{
|
||||
IDSenderAddress: gormcol.Field{Table: TableNamePsDpdpolandSenderAddress, Column: "id_sender_address"},
|
||||
Alias: gormcol.Field{Table: TableNamePsDpdpolandSenderAddress, Column: "alias"},
|
||||
Company: gormcol.Field{Table: TableNamePsDpdpolandSenderAddress, Column: "company"},
|
||||
Name: gormcol.Field{Table: TableNamePsDpdpolandSenderAddress, Column: "name"},
|
||||
Address: gormcol.Field{Table: TableNamePsDpdpolandSenderAddress, Column: "address"},
|
||||
City: gormcol.Field{Table: TableNamePsDpdpolandSenderAddress, Column: "city"},
|
||||
Email: gormcol.Field{Table: TableNamePsDpdpolandSenderAddress, Column: "email"},
|
||||
Postcode: gormcol.Field{Table: TableNamePsDpdpolandSenderAddress, Column: "postcode"},
|
||||
Phone: gormcol.Field{Table: TableNamePsDpdpolandSenderAddress, Column: "phone"},
|
||||
IDShop: gormcol.Field{Table: TableNamePsDpdpolandSenderAddress, Column: "id_shop"},
|
||||
DateAdd: gormcol.Field{Table: TableNamePsDpdpolandSenderAddress, Column: "date_add"},
|
||||
DateUpd: gormcol.Field{Table: TableNamePsDpdpolandSenderAddress, Column: "date_upd"},
|
||||
}
|
||||
Reference in New Issue
Block a user