Refactor and add alt text generator

This commit is contained in:
2025-07-03 11:54:46 +02:00
parent 8856ffb71f
commit 7cb9fa6320
38 changed files with 1747 additions and 233 deletions

View File

@ -0,0 +1,8 @@
/*
Warnings:
- A unique constraint covering the columns `[imageId,type]` on the table `ImageVariant` will be added. If there are existing duplicate values, this will fail.
*/
-- CreateIndex
CREATE UNIQUE INDEX "ImageVariant_imageId_type_key" ON "ImageVariant"("imageId", "type");

View File

@ -0,0 +1,2 @@
-- AlterTable
ALTER TABLE "Artist" ADD COLUMN "description" TEXT;

View File

@ -0,0 +1,6 @@
-- AlterTable
ALTER TABLE "Artist" ADD COLUMN "source" TEXT;
-- AlterTable
ALTER TABLE "Social" ADD COLUMN "isVisible" BOOLEAN NOT NULL DEFAULT true,
ALTER COLUMN "isPrimary" SET DEFAULT false;

View File

@ -0,0 +1,20 @@
-- AlterTable
ALTER TABLE "Album" ADD COLUMN "sortIndex" INTEGER NOT NULL DEFAULT 0;
-- AlterTable
ALTER TABLE "Artist" ADD COLUMN "sortIndex" INTEGER NOT NULL DEFAULT 0;
-- AlterTable
ALTER TABLE "Category" ADD COLUMN "sortIndex" INTEGER NOT NULL DEFAULT 0;
-- AlterTable
ALTER TABLE "Gallery" ADD COLUMN "sortIndex" INTEGER NOT NULL DEFAULT 0;
-- AlterTable
ALTER TABLE "Image" ADD COLUMN "sortIndex" INTEGER NOT NULL DEFAULT 0;
-- AlterTable
ALTER TABLE "Social" ADD COLUMN "sortIndex" INTEGER NOT NULL DEFAULT 0;
-- AlterTable
ALTER TABLE "Tag" ADD COLUMN "sortIndex" INTEGER NOT NULL DEFAULT 0;

View File

@ -0,0 +1,12 @@
/*
Warnings:
- A unique constraint covering the columns `[fileKey]` on the table `Image` will be added. If there are existing duplicate values, this will fail.
- A unique constraint covering the columns `[originalFile]` on the table `Image` will be added. If there are existing duplicate values, this will fail.
*/
-- CreateIndex
CREATE UNIQUE INDEX "Image_fileKey_key" ON "Image"("fileKey");
-- CreateIndex
CREATE UNIQUE INDEX "Image_originalFile_key" ON "Image"("originalFile");