Compare commits

...

2 Commits

Author SHA1 Message Date
junleea f57150d14d Merge branch 'refs/heads/feat-file' 2024-12-27 19:37:27 +08:00
junleea 381fd3d720 添加file表数据 2024-12-27 19:37:19 +08:00
1 changed files with 1 additions and 1 deletions

View File

@ -5,7 +5,7 @@ import "gorm.io/gorm"
type File struct {
gorm.Model
// 存储文件名
FileStoreName string `gorm:"column:file_store_name;uniqueIndex:idx_file_name"`
FileStoreName string `gorm:"column:file_store_name;type:varchar(255);uniqueIndex:idx_file_name"`
NeedAuth bool `gorm:"column:need_auth"`
FileName string `gorm:"column:file_name"`
FileSize int `gorm:"column:file_size"`