69 lines
3.0 KiB
Go
69 lines
3.0 KiB
Go
// Code generated by gormcol. DO NOT EDIT.
|
|
|
|
package dbmodel
|
|
|
|
import (
|
|
"git.ma-al.com/goc_marek/gormcol"
|
|
"time"
|
|
)
|
|
|
|
const TableNamePsShopCompany = "ps_shop_company"
|
|
|
|
// PsShopCompany mapped from table <ps_shop_company>
|
|
type PsShopCompany struct {
|
|
IDShopCompany int32 `gorm:"column:id_shop_company;primaryKey;autoIncrement:true" json:"id_shop_company"`
|
|
Name *string `gorm:"column:name" json:"name"`
|
|
Address *string `gorm:"column:address" json:"address"`
|
|
Postcode *string `gorm:"column:postcode" json:"postcode"`
|
|
City *string `gorm:"column:city" json:"city"`
|
|
Phone *string `gorm:"column:phone" json:"phone"`
|
|
IDCountry int32 `gorm:"column:id_country;not null" json:"id_country"`
|
|
VatNumber *string `gorm:"column:vat_number;uniqueIndex:UQ_ps_shop_company_vat_number,priority:1" json:"vat_number"`
|
|
Email *string `gorm:"column:email" json:"email"`
|
|
BankAccount *string `gorm:"column:bank_account" json:"bank_account"`
|
|
LastNumber *int32 `gorm:"column:last_number" json:"last_number"`
|
|
IsDefault int32 `gorm:"column:is_default;not null" json:"is_default"`
|
|
Color *string `gorm:"column:color" json:"color"`
|
|
DateAdd *time.Time `gorm:"column:date_add;default:current_timestamp()" json:"date_add"`
|
|
DateUpd *time.Time `gorm:"column:date_upd;default:current_timestamp()" json:"date_upd"`
|
|
}
|
|
|
|
// TableName PsShopCompany's table name
|
|
func (*PsShopCompany) TableName() string {
|
|
return TableNamePsShopCompany
|
|
}
|
|
|
|
var PsShopCompanyCols = struct {
|
|
IDShopCompany gormcol.Field
|
|
Name gormcol.Field
|
|
Address gormcol.Field
|
|
Postcode gormcol.Field
|
|
City gormcol.Field
|
|
Phone gormcol.Field
|
|
IDCountry gormcol.Field
|
|
VatNumber gormcol.Field
|
|
Email gormcol.Field
|
|
BankAccount gormcol.Field
|
|
LastNumber gormcol.Field
|
|
IsDefault gormcol.Field
|
|
Color gormcol.Field
|
|
DateAdd gormcol.Field
|
|
DateUpd gormcol.Field
|
|
}{
|
|
IDShopCompany: gormcol.Field{}.Set((&PsShopCompany{}).TableName(), "id_shop_company"),
|
|
Name: gormcol.Field{}.Set((&PsShopCompany{}).TableName(), "name"),
|
|
Address: gormcol.Field{}.Set((&PsShopCompany{}).TableName(), "address"),
|
|
Postcode: gormcol.Field{}.Set((&PsShopCompany{}).TableName(), "postcode"),
|
|
City: gormcol.Field{}.Set((&PsShopCompany{}).TableName(), "city"),
|
|
Phone: gormcol.Field{}.Set((&PsShopCompany{}).TableName(), "phone"),
|
|
IDCountry: gormcol.Field{}.Set((&PsShopCompany{}).TableName(), "id_country"),
|
|
VatNumber: gormcol.Field{}.Set((&PsShopCompany{}).TableName(), "vat_number"),
|
|
Email: gormcol.Field{}.Set((&PsShopCompany{}).TableName(), "email"),
|
|
BankAccount: gormcol.Field{}.Set((&PsShopCompany{}).TableName(), "bank_account"),
|
|
LastNumber: gormcol.Field{}.Set((&PsShopCompany{}).TableName(), "last_number"),
|
|
IsDefault: gormcol.Field{}.Set((&PsShopCompany{}).TableName(), "is_default"),
|
|
Color: gormcol.Field{}.Set((&PsShopCompany{}).TableName(), "color"),
|
|
DateAdd: gormcol.Field{}.Set((&PsShopCompany{}).TableName(), "date_add"),
|
|
DateUpd: gormcol.Field{}.Set((&PsShopCompany{}).TableName(), "date_upd"),
|
|
}
|