diff --git a/models/user_business_analysis.go b/models/user_business_analysis.go new file mode 100644 index 000000000..2d2b73775 --- /dev/null +++ b/models/user_business_analysis.go @@ -0,0 +1,25 @@ +package models + +import ( + "code.gitea.io/gitea/modules/timeutil" +) + +type User_business_analysis struct { + ID int64 `xorm:"pk"` + countDate int64 `xorm:"pk"` + + codeMergeCount int `xorm:"NOT NULL DEFAULT 0"` + commitCount int `xorm:"NOT NULL DEFAULT 0"` + issueCount int `xorm:"NOT NULL DEFAULT 0"` + commentCount int `xorm:"NOT NULL DEFAULT 0"` + focusRepoCount int `xorm:"NOT NULL DEFAULT 0"` + starRepoCount int `xorm:"NOT NULL DEFAULT 0"` + watchedCount int `xorm:"NOT NULL DEFAULT 0"` + giteaAgeMonth int `xorm:"NOT NULL DEFAULT 0"` + commitCodeSize int `xorm:"NOT NULL DEFAULT 0"` + commitDatasetSize int `xorm:"NOT NULL DEFAULT 0"` + commitModelCount int `xorm:"NOT NULL DEFAULT 0"` + solveIssueCount int `xorm:"NOT NULL DEFAULT 0"` + encyclopediasCount int `xorm:"NOT NULL DEFAULT 0"` + registDate timeutil.TimeStamp `xorm:"NOT NULL"` +}