klesh commented on code in PR #2455:
URL: https://github.com/apache/incubator-devlake/pull/2455#discussion_r918465014


##########
models/migrationscripts/subtask_07112022.go:
##########
@@ -0,0 +1,34 @@
+package migrationscripts
+
+import (
+       "context"
+       commonArchived 
"github.com/apache/incubator-devlake/models/migrationscripts/archived"
+       "gorm.io/gorm"
+       "time"
+)
+
+type Subtask_07112022 struct {
+       commonArchived.Model
+       ParentID     uint64     `json:"parent_id" gorm:"index"`

Review Comment:
   `TaskId` would be more appropriate, `ParentId` is for representing a Tree by 
convention.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to