We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent beea828 commit 9426189Copy full SHA for 9426189
1 file changed
goinsight/internal/das/models/favorites.go
@@ -6,8 +6,8 @@ import (
6
7
type InsightDASFavorites struct {
8
*models.Model
9
- Username string `gorm:"type:varchar(128);not null;comment:执行的用户;index:idx_username" json:"username"`
10
- Title string `gorm:"type:varchar(256);not null;default:'';comment:标题;uniqueIndex" json:"title"`
+ Username string `gorm:"type:varchar(128);not null;comment:执行的用户;uniqueIndex:uniq_username_title" json:"username"`
+ Title string `gorm:"type:varchar(256);not null;default:'';comment:标题;uniqueIndex:uniq_username_title" json:"title"`
11
Sqltext string `gorm:"type:text;null;default:null;comment:用户收藏的SQL" json:"sqltext"`
12
}
13
0 commit comments