feat: adapatadas entidades para que coinsidan con el modelo

This commit is contained in:
fede committed 2026-08-06 02:12:51 -03:00
1 parent de33352618
commit 152a40ca19
16 files changed
+105 -68

No files matched your search

+12
View File
@@ -0,0 +1,12 @@
package models
import (
"gorm.io/gorm"
)
type Cliente struct {
gorm.Model
Nombre string `gorm:"type:varchar(40)" json:"nombre"`
Facturas []Factura `gorm:"foreignKey:facturaID" json:"facturas,omitempty"`
Recibos []Recibo `gorm:"foreignKey:reciboID"`
}