/*
  Warnings:

  - You are about to drop the column `fileName` on the `documents` table. All the data in the column will be lost.
  - You are about to drop the column `filePath` on the `documents` table. All the data in the column will be lost.
  - You are about to drop the column `fileSize` on the `documents` table. All the data in the column will be lost.
  - You are about to drop the column `mimeType` on the `documents` table. All the data in the column will be lost.
  - Added the required column `lastModified` to the `documents` table without a default value. This is not possible if the table is not empty.
  - Added the required column `lastModifiedDate` to the `documents` table without a default value. This is not possible if the table is not empty.
  - Added the required column `size` to the `documents` table without a default value. This is not possible if the table is not empty.
  - Added the required column `type` to the `documents` table without a default value. This is not possible if the table is not empty.
  - Added the required column `userId` to the `domestic_violence_reports` table without a default value. This is not possible if the table is not empty.

*/
-- AlterTable
ALTER TABLE "public"."documents" DROP COLUMN "fileName",
DROP COLUMN "filePath",
DROP COLUMN "fileSize",
DROP COLUMN "mimeType",
ADD COLUMN     "lastModified" INTEGER NOT NULL,
ADD COLUMN     "lastModifiedDate" TIMESTAMP(3) NOT NULL,
ADD COLUMN     "size" INTEGER NOT NULL,
ADD COLUMN     "type" TEXT NOT NULL,
ADD COLUMN     "webkitRelativePath" TEXT;

-- AlterTable
ALTER TABLE "public"."domestic_violence_reports" ADD COLUMN     "userId" TEXT NOT NULL;

-- AddForeignKey
ALTER TABLE "public"."domestic_violence_reports" ADD CONSTRAINT "domestic_violence_reports_userId_fkey" FOREIGN KEY ("userId") REFERENCES "public"."users"("id") ON DELETE CASCADE ON UPDATE CASCADE;
