Browse Source

提交代码

pull/2239/head
ychao_1983 3 years ago
parent
commit
83e61aad76
2 changed files with 4 additions and 2 deletions
  1. +3
    -2
      models/attachment.go
  2. +1
    -0
      models/dataset.go

+ 3
- 2
models/attachment.go View File

@@ -41,8 +41,9 @@ type Attachment struct {
UploaderID int64 `xorm:"INDEX DEFAULT 0"` // Notice: will be zero before this column added
CommentID int64
Name string
Description string `xorm:"TEXT"`
DownloadCount int64 `xorm:"DEFAULT 0"`
Description string `xorm:"TEXT"`
DownloadCount int64 `xorm:"DEFAULT 0"`
UseCount int64
Size int64 `xorm:"DEFAULT 0"`
IsPrivate bool `xorm:"DEFAULT false"`
DecompressState int32 `xorm:"DEFAULT 0"`


+ 1
- 0
models/dataset.go View File

@@ -25,6 +25,7 @@ type Dataset struct {
Category string
Description string `xorm:"TEXT"`
DownloadTimes int64
UseCount int64
NumStars int `xorm:"INDEX NOT NULL DEFAULT 0"`
Recommend bool `xorm:"INDEX NOT NULL DEFAULT false"`
License string


Loading…
Cancel
Save