|
|
@@ -9,8 +9,10 @@ import ( |
|
|
|
|
|
|
|
// RepoStatistic statistic info of all repository |
|
|
|
type RepoStatistic struct { |
|
|
|
ID int64 `xorm:"pk autoincr"` |
|
|
|
RepoID int64 `xorm:"unique(s) NOT NULL"` |
|
|
|
ID int64 `xorm:"pk autoincr"` |
|
|
|
RepoID int64 `xorm:"unique(s) NOT NULL"` |
|
|
|
Name string `xorm:"INDEX"` |
|
|
|
IsPrivate bool |
|
|
|
Date string `xorm:"unique(s) NOT NULL"` |
|
|
|
NumWatches int64 `xorm:"NOT NULL DEFAULT 0"` |
|
|
|
NumWatchesAdded int64 `xorm:"NOT NULL DEFAULT 0"` |
|
|
|