We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ba90785 commit 203b0aaCopy full SHA for 203b0aa
apiserver/internal/models/task.go
@@ -30,8 +30,8 @@ type TaskHistory struct {
30
}
31
32
type TaskLabel struct {
33
- TaskID int `json:"task_id"`
34
- LabelID int `json:"label_id"`
+ TaskID int `json:"task_id" gorm:"primaryKey"`
+ LabelID int `json:"label_id" gorm:"primaryKey"`
35
36
37
type CreateTaskReq struct {
apiserver/internal/utils/migration/migration.go
@@ -12,6 +12,7 @@ func Migration(db *gorm.DB) error {
12
models.AppToken{},
13
models.Label{},
14
models.Task{},
15
+ models.TaskLabel{},
16
models.TaskHistory{},
17
models.NotificationSettings{},
18
models.Notification{},
0 commit comments