portal/db/models/s3_upload.go

15 lines
275 B
Go
Raw Normal View History

2024-02-28 16:36:53 +00:00
package models
import "gorm.io/gorm"
func init() {
registerModel(&S3Upload{})
}
2024-02-28 16:36:53 +00:00
type S3Upload struct {
gorm.Model
UploadID string `gorm:"unique;not null"`
2024-03-02 01:44:55 +00:00
Bucket string `gorm:"not null;index:idx_bucket_key"`
Key string `gorm:"not null;index:idx_bucket_key"`
2024-02-28 16:36:53 +00:00
}