/*
  Warnings:

  - The `statut_dossier` column on the `pelerins` table would be dropped and recreated. This will lead to data loss if there is data in the column.
  - The `statut_inscription` column on the `pelerins` table would be dropped and recreated. This will lead to data loss if there is data in the column.

*/
-- CreateEnum
CREATE TYPE "StatutDossier" AS ENUM ('INCOMPLET', 'VALIDE');

-- CreateEnum
CREATE TYPE "StatutInscription" AS ENUM ('EN_ATTENTE', 'CONFIRME', 'ANNULE', 'TERMINE');

-- AlterTable
ALTER TABLE "pelerins" DROP COLUMN "statut_dossier",
ADD COLUMN     "statut_dossier" "StatutDossier" NOT NULL DEFAULT 'VALIDE',
DROP COLUMN "statut_inscription",
ADD COLUMN     "statut_inscription" "StatutInscription" NOT NULL DEFAULT 'EN_ATTENTE';

-- CreateIndex
CREATE INDEX "pelerins_statut_dossier_idx" ON "pelerins"("statut_dossier");

-- CreateIndex
CREATE INDEX "pelerins_statut_inscription_idx" ON "pelerins"("statut_inscription");

-- CreateIndex
CREATE INDEX "pelerins_statut_dossier_is_archived_idx" ON "pelerins"("statut_dossier", "is_archived");
