termine de crear los modelos por una segunda vez

This commit is contained in:
fede committed 2026-08-06 19:09:08 -03:00
1 parent 152a40ca19
commit 8a1ea71805
12 files changed
+49 -17

No files matched your search

+1 -2
View File
@@ -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"`
}