add models generation and josn print

This commit is contained in:
2026-03-26 02:22:14 +01:00
parent 7c5a993623
commit af2b276599
319 changed files with 7394 additions and 27 deletions

View File

@@ -0,0 +1,27 @@
// 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
const TableNamePsCountry = "ps_country"
// PsCountry mapped from table <ps_country>
type PsCountry struct {
IDCountry int32 `gorm:"column:id_country;primaryKey;autoIncrement:true" json:"id_country"`
IDZone int32 `gorm:"column:id_zone;not null;index:country_,priority:1" json:"id_zone"`
IDCurrency int32 `gorm:"column:id_currency;not null" json:"id_currency"`
IsoCode string `gorm:"column:iso_code;not null;index:country_iso_code,priority:1" json:"iso_code"`
CallPrefix int32 `gorm:"column:call_prefix;not null" json:"call_prefix"`
Active bool `gorm:"column:active;not null" json:"active"`
ContainsStates bool `gorm:"column:contains_states;not null" json:"contains_states"`
NeedIdentificationNumber bool `gorm:"column:need_identification_number;not null" json:"need_identification_number"`
NeedZipCode bool `gorm:"column:need_zip_code;not null;default:1" json:"need_zip_code"`
ZipCodeFormat string `gorm:"column:zip_code_format;not null" json:"zip_code_format"`
DisplayTaxLabel bool `gorm:"column:display_tax_label;not null" json:"display_tax_label"`
}
// TableName PsCountry's table name
func (*PsCountry) TableName() string {
return TableNamePsCountry
}