package entities import "github.com/google/uuid" type MZonaEntity 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"` Type string `gorm:"type:varchar(50);not null;" json:"type"` Temperature string `gorm:"type:varchar(50);" json:"temperature"` Hazardous bool `gorm:"type:boolean;default:false;" json:"hazardous"` QRCodeZone string `gorm:"type:text;" json:"qr_code_zone"` IsActive bool `gorm:"type:boolean;default:true;" json:"is_active"` WarehouseID uuid.UUID `gorm:"type:uuid;index;" json:"warehouse_id"` ClientID uuid.UUID `gorm:"type:uuid;index;" json:"client_id"` Warehouse MWarehouseEntity `gorm:"foreignKey:WarehouseID;references:ID"` Client M_Client `gorm:"foreignKey:ClientID;references:ID"` Aisles []MAisleEntity `gorm:"foreignKey:ZoneID;references:ID"` FullAuditTrail } func (MZonaEntity) TableName() string { return "m_zonas" }