36 lines
1.6 KiB
Go
36 lines
1.6 KiB
Go
// 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 prestadb
|
|
|
|
import (
|
|
"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
|
|
}
|