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
@@ -2,9 +2,8 @@ package models
|
||||
|
||||
type Stock struct {
|
||||
ID uint64 `gorm:"primaryKey" json:"id"`
|
||||
RepuestoID uint64 `gorm:"index;not null" json:"repuestoId"`
|
||||
CajonID string `gorm:"type:varchar(30);index;not null" json:"cajonId"`
|
||||
Cantidad uint `gorm:"not null;default:0" json:"cantidad"`
|
||||
RepuestoID uint64 `gorm:"index;not null" json:"repuestoId"`
|
||||
Repuesto Repuesto `gorm:"foreignKey:RepuestoID" json:"repuesto"`
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user