feat(server): Resources-Tabelle (Postgres) + Datei-Storage #119
Labels
No labels
block-planning
bug
documentation
duplicate
enhancement
feature
good first issue
help wanted
infrastructure
invalid
planning
priority:high
priority:low
question
refactoring
status:backlog
status:done
status:in-progress
status:todo
tech-decision
test
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: bollwerkadmin/bollwerk#119
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Feature: Server – Resources-Tabelle (Postgres) + Datei-Storage
Part of: #117
Depends on: #118
Ziel
Der Server hat eine
resources-Tabelle in Postgres und Dateien werden in/opt/bollwerk/resources/als Docker-Volume gespeichert.Scope
Tables.kt: Neuesobject Resources : Table(...)mit allen Pflichtfeldern (guid als PK, title, description, tags als JSON-String, fileFormat, mimeType, fileSize, releaseDate?, createdAt, updatedAt, author?, language?, edition?)text-Spalte (JSON-Array-String, kein JOIN nötig)SchemaUtils.createMissingTablesAndColumnsbeim Start angelegtbollwerk_resourcesintmp/docker-compose-vps.ymleingetragen (analog zubollwerk_data){guid}.{ext}im Volume-Verzeichnis/api/admin/resourcesin Caddy-Konfiguration (min. 25 MB)Technische Hinweise
Tables.kt(Items, Users, Categories, Messages)bollwerk_dataintmp/docker-compose-vps.ymlrequest_body { max_size 25MB }nur für Admin-Upload-Route (intmp/Caddyfile)Akzeptanzkriterien
resourceswird beim Server-Start automatisch angelegtbollwerk_resourcesin docker-compose-vps.yml