portal/db/models/download.go

17 lines
212 B
Go

package models
import (
"gorm.io/gorm"
"time"
)
type Download struct {
gorm.Model
UserID uint
User User
UploadID uint
Upload Upload
DownloadedAt time.Time
IP string
}