-
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
b195ae9
commit 4f18395
Showing
3 changed files
with
41 additions
and
3 deletions.
There are no files selected for viewing
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,18 @@ | ||
-- CreateEnum | ||
CREATE TYPE "ProjectStack" AS ENUM ('GO', 'PYTHON', 'MERN', 'NEXTJS', 'AI_GPT_APIS', 'SPRINGBOOT', 'OTHERS'); | ||
|
||
-- DropForeignKey | ||
ALTER TABLE "Experience" DROP CONSTRAINT "Experience_userId_fkey"; | ||
|
||
-- DropForeignKey | ||
ALTER TABLE "Project" DROP CONSTRAINT "Project_userId_fkey"; | ||
|
||
-- AlterTable | ||
ALTER TABLE "Project" ADD COLUMN "projectThumbnail" TEXT, | ||
ADD COLUMN "stack" "ProjectStack" NOT NULL DEFAULT 'OTHERS'; | ||
|
||
-- AddForeignKey | ||
ALTER TABLE "Experience" ADD CONSTRAINT "Experience_userId_fkey" FOREIGN KEY ("userId") REFERENCES "User"("id") ON DELETE CASCADE ON UPDATE CASCADE; | ||
|
||
-- AddForeignKey | ||
ALTER TABLE "Project" ADD CONSTRAINT "Project_userId_fkey" FOREIGN KEY ("userId") REFERENCES "User"("id") ON DELETE CASCADE 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,7 +13,7 @@ const prisma = new PrismaClient(); | |
|
||
const users = [ | ||
{ id: '1', name: 'Jack', email: '[email protected]' }, | ||
{ id: '2', name: 'Admin', email: '[email protected]', role: Role.ADMIN , onBoard : true }, | ||
{ id: '2', name: 'Admin', email: '[email protected]', role: Role.ADMIN, onBoard: true }, | ||
{ id: '3', name: 'Hr', email: '[email protected]', role: Role.HR }, | ||
]; | ||
|
||
|
@@ -63,6 +63,7 @@ let jobs = [ | |
minSalary: null, | ||
maxSalary: null, | ||
isVerifiedJob: false, | ||
|
||
}, | ||
{ | ||
id: '3', | ||
|
@@ -86,6 +87,7 @@ let jobs = [ | |
minSalary: 90000, | ||
maxSalary: 120000, | ||
isVerifiedJob: true, | ||
deleted: true | ||
}, | ||
{ | ||
id: '4', | ||
|
@@ -134,6 +136,7 @@ let jobs = [ | |
minSalary: 110000, | ||
maxSalary: 150000, | ||
isVerifiedJob: true, | ||
deleted: true | ||
}, | ||
{ | ||
id: '6', | ||
|
@@ -159,6 +162,7 @@ let jobs = [ | |
minSalary: 80000, | ||
maxSalary: 100000, | ||
isVerifiedJob: false, | ||
|
||
}, | ||
{ | ||
id: '7', | ||
|
@@ -183,6 +187,8 @@ let jobs = [ | |
minSalary: 70000, | ||
maxSalary: 90000, | ||
isVerifiedJob: false, | ||
delted: true | ||
|
||
}, | ||
{ | ||
id: '8', | ||
|
@@ -207,6 +213,8 @@ let jobs = [ | |
minSalary: null, | ||
maxSalary: null, | ||
isVerifiedJob: true, | ||
deleted: true | ||
|
||
}, | ||
{ | ||
id: '9', | ||
|
@@ -229,6 +237,7 @@ let jobs = [ | |
minSalary: 100000, | ||
maxSalary: 130000, | ||
isVerifiedJob: true, | ||
|
||
}, | ||
{ | ||
id: '10', | ||
|
@@ -253,6 +262,7 @@ let jobs = [ | |
minSalary: 75000, | ||
maxSalary: 95000, | ||
isVerifiedJob: false, | ||
|
||
}, | ||
{ | ||
id: '11', | ||
|
@@ -274,6 +284,7 @@ let jobs = [ | |
minSalary: 25000, | ||
maxSalary: 50000, | ||
isVerifiedJob: true, | ||
|
||
}, | ||
{ | ||
id: '12', | ||
|
@@ -298,6 +309,7 @@ let jobs = [ | |
minSalary: null, | ||
maxSalary: null, | ||
isVerifiedJob: true, | ||
delted: false | ||
}, | ||
]; | ||
|
||
|
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