Private
Public Access
Fix GORM foreign keys and column types in models
This commit is contained in:
1 parent
fce21846bc
commit
8d5e191d7d
21 files changed
+48
-39
No files matched your search
@@ -4,8 +4,9 @@ import "gorm.io/gorm"
|
||||
|
||||
type FormaDePago struct {
|
||||
gorm.Model
|
||||
Descripcion string `gorm:"type:varchar(20),not null" json:"desripcion" `
|
||||
Descripcion string `gorm:"type:varchar(20);not null" json:"desripcion" `
|
||||
}
|
||||
|
||||
func (FormaDePago) TableName() string {
|
||||
return "forma_de_pago"
|
||||
}
|
||||
Reference in new issue
Block a user