primeros cambios hechos para tener el multitenant

This commit is contained in:
fede committed 2026-11-10 17:06:56 -03:00
1 parent 34ad4424f9
commit 4e082e8767
132 files changed
+6202 -762

No files matched your search

+3 -2
View File
@@ -4,6 +4,7 @@ import "gorm.io/gorm"
type Proveedor struct {
gorm.Model
Nombre string `gorm:"type:varchar(40)" json:"nombre"`
Facturas []Factura `gorm:"foreignKey:ProveedorID" json:"facturas,omitempty"`
EmpresaID uint `gorm:"not null;default:1;index" json:"empresaId"`
Nombre string `gorm:"type:varchar(40)" json:"nombre"`
Facturas []Factura `gorm:"foreignKey:ProveedorID" json:"facturas,omitempty"`
}