klesh commented on code in PR #2504:
URL: https://github.com/apache/incubator-devlake/pull/2504#discussion_r926316718
##########
models/domainlayer/code/commit.go:
##########
@@ -45,13 +46,33 @@ func (Commit) TableName() string {
}
type CommitFile struct {
- common.NoPKModel
- CommitSha string `gorm:"primaryKey;type:varchar(40)"`
- FilePath string `gorm:"primaryKey;type:varchar(255)"`
+ domainlayer.DomainEntity
+ CommitSha string `gorm:"type:varchar(40)"`
+ FilePath string `gorm:"type:varchar(255)"`
Additions int
Deletions int
}
func (CommitFile) TableName() string {
return "commit_files"
}
+
+type Component struct {
Review Comment:
No, just created a new file `models/domainlayer/code/component.go`, and move
this struct into it and we are good.
--
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]