refactor: add db index on bucket/key
This commit is contained in:
parent
454deeae21
commit
a28bd6b11e
|
@ -9,6 +9,6 @@ func init() {
|
|||
type S3Upload struct {
|
||||
gorm.Model
|
||||
UploadID string `gorm:"unique;not null"`
|
||||
Bucket string `gorm:"not null"`
|
||||
Key string `gorm:"not null"`
|
||||
Bucket string `gorm:"not null;index:idx_bucket_key"`
|
||||
Key string `gorm:"not null;index:idx_bucket_key"`
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue