切换批次和文件的 ID 类型为 UUID,更新相关逻辑和文档
This commit is contained in:
@@ -5,8 +5,8 @@ import (
|
||||
)
|
||||
|
||||
type FileItem struct {
|
||||
ID uint `gorm:"primaryKey" json:"id"`
|
||||
BatchID uint `gorm:"index;not null" json:"batch_id"`
|
||||
ID string `gorm:"primaryKey;type:varchar(36)" json:"id"`
|
||||
BatchID string `gorm:"index;not null;type:varchar(36)" json:"batch_id"`
|
||||
OriginalName string `json:"original_name"`
|
||||
StoragePath string `json:"storage_path"`
|
||||
Size int64 `json:"size"`
|
||||
|
||||
Reference in New Issue
Block a user