add models generation and josn print
This commit is contained in:
23
app/model/prestadb/ps_state.go
Normal file
23
app/model/prestadb/ps_state.go
Normal file
@@ -0,0 +1,23 @@
|
||||
// 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 TableNamePsState = "ps_state"
|
||||
|
||||
// PsState mapped from table <ps_state>
|
||||
type PsState struct {
|
||||
IDState int32 `gorm:"column:id_state;primaryKey;autoIncrement:true" json:"id_state"`
|
||||
IDCountry int32 `gorm:"column:id_country;not null;index:id_country,priority:1" json:"id_country"`
|
||||
IDZone int32 `gorm:"column:id_zone;not null;index:id_zone,priority:1" json:"id_zone"`
|
||||
Name string `gorm:"column:name;not null;index:name,priority:1" json:"name"`
|
||||
IsoCode string `gorm:"column:iso_code;not null" json:"iso_code"`
|
||||
TaxBehavior int32 `gorm:"column:tax_behavior;not null" json:"tax_behavior"`
|
||||
Active bool `gorm:"column:active;not null" json:"active"`
|
||||
}
|
||||
|
||||
// TableName PsState's table name
|
||||
func (*PsState) TableName() string {
|
||||
return TableNamePsState
|
||||
}
|
||||
Reference in New Issue
Block a user