Private
Public Access
avance creando entidades
This commit is contained in:
1 parent
1d755376f6
commit
7cadb9c84b
25 files changed
+200
-47
No files matched your search
@@ -0,0 +1,13 @@
|
||||
package models
|
||||
|
||||
type Cajon struct {
|
||||
ID string `gorm:"primaryKey;type:varchar(30)" json:"id"`
|
||||
Razon string `gorm:"not null;type:varchar(70)" json:"razon"`
|
||||
Codigo string `gorm:"not null;type:varchar(5)" json:"codigo"`
|
||||
EstanteID string `gorm:"type:varchar(30);index;not null" json:"estanteId"`
|
||||
Stocks []Stock `gorm:"foreignKey:CajonID" json:"stocks,omitempty"`
|
||||
}
|
||||
|
||||
func (Cajon) TableName() string {
|
||||
return "cajon"
|
||||
}
|
||||
Reference in new issue
Block a user