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

+4 -3
View File
@@ -1,15 +1,16 @@
package models
import (
models_seguridad "repuestera_back/models/seguridad"
"repuestera_back/models/seguridad"
"gorm.io/gorm"
)
// este lo uso de base para los distintos tipos de comprobantes
// Comprobante es la base de los distintos tipos de comprobantes.
// EmpresaID se propaga automáticamente a todas las tablas que lo embeben.
type Comprobante struct {
gorm.Model
// Numero string `gorm:"size:50;not null" json:"numero"`
EmpresaID uint `gorm:"not null;default:1;index" json:"empresaId"`
Estado string `gorm:"type:varchar(20);not null" json:"estado"`
Total float64 `gorm:"type:decimal(15,2);not null" json:"total"`
ResponsableID uint `gorm:"column:usuarioID"`