|
|
@@ -21,7 +21,7 @@ type BoundChannel struct {
|
|
|
|
|
|
type Model struct {
|
|
|
Id int `json:"id"`
|
|
|
- ModelName string `json:"model_name" gorm:"size:128;not null;uniqueIndex:uk_model_name,priority:1"`
|
|
|
+ ModelName string `json:"model_name" gorm:"size:128;not null;uniqueIndex:uk_model_name_delete_at,priority:1"`
|
|
|
Description string `json:"description,omitempty" gorm:"type:text"`
|
|
|
Icon string `json:"icon,omitempty" gorm:"type:varchar(128)"`
|
|
|
Tags string `json:"tags,omitempty" gorm:"type:varchar(255)"`
|
|
|
@@ -30,7 +30,7 @@ type Model struct {
|
|
|
Status int `json:"status" gorm:"default:1"`
|
|
|
CreatedTime int64 `json:"created_time" gorm:"bigint"`
|
|
|
UpdatedTime int64 `json:"updated_time" gorm:"bigint"`
|
|
|
- DeletedAt gorm.DeletedAt `json:"-" gorm:"index;uniqueIndex:uk_model_name,priority:2"`
|
|
|
+ DeletedAt gorm.DeletedAt `json:"-" gorm:"index;uniqueIndex:uk_model_name_delete_at,priority:2"`
|
|
|
|
|
|
BoundChannels []BoundChannel `json:"bound_channels,omitempty" gorm:"-"`
|
|
|
EnableGroups []string `json:"enable_groups,omitempty" gorm:"-"`
|