hecho para poder cargar una reserva desde el facturas venta

Signed-off-by: fede <federico.nicolas.polidoro@gmail.com>
This commit is contained in:
fede committed 2026-12-01 13:53:00 -03:00
1 parent 1073c69d5c
commit ab59bd7043
20 files changed
+293 -90

No files matched your search

+10 -8
View File
@@ -3,20 +3,22 @@ package models_seguridad
import (
"time"
"gorm.io/datatypes"
"gorm.io/gorm"
)
// Empresa es el tenant del sistema. Todos los datos de negocio pertenecen a
// una empresa y se filtran por EmpresaID.
type Empresa struct {
ID uint `gorm:"primaryKey" json:"id"`
Nombre string `gorm:"type:varchar(120);not null" json:"nombre"`
Slug string `gorm:"type:varchar(60);uniqueIndex;not null" json:"slug"`
Cuit *string `gorm:"type:varchar(11);uniqueIndex" json:"cuit,omitempty"`
Activa bool `gorm:"not null;default:true" json:"activa"`
CreatedAt time.Time `json:"created_at"`
UpdatedAt time.Time `json:"updated_at"`
DeletedAt gorm.DeletedAt `gorm:"index" json:"-"`
ID uint `gorm:"primaryKey" json:"id"`
Nombre string `gorm:"type:varchar(120);not null" json:"nombre"`
Slug string `gorm:"type:varchar(60);uniqueIndex;not null" json:"slug"`
Cuit *string `gorm:"type:varchar(11);uniqueIndex" json:"cuit,omitempty"`
EmailAlertaStock datatypes.JSONSlice[string] `gorm:"type:json" json:"email_alerta_stock,omitempty"`
Activa bool `gorm:"not null;default:true" json:"activa"`
CreatedAt time.Time `json:"created_at"`
UpdatedAt time.Time `json:"updated_at"`
DeletedAt gorm.DeletedAt `gorm:"index" json:"-"`
}
func (Empresa) TableName() string {