add models generation and josn print
This commit is contained in:
35
app/model/prestadb/ps_shop_company.go
Normal file
35
app/model/prestadb/ps_shop_company.go
Normal file
@@ -0,0 +1,35 @@
|
||||
// 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
|
||||
}
|
||||
Reference in New Issue
Block a user