Started a repository of the uploads

This commit is contained in:
Leon Mika 2026-03-02 21:10:09 +11:00
parent 6b697e008f
commit 0a9af9cde8
11 changed files with 101 additions and 15 deletions

View file

@ -3,13 +3,14 @@ package models
import "time"
type Upload struct {
ID int64 `json:"id"`
SiteID int64 `json:"site_id"`
GUID string `json:"guid"`
MIMEType string `json:"mime_type"`
Filename string `json:"filename"`
CreatedAt int64 `json:"created_at"`
Alt string `json:"alt"`
ID int64 `json:"id"`
SiteID int64 `json:"site_id"`
GUID string `json:"guid"`
FileSize int64 `json:"file_size"`
MIMEType string `json:"mime_type"`
Filename string `json:"filename"`
CreatedAt time.Time `json:"created_at"`
Alt string `json:"alt"`
}
type PendingUpload struct {