/*
  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");
