Private
Public Access
12 lines
301 B
Go
12 lines
301 B
Go
package models
|
|
|
|
type Almacen struct {
|
|
ID string `gorm:"primaryKey;type:varchar(5)" json:"id"`
|
|
Ubicacion string `gorm:"type:varchar(40)" json:"ubicacion"`
|
|
Stocks []Stock `gorm:"foreignKey:repuestoID" json:"stocks,omitempty"`
|
|
}
|
|
|
|
func (Almacen) TableName() string {
|
|
return "almacen"
|
|
}
|