Parcourir la source

add CarCaDe code

Sergey Shchogolev il y a 1 an
Parent
commit
ea31a84633
1 fichiers modifiés avec 2 ajouts et 1 suppressions
  1. 2 1
      model/product.go

+ 2 - 1
model/product.go

@@ -5,7 +5,8 @@ import (
 )
 
 type Product struct {
-	CodeUT10      string  `gorm:"size:6;not null; unique; index; primaryKey" json:"code_ut10"`
+	CodeCarCaDe   string  `gorm:"size:11;not null; unique; index; primaryKey" json:"code_carcade"`
+	CodeUT10      string  `gorm:"size:6;" 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"`