Skip to content

Commit

Permalink
[fix]: fix multistep form (#519)
Browse files Browse the repository at this point in the history
  • Loading branch information
VineeTagarwaL-code authored Oct 19, 2024
1 parent e0a0c4e commit c152c8c
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
-- AlterEnum
ALTER TYPE "Role" ADD VALUE 'HR';

-- DropForeignKey
ALTER TABLE "Job" DROP CONSTRAINT "Job_userId_fkey";
Expand Down
39 changes: 39 additions & 0 deletions prisma/migrations/20241019174425_add_onboar_field/migration.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
-- AlterTable
ALTER TABLE "User" ADD COLUMN "onBoard" BOOLEAN NOT NULL DEFAULT false,
ADD COLUMN "resume" TEXT,
ADD COLUMN "skills" TEXT[];

-- CreateTable
CREATE TABLE "Experience" (
"id" SERIAL NOT NULL,
"companyName" TEXT NOT NULL,
"designation" TEXT NOT NULL,
"EmploymentType" "EmployementType" NOT NULL,
"address" TEXT NOT NULL,
"workMode" "WorkMode" NOT NULL,
"currentWorkStatus" BOOLEAN NOT NULL,
"startDate" TIMESTAMP(3) NOT NULL,
"endDate" TIMESTAMP(3),
"description" TEXT NOT NULL,
"userId" TEXT NOT NULL,

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

-- CreateTable
CREATE TABLE "Project" (
"id" SERIAL NOT NULL,
"projectName" TEXT NOT NULL,
"projectSummary" TEXT NOT NULL,
"projectLiveLink" TEXT,
"projectGithub" TEXT NOT NULL,
"userId" TEXT NOT NULL,

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

-- AddForeignKey
ALTER TABLE "Experience" ADD CONSTRAINT "Experience_userId_fkey" FOREIGN KEY ("userId") REFERENCES "User"("id") ON DELETE RESTRICT ON UPDATE CASCADE;

-- AddForeignKey
ALTER TABLE "Project" ADD CONSTRAINT "Project_userId_fkey" FOREIGN KEY ("userId") REFERENCES "User"("id") ON DELETE RESTRICT ON UPDATE CASCADE;
2 changes: 1 addition & 1 deletion src/app/create-profile/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export default async function Home() {
if (session.user.onBoard === true) redirect('/jobs');
return (
<div className="flex flex-col justify-center place-items-center">
<h1 className="text-xl font-bold md:text-3xl md:font-extrabold m-auto">
<h1 className="text-xl font-bold md:text-3xl md:font-extrabold mb-8">
Hey {session?.user.name} let&apos;s get you set up and started!
</h1>
<VerticalLinearStepper />
Expand Down

0 comments on commit c152c8c

Please sign in to comment.