Finish the image cache preview things.

This commit is contained in:
zicla
2019-04-04 02:03:20 +08:00
parent c371d9d5bd
commit 28b4227215
3 changed files with 17 additions and 6 deletions

View File

@ -5,7 +5,9 @@ package rest
*/
type ImageCache struct {
Base
Name string `json:"name" gorm:"type:varchar(255) not null"`
UserUuid string `json:"userUuid" gorm:"type:char(36)"`
Username string `json:"username" gorm:"type:varchar(45) not null"`
MatterUuid string `json:"matterUuid" gorm:"type:char(36);index:idx_mu"`
Mode string `json:"mode" gorm:"type:varchar(512)"`
Md5 string `json:"md5" gorm:"type:varchar(45)"`