Browse Source

add CarCaDe code

Sergey Shchogolev 1 năm trước cách đây
mục cha
commit
ea31a84633
1 tập tin đã thay đổi với 2 bổ sung1 xóa
  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"`