avance creando entidades

This commit is contained in:
fede committed 2026-05-14 17:21:28 -03:00
1 parent 1d755376f6
commit 7cadb9c84b
25 files changed
+200 -47

No files matched your search

+12
View File
@@ -0,0 +1,12 @@
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"`
}
func (Almacen) TableName() string {
return "almacen"
}