Private
Public Access
primeros cambios hechos para tener el multitenant
This commit is contained in:
1 parent
34ad4424f9
commit
4e082e8767
132 files changed
+6202
-762
No files matched your search
@@ -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"`
|
||||
}
|
||||
Reference in new issue
Block a user