abeizn commented on code in PR #2769:
URL: https://github.com/apache/incubator-devlake/pull/2769#discussion_r949742144


##########
plugins/azure/models/build.go:
##########
@@ -0,0 +1,76 @@
+package models
+
+import (
+       "github.com/apache/incubator-devlake/models/common"
+       "time"
+)
+
+type AzureBuild struct {
+       common.NoPKModel
+       // collected fields
+       ConnectionId      uint64    `gorm:"primaryKey"`
+       JobName           string    `gorm:"primaryKey;type:varchar(255)"`
+       Duration          float64   // build time
+       DisplayName       string    `gorm:"type:varchar(255)"` // "#7"
+       EstimatedDuration float64   // EstimatedDuration
+       Number            int64     `gorm:"primaryKey"`
+       Result            string    // Result
+       Timestamp         int64     // start time
+       StartTime         time.Time // convered by timestamp
+       CommitSha         string    `gorm:"type:varchar(255)"`
+}
+
+func (AzureBuild) TableName() string {
+       return "_tool_azure_builds"
+}
+
+type AutoGenerated struct {

Review Comment:
   change name?



-- 
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