/*
  Warnings:

  - You are about to drop the column `createdById` on the `bdn_dokumen` table. All the data in the column will be lost.
  - You are about to drop the column `createdById` on the `btd_dokumen` table. All the data in the column will be lost.
  - You are about to drop the column `createdById` on the `gudang_dokumen` table. All the data in the column will be lost.

*/
-- DropForeignKey
ALTER TABLE "bdn_dokumen" DROP CONSTRAINT "bdn_dokumen_createdById_fkey";

-- DropForeignKey
ALTER TABLE "btd_dokumen" DROP CONSTRAINT "btd_dokumen_createdById_fkey";

-- DropForeignKey
ALTER TABLE "gudang_dokumen" DROP CONSTRAINT "gudang_dokumen_createdById_fkey";

-- AlterTable
ALTER TABLE "bdn_dokumen" DROP COLUMN "createdById",
ADD COLUMN     "createdBy" TEXT;

-- AlterTable
ALTER TABLE "btd_dokumen" DROP COLUMN "createdById",
ADD COLUMN     "createdBy" TEXT;

-- AlterTable
ALTER TABLE "gudang_dokumen" DROP COLUMN "createdById",
ADD COLUMN     "createdBy" TEXT,
ADD COLUMN     "pengeluaran" JSONB NOT NULL DEFAULT '[]';
