termine de crear los modelos por una segunda vez

This commit is contained in:
fede committed 2026-08-06 19:09:08 -03:00
1 parent 152a40ca19
commit 8a1ea71805
12 files changed
+49 -17

No files matched your search

+1
View File
@@ -3,6 +3,7 @@ package models
type Factura struct {
Comprobante
ClienteID uint `gorm:"column:ClienteID"`
Cliente Cliente `gorm:"foreignKey:ClienteID" json:"cliente"`
Total float64 `gorm:"not null;default:0" json:"total"`
Detalles []FacturaDetalle `gorm:"type:json" json:"detalles,omitempty"`