Init: setup uptrace and swagger

This commit is contained in:
2025-12-07 03:28:07 +08:00
parent a4096bf1a7
commit 56e83b0725
28 changed files with 662 additions and 81 deletions

15
models/image.go Normal file
View File

@@ -0,0 +1,15 @@
package models
import (
"time"
"github.com/uptrace/bun"
)
type Image struct {
bun.BaseModel `bun:"table:image"`
Id int64 `bun:"id,pk,autoincrement"`
Uploader string `bun:"uploader"`
UploadTS time.Time `bun:"upload_timestamp"`
}