From e540cdd3ae2bc821e2510b8fc3568e23f74a426d Mon Sep 17 00:00:00 2001 From: zouap Date: Tue, 28 Sep 2021 17:28:39 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B5=8B=E8=AF=95=E5=A2=9E=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: zouap --- models/user_business_analysis.go | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 models/user_business_analysis.go 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"` +}