wip
This commit is contained in:
parent
3ee178d1b8
commit
d7b1dfa1a6
@ -1,16 +1,25 @@
|
|||||||
package types
|
package types
|
||||||
|
|
||||||
type AutoGenerated struct {
|
import (
|
||||||
Etiqueta []Etiqueta `json:"Etiqueta,omitempty"`
|
"time"
|
||||||
|
|
||||||
|
"gorm.io/gorm"
|
||||||
|
)
|
||||||
|
|
||||||
|
type Normas struct {
|
||||||
|
Etiqueta []Norma `json:"Etiqueta,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type Etiqueta struct {
|
type Norma struct {
|
||||||
Codigo string `json:"codigo,omitempty"`
|
Codigo string `gorm:"primaryKey" json:"codigo"`
|
||||||
Calidad string `json:"calidad,omitempty"`
|
Calidad string `json:"calidad,omitempty"`
|
||||||
CodProducto string `json:"cod_producto,omitempty"`
|
CodProducto string `json:"cod_producto,omitempty"`
|
||||||
CodMedida string `json:"cod_medida,omitempty"`
|
CodMedida string `json:"cod_medida,omitempty"`
|
||||||
CodTolerancia string `json:"cod_tolerancia,omitempty"`
|
CodTolerancia string `json:"cod_tolerancia,omitempty"`
|
||||||
NormaProducto string `json:"norma_producto,omitempty"`
|
NormaProducto string `json:"norma_producto,omitempty"`
|
||||||
NormaMedida string `json:"norma_medida,omitempty"`
|
NormaMedida string `json:"norma_medida,omitempty"`
|
||||||
NormaTolerancia string `json:"norma_tolerancia,omitempty"`
|
NormaTolerancia string `json:"norma_tolerancia,omitempty"`
|
||||||
|
CreatedAt time.Time `gorm:"->;<-:create" json:"createdat,omitempty"`
|
||||||
|
UpdatedAt time.Time `json:"updatedat,omitempty"`
|
||||||
|
DeletedAt gorm.DeletedAt `gorm:"index" json:"deletedat,omitempty"`
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user