fix products listing
This commit is contained in:
44
app/model/dbmodel/ps_warehouse.go
Normal file
44
app/model/dbmodel/ps_warehouse.go
Normal file
@@ -0,0 +1,44 @@
|
||||
// Code generated by gormcol. DO NOT EDIT.
|
||||
|
||||
package dbmodel
|
||||
|
||||
import "git.ma-al.com/goc_marek/gormcol"
|
||||
|
||||
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
|
||||
}
|
||||
|
||||
var PsWarehouseCols = struct {
|
||||
IDWarehouse gormcol.Field
|
||||
IDCurrency gormcol.Field
|
||||
IDAddress gormcol.Field
|
||||
IDEmployee gormcol.Field
|
||||
Reference gormcol.Field
|
||||
Name gormcol.Field
|
||||
ManagementType gormcol.Field
|
||||
Deleted gormcol.Field
|
||||
}{
|
||||
IDWarehouse: gormcol.Field{}.Set((&PsWarehouse{}).TableName(), "id_warehouse"),
|
||||
IDCurrency: gormcol.Field{}.Set((&PsWarehouse{}).TableName(), "id_currency"),
|
||||
IDAddress: gormcol.Field{}.Set((&PsWarehouse{}).TableName(), "id_address"),
|
||||
IDEmployee: gormcol.Field{}.Set((&PsWarehouse{}).TableName(), "id_employee"),
|
||||
Reference: gormcol.Field{}.Set((&PsWarehouse{}).TableName(), "reference"),
|
||||
Name: gormcol.Field{}.Set((&PsWarehouse{}).TableName(), "name"),
|
||||
ManagementType: gormcol.Field{}.Set((&PsWarehouse{}).TableName(), "management_type"),
|
||||
Deleted: gormcol.Field{}.Set((&PsWarehouse{}).TableName(), "deleted"),
|
||||
}
|
||||
Reference in New Issue
Block a user