Private
Public Access
termine de crear los modelos por una segunda vez
This commit is contained in:
1 parent
152a40ca19
commit
8a1ea71805
12 files changed
+49
-17
No files matched your search
+3
-2
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user