Add functions to commission form

This commit is contained in:
2026-01-01 09:47:04 +01:00
parent 61421aa487
commit 42f23dddcf
12 changed files with 982 additions and 3 deletions

View File

@ -0,0 +1,30 @@
/*
Warnings:
- You are about to drop the column `mimeType` on the `CommissionRequestFile` table. All the data in the column will be lost.
- You are about to drop the column `objectKey` on the `CommissionRequestFile` table. All the data in the column will be lost.
- You are about to drop the column `originalName` on the `CommissionRequestFile` table. All the data in the column will be lost.
- You are about to drop the column `sizeBytes` on the `CommissionRequestFile` table. All the data in the column will be lost.
- You are about to drop the column `sortIndex` on the `CommissionRequestFile` table. All the data in the column will be lost.
- A unique constraint covering the columns `[fileKey]` on the table `CommissionRequestFile` will be added. If there are existing duplicate values, this will fail.
- Added the required column `fileKey` to the `CommissionRequestFile` table without a default value. This is not possible if the table is not empty.
- Added the required column `fileSize` to the `CommissionRequestFile` table without a default value. This is not possible if the table is not empty.
- Added the required column `fileType` to the `CommissionRequestFile` table without a default value. This is not possible if the table is not empty.
- Added the required column `originalFile` to the `CommissionRequestFile` table without a default value. This is not possible if the table is not empty.
- Added the required column `uploadDate` to the `CommissionRequestFile` table without a default value. This is not possible if the table is not empty.
*/
-- AlterTable
ALTER TABLE "CommissionRequestFile" DROP COLUMN "mimeType",
DROP COLUMN "objectKey",
DROP COLUMN "originalName",
DROP COLUMN "sizeBytes",
DROP COLUMN "sortIndex",
ADD COLUMN "fileKey" TEXT NOT NULL,
ADD COLUMN "fileSize" INTEGER NOT NULL,
ADD COLUMN "fileType" TEXT NOT NULL,
ADD COLUMN "originalFile" TEXT NOT NULL,
ADD COLUMN "uploadDate" TIMESTAMP(3) NOT NULL;
-- CreateIndex
CREATE UNIQUE INDEX "CommissionRequestFile_fileKey_key" ON "CommissionRequestFile"("fileKey");