/*
  Warnings:

  - You are about to drop the column `is_admin_verified` on the `tbl_order_refund_issue` table. All the data in the column will be lost.

*/
-- CreateEnum
CREATE TYPE "orderRefundStatus" AS ENUM ('pending', 'approved', 'rejected');

-- DropIndex
DROP INDEX "tbl_order_refund_issue_order_id_user_id_brand_id_currency_c_idx";

-- AlterTable
ALTER TABLE "tbl_order_refund_issue" DROP COLUMN "is_admin_verified",
ADD COLUMN     "admin_rejected_at" TIMESTAMP(3),
ADD COLUMN     "refund_status" "orderRefundStatus" DEFAULT 'pending';

-- CreateIndex
CREATE INDEX "tbl_order_refund_issue_order_id_user_id_brand_id_currency_c_idx" ON "tbl_order_refund_issue"("order_id", "user_id", "brand_id", "currency", "currency_symbol", "amount", "refund_issued_at", "admin_verified_at", "admin_rejected_at");
