-- CreateEnum
CREATE TYPE "TrainingType" AS ENUM ('Payante', 'Gratuite');

-- CreateTable
CREATE TABLE "Training" (
    "id" TEXT NOT NULL,
    "title" VARCHAR(500) NOT NULL,
    "place" VARCHAR(500) NOT NULL,
    "date" TIMESTAMP(3) NOT NULL,
    "email" VARCHAR(255) NOT NULL,
    "phoneNumber" VARCHAR(255) NOT NULL,
    "website" VARCHAR(255) NOT NULL,
    "type" "TrainingType" NOT NULL DEFAULT 'Gratuite',
    "description" TEXT NOT NULL,
    "document" TEXT,

    CONSTRAINT "Training_pkey" PRIMARY KEY ("id")
);
