Private
Public Access
cmbiamos algunos imports y cambiamos productos por repuestos
This commit is contained in:
1 parent
96048d7776
commit
e4542e48e6
26 files changed
+66
-74
No files matched your search
@@ -0,0 +1,16 @@
|
||||
package models
|
||||
|
||||
|
||||
type Repuesto struct {
|
||||
ID uint64 `gorm:"primaryKey" json:"id"`
|
||||
Nombre string `gorm:"type:varchar(50);not null" json:"nombre"`
|
||||
Precio float64 `gorm:"not null;type:decimal(10,2)" json:"precio"`
|
||||
StockMinimo int64 `gorm:"not null;type:bigint" json:"stockMinimo"`
|
||||
Descripcion string `gorm:"uniqueIndex;not null;type:varchar(70)" json:"razon"`
|
||||
MarcaID string `gorm:"type:varchar(3);index" json:"marcaId"`
|
||||
Aliases []string `gorm:"type:json" json:"aliases,omitempty"`
|
||||
Stocks []Stock `gorm:"foreignKey:RepuestoID" json:"stocks,omitempty"`
|
||||
}
|
||||
func (Repuesto) TableName() string {
|
||||
return "repuesto"
|
||||
}
|
||||
Reference in new issue
Block a user