añadido campo de cuit

This commit is contained in:
fede committed 2026-08-23 22:52:26 -03:00
1 parent 4dc208f6fc
commit 2982ffb8fe
3 files changed
+5 -2

No files matched your search

+1
View File
@@ -9,6 +9,7 @@ import (
type Cliente struct {
gorm.Model
Nombre string `gorm:"type:varchar(40)" json:"nombre"`
Cuit string `gorm:"type:varchar(11);uniqueIndex;not null" json:"cuit"`
Email sql.NullString `gorm:"type:varchar(80)" json:"email"`
Facturas []Factura `gorm:"foreignKey:facturaID" json:"facturas,omitempty"`
Recibos []Recibo `gorm:"foreignKey:reciboID"`
@@ -82,6 +82,8 @@ Almacen "1" --> "0..*" Stock
class "Cliente" as CC {
Nombre: string
Cuit: string
Email: string?
Facturas: []Factura
Recibos: []Recibo
}
Binary file not shown.