26 lines
875 B
Go
26 lines
875 B
Go
package types
|
|
|
|
import (
|
|
"time"
|
|
|
|
"gorm.io/gorm"
|
|
)
|
|
|
|
type Normas struct {
|
|
Etiqueta []Norma `json:"Etiqueta,omitempty"`
|
|
}
|
|
|
|
type Norma struct {
|
|
Codigo string `gorm:"primaryKey" json:"codigo"`
|
|
Calidad string `json:"calidad,omitempty"`
|
|
CodProducto string `json:"cod_producto,omitempty"`
|
|
CodMedida string `json:"cod_medida,omitempty"`
|
|
CodTolerancia string `json:"cod_tolerancia,omitempty"`
|
|
NormaProducto string `json:"norma_producto,omitempty"`
|
|
NormaMedida string `json:"norma_medida,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"`
|
|
}
|