-
Notifications
You must be signed in to change notification settings - Fork 456
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e0a0c4e
commit c152c8c
Showing
3 changed files
with
40 additions
and
3 deletions.
There are no files selected for viewing
2 changes: 0 additions & 2 deletions
2
prisma/migrations/20241015192257_added_cascading_job/migration.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
39 changes: 39 additions & 0 deletions
39
prisma/migrations/20241019174425_add_onboar_field/migration.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters