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

+3 -2
View File
@@ -4,8 +4,9 @@ import "gorm.io/gorm"
type Pago struct {
gorm.Model
FormaDePago FormaDePago `gorm:"foreignKey:FormaDePagoID"`
Importe float64 `gorm:"type:decimal(10,2)"`
FormaDePagoID uint `gorm:"column:formaDePagoID"`
FormaDePago FormaDePago `gorm:"foreignKey:FormaDePagoID"`
Importe float64 `gorm:"type:decimal(10,2)"`
}
func (Pago) TableName() string {