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
@@ -2,9 +2,8 @@ package models
|
||||
|
||||
type Almacen struct {
|
||||
ID string `gorm:"primaryKey;type:varchar(5)" json:"id"`
|
||||
Razon string `gorm:"uniqueIndex;not null;type:varchar(70)" json:"razon"`
|
||||
EmpresaID string `gorm:"type:varchar(3);index;not null" json:"empresaId"`
|
||||
Estantes []Estante `gorm:"foreignKey:AlmacenID" json:"estantes,omitempty"`
|
||||
Ubicacion string `gorm:"type:varchar(40)" json:"ubicacion"`
|
||||
Stocks []Stock `gorm:"foreignKey:RepuestoID" json:"stocks,omitempty"`
|
||||
}
|
||||
|
||||
func (Almacen) TableName() string {
|
||||
|
||||
Reference in new issue
Block a user