Private
Public Access
feat: adapatadas entidades para que coinsidan con el modelo
This commit is contained in:
1 parent
de33352618
commit
152a40ca19
16 files changed
+105
-68
No files matched your search
@@ -0,0 +1,13 @@
|
||||
package models
|
||||
|
||||
import "gorm.io/gorm"
|
||||
|
||||
type Pago struct {
|
||||
gorm.Model
|
||||
FormaDePago FormaDePago `gorm:"foreignKey:FormaDePagoID"`
|
||||
Importe float64 `gorm:"type:decimal(10,2)"`
|
||||
}
|
||||
|
||||
func (Pago) TableName() string {
|
||||
return "pago"
|
||||
}
|
||||
Reference in new issue
Block a user