Private
Public Access
primeros cambios hechos para tener el multitenant
This commit is contained in:
1 parent
34ad4424f9
commit
4e082e8767
132 files changed
+6202
-762
No files matched your search
@@ -4,7 +4,8 @@ import "gorm.io/gorm"
|
||||
|
||||
type FormaDePago struct {
|
||||
gorm.Model
|
||||
Descripcion string `gorm:"type:varchar(20);not null" json:"desripcion" `
|
||||
EmpresaID uint `gorm:"not null;default:1;index;uniqueIndex:uq_formapago_empresa_desc,priority:1" json:"empresaId"`
|
||||
Descripcion string `gorm:"type:varchar(20);not null;uniqueIndex:uq_formapago_empresa_desc,priority:2" json:"descripcion"`
|
||||
}
|
||||
|
||||
func (FormaDePago) TableName() string {
|
||||
|
||||
Reference in new issue
Block a user