add models generation and josn print
This commit is contained in:
24
app/model/prestadb/ps_warehouse.go
Normal file
24
app/model/prestadb/ps_warehouse.go
Normal file
@@ -0,0 +1,24 @@
|
||||
// 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 TableNamePsWarehouse = "ps_warehouse"
|
||||
|
||||
// PsWarehouse mapped from table <ps_warehouse>
|
||||
type PsWarehouse struct {
|
||||
IDWarehouse int32 `gorm:"column:id_warehouse;primaryKey;autoIncrement:true" json:"id_warehouse"`
|
||||
IDCurrency int32 `gorm:"column:id_currency;not null" json:"id_currency"`
|
||||
IDAddress int32 `gorm:"column:id_address;not null" json:"id_address"`
|
||||
IDEmployee int32 `gorm:"column:id_employee;not null" json:"id_employee"`
|
||||
Reference *string `gorm:"column:reference" json:"reference"`
|
||||
Name string `gorm:"column:name;not null" json:"name"`
|
||||
ManagementType string `gorm:"column:management_type;not null;default:WA" json:"management_type"`
|
||||
Deleted bool `gorm:"column:deleted;not null" json:"deleted"`
|
||||
}
|
||||
|
||||
// TableName PsWarehouse's table name
|
||||
func (*PsWarehouse) TableName() string {
|
||||
return TableNamePsWarehouse
|
||||
}
|
||||
Reference in New Issue
Block a user