|
@@ -5,21 +5,22 @@ import (
|
|
|
)
|
|
)
|
|
|
|
|
|
|
|
type Product struct {
|
|
type Product struct {
|
|
|
- CodeUT10 string `gorm:"size:6;not null; unique; index; primaryKey" json:"code_ut10"`
|
|
|
|
|
- Name string `gorm:"size:100" json:"name"`
|
|
|
|
|
- Manufacturer string `gorm:"size:50" json:"manufacturer"`
|
|
|
|
|
- ArticleNumber string `gorm:"size:50" json:"article_number"`
|
|
|
|
|
- Brand string `gorm:"size:100" json:"brand"`
|
|
|
|
|
- Unit string `gorm:"size:50" json:"unit"`
|
|
|
|
|
- GroupLimit string `gorm:"size:2" json:"group_limit"`
|
|
|
|
|
- GroupPrice string `gorm:"size:50" json:"group_price"`
|
|
|
|
|
- NumberCatalog string `gorm:"size:50" json:"number_catalog"`
|
|
|
|
|
- NumberDrawing string `gorm:"size:50" json:"number_drawing"`
|
|
|
|
|
- NumberBrand string `gorm:"size:10" json:"number_brand"`
|
|
|
|
|
- NumberPrefix string `gorm:"size:4" json:"number_prefix"`
|
|
|
|
|
- NumberArticle string `gorm:"size:25" json:"number_article"`
|
|
|
|
|
- NumberSuffix string `gorm:"size:3" json:"number_suffix"`
|
|
|
|
|
- CategoryId string `gorm:"size:5" json:"categoryId"`
|
|
|
|
|
|
|
+ CodeUT10 string `gorm:"size:6;not null; unique; index; primaryKey" json:"code_ut10"`
|
|
|
|
|
+ Name string `gorm:"size:100" json:"name"`
|
|
|
|
|
+ Manufacturer string `gorm:"size:50" json:"manufacturer"`
|
|
|
|
|
+ ArticleNumber string `gorm:"size:50" json:"article_number"`
|
|
|
|
|
+ Brand string `gorm:"size:100" json:"brand"`
|
|
|
|
|
+ Unit string `gorm:"size:50" json:"unit"`
|
|
|
|
|
+ GroupLimit string `gorm:"size:2" json:"group_limit"`
|
|
|
|
|
+ GroupPrice string `gorm:"size:50" json:"group_price"`
|
|
|
|
|
+ NumberCatalog string `gorm:"size:50" json:"number_catalog"`
|
|
|
|
|
+ NumberDrawing string `gorm:"size:50" json:"number_drawing"`
|
|
|
|
|
+ NumberBrand string `gorm:"size:10" json:"number_brand"`
|
|
|
|
|
+ NumberPrefix string `gorm:"size:4" json:"number_prefix"`
|
|
|
|
|
+ NumberArticle string `gorm:"size:25" json:"number_article"`
|
|
|
|
|
+ NumberSuffix string `gorm:"size:3" json:"number_suffix"`
|
|
|
|
|
+ CategoryId string `gorm:"size:5" json:"categoryId"`
|
|
|
|
|
+ IdNumbers *string `gorm:"size:256" json:"id_numbers"`
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
type ProductsArray struct {
|
|
type ProductsArray struct {
|