zhangqian
2024-06-14 c73d79fe050e21bc53b3e94b6ca79fd3761d4d17
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 {