2024-01-16 01:58:20 +00:00
|
|
|
package models
|
|
|
|
|
|
|
|
import (
|
|
|
|
"time"
|
2024-02-29 02:20:05 +00:00
|
|
|
|
|
|
|
"gorm.io/gorm"
|
2024-01-16 01:58:20 +00:00
|
|
|
)
|
|
|
|
|
2024-02-29 02:20:05 +00:00
|
|
|
func init() {
|
|
|
|
registerModel(&Download{})
|
|
|
|
}
|
|
|
|
|
2024-01-16 01:58:20 +00:00
|
|
|
type Download struct {
|
|
|
|
gorm.Model
|
|
|
|
UserID uint
|
|
|
|
User User
|
|
|
|
UploadID uint
|
|
|
|
Upload Upload
|
|
|
|
DownloadedAt time.Time
|
|
|
|
IP string
|
|
|
|
}
|