Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[fix]: fix multistep form #519

Merged
merged 1 commit into from
Oct 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading