51 lines
2.2 KiB
Go
51 lines
2.2 KiB
Go
// Code generated by gormcol. DO NOT EDIT.
|
|
|
|
package dbmodel
|
|
|
|
import "git.ma-al.com/goc_marek/gormcol"
|
|
|
|
const TableNamePsInpostDispatchPoint = "ps_inpost_dispatch_point"
|
|
|
|
// PsInpostDispatchPoint mapped from table <ps_inpost_dispatch_point>
|
|
type PsInpostDispatchPoint struct {
|
|
IDDispatchPoint int32 `gorm:"column:id_dispatch_point;primaryKey;autoIncrement:true" json:"id_dispatch_point"`
|
|
Name string `gorm:"column:name;not null" json:"name"`
|
|
OfficeHours *string `gorm:"column:office_hours" json:"office_hours"`
|
|
Email *string `gorm:"column:email" json:"email"`
|
|
Phone *string `gorm:"column:phone" json:"phone"`
|
|
Street string `gorm:"column:street;not null" json:"street"`
|
|
BuildingNumber string `gorm:"column:building_number;not null" json:"building_number"`
|
|
PostCode string `gorm:"column:post_code;not null" json:"post_code"`
|
|
City string `gorm:"column:city;not null" json:"city"`
|
|
Deleted bool `gorm:"column:deleted;not null" json:"deleted"`
|
|
}
|
|
|
|
// TableName PsInpostDispatchPoint's table name
|
|
func (*PsInpostDispatchPoint) TableName() string {
|
|
return TableNamePsInpostDispatchPoint
|
|
}
|
|
|
|
var PsInpostDispatchPointCols = struct {
|
|
IDDispatchPoint gormcol.Field
|
|
Name gormcol.Field
|
|
OfficeHours gormcol.Field
|
|
Email gormcol.Field
|
|
Phone gormcol.Field
|
|
Street gormcol.Field
|
|
BuildingNumber gormcol.Field
|
|
PostCode gormcol.Field
|
|
City gormcol.Field
|
|
Deleted gormcol.Field
|
|
}{
|
|
IDDispatchPoint: gormcol.Field{}.Set((&PsInpostDispatchPoint{}).TableName(), "id_dispatch_point"),
|
|
Name: gormcol.Field{}.Set((&PsInpostDispatchPoint{}).TableName(), "name"),
|
|
OfficeHours: gormcol.Field{}.Set((&PsInpostDispatchPoint{}).TableName(), "office_hours"),
|
|
Email: gormcol.Field{}.Set((&PsInpostDispatchPoint{}).TableName(), "email"),
|
|
Phone: gormcol.Field{}.Set((&PsInpostDispatchPoint{}).TableName(), "phone"),
|
|
Street: gormcol.Field{}.Set((&PsInpostDispatchPoint{}).TableName(), "street"),
|
|
BuildingNumber: gormcol.Field{}.Set((&PsInpostDispatchPoint{}).TableName(), "building_number"),
|
|
PostCode: gormcol.Field{}.Set((&PsInpostDispatchPoint{}).TableName(), "post_code"),
|
|
City: gormcol.Field{}.Set((&PsInpostDispatchPoint{}).TableName(), "city"),
|
|
Deleted: gormcol.Field{}.Set((&PsInpostDispatchPoint{}).TableName(), "deleted"),
|
|
}
|