We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3499773 commit cf904ecCopy full SHA for cf904ec
model/file.go
@@ -7,8 +7,8 @@ import (
7
)
8
9
type FileModel struct {
10
- Id uint64 `gorm:"primary_key;AUTO_INCREMENT;column:id" json:"-"`
11
- CreatedAt time.Time `gorm:"column:createdAt" json:"-"`
+ Id uint64 `json:"id" gorm:"primary_key;AUTO_INCREMENT;column:id"`
+ CreatedAt time.Time `json:"createTime" gorm:"column:createdAt"`
12
Name string `json:"name" grom:"column: name;not null" binding:"required"`
13
Key string `json:"key" grom:"column: key;not null" binding:"required"`
14
Bucket string `json:"bucket" grom:"column: bucket;not null" binding:"required"`
0 commit comments