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