35 lines
1.4 KiB
Go
35 lines
1.4 KiB
Go
package entities
|
|
|
|
import "github.com/google/uuid"
|
|
|
|
type MAisleEntity struct {
|
|
ID uuid.UUID `gorm:"primaryKey;type:uuid;default:uuid_generate_v4()" json:"id"`
|
|
Code string `gorm:"type:varchar(50);not null;" json:"code"`
|
|
Name string `gorm:"type:varchar(100);not null;" json:"name"`
|
|
IsleX int `gorm:"type:int;" json:"isle_x"`
|
|
BinY int `gorm:"type:int;" json:"bin_y"`
|
|
LevelZ int `gorm:"type:int;" json:"level_z"`
|
|
DimLength float64 `gorm:"type:float;" json:"dim_length"`
|
|
DimWidth float64 `gorm:"type:float;" json:"dim_width"`
|
|
DimHeight float64 `gorm:"type:float;" json:"dim_height"`
|
|
Weight float64 `gorm:"type:float;" json:"weight"`
|
|
QrCodeAisle string `gorm:"type:text;" json:"qr_code_aisle"`
|
|
IsActive bool `gorm:"type:boolean;default:true;" json:"is_active"`
|
|
|
|
ZoneID uuid.UUID `gorm:"type:uuid;index;" json:"zone_id"`
|
|
DimUomID uuid.UUID `gorm:"type:uuid;index;" json:"dim_uom_id"`
|
|
WeightUomID uuid.UUID `gorm:"type:uuid;index;" json:"weight_uom_id"`
|
|
ClientID uuid.UUID `gorm:"type:uuid;index;" json:"client_id"`
|
|
|
|
Zona MZonaEntity `gorm:"foreignKey:ZoneID;references:ID"`
|
|
DimUom MUomEntity `gorm:"foreignKey:DimUomID;references:ID"`
|
|
WeightUom MUomEntity `gorm:"foreignKey:WeightUomID;references:ID"`
|
|
Client M_Client `gorm:"foreignKey:ClientID;references:ID"`
|
|
|
|
FullAuditTrail
|
|
}
|
|
|
|
func (MAisleEntity) TableName() string {
|
|
return "m_aisles"
|
|
}
|