type AttributeValue struct {
ID int `json:"id" gorm:"primaryKey"`
AttrID int `json:"attrId" gorm:"comment:属性id" `
Value string `json:"value" gorm:"值"`
}
type Enum struct {
ID int `json:"id" gorm:"primaryKey"`
Name string `json:"name" gorm:"index;comment:名称"`
Group uint32 `json:"group" gorm:"comment:枚举组"`
PID int `json:"pId" gorm:"comment:父id"`
}
type EnumValue struct {
ID int `json:"id" gorm:"primaryKey"`
EnumID int `json:"enumId" gorm:"index;comment:枚举id"`
Index uint32 `json:"index" gorm:"comment:索引"`
Value string `json:"value" gorm:"comment:值"`
Type uint32 `json:"type" gorm:"comment:类型"`
}
type Object struct {
ID int `json:"id" gorm:"primaryKey"`
FieldID int `json:"fieldId" gorm:"comment:字段id"`
Value string `json:"value" gorm:"comment:值"`
}
type TableField struct {
ID int `json:"id" gorm:"primaryKey"`
Name string `json:"name" gorm:"comment:名称"`
Type string `json:"type" gorm:"comment:类型"`
TableID int `json:"tableId" gorm:"comment:表id"`
}
type TableValue struct {
ID int `json:"id" gorm:"primaryKey"`
FieldID int `json:"fieldId" gorm:"comment:字段id"`
Value string `json:"value" gorm:"comment:值"`
}