zhangqian
2024-06-13 db75431fe7a401ac3509bf41c2f9c405bb07a408
models/attribute_value.go
@@ -10,9 +10,9 @@
   // AttributeValue 属性值和对象
   AttributeValue struct {
      gorm.Model
      EntityID    string `gorm:"primaryKey"`
      AttributeID uint   `gorm:"primaryKey"`
      Value       string `json:"value"`
      EntityID    string `gorm:"uniqueIndex:entity_id_attr_id;type:varchar(100);not null;default:''" json:"entityID"`
      AttributeID uint   `gorm:"uniqueIndex:entity_id_attr_id;type:int;not null;default:0" json:"attributeID"`
      Value       string `gorm:"type:varchar(255);not null;default:''" json:"value"`
   }
   AttributeValueSearch struct {