feat(media): add enrichment metadata fields across admin and public

This commit is contained in:
2026-02-12 22:42:08 +01:00
parent 6e9c0ad4e5
commit b9424c8a8b
14 changed files with 212 additions and 5 deletions

View File

@@ -0,0 +1,6 @@
ALTER TABLE "MediaAsset"
ADD COLUMN "licenseType" TEXT,
ADD COLUMN "licenseUrl" TEXT,
ADD COLUMN "usageContext" TEXT,
ADD COLUMN "location" TEXT,
ADD COLUMN "capturedAt" TIMESTAMP(3);

View File

@@ -123,6 +123,11 @@ model MediaAsset {
source String?
copyright String?
author String?
licenseType String?
licenseUrl String?
usageContext String?
location String?
capturedAt DateTime?
tags String[]
storageKey String? @unique
mimeType String?