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"` }