-
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.
* added the forms ui * refactor * updated schema * attached forms * laoding skeleton responsivness * added delete account * added 404 page * updated navbar * all checked passed * added socials * social url optional * added share button + edge cases * fix error build * fix conflicts and build
- Loading branch information
1 parent
139175f
commit a8d6364
Showing
58 changed files
with
4,529 additions
and
398 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
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
66 changes: 66 additions & 0 deletions
66
prisma/migrations/20241024174828_profileupdate/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,66 @@ | ||
/* | ||
Warnings: | ||
- A unique constraint covering the columns `[username]` on the table `User` will be added. If there are existing duplicate values, this will fail. | ||
- Added the required column `aboutMe` to the `User` table without a default value. This is not possible if the table is not empty. | ||
- Added the required column `contactEmail` to the `User` table without a default value. This is not possible if the table is not empty. | ||
- Added the required column `username` to the `User` table without a default value. This is not possible if the table is not empty. | ||
*/ | ||
-- CreateEnum | ||
CREATE TYPE "ProjectStack" AS ENUM ('GO', 'PYTHON', 'MERN', 'NEXTJS', 'AI_GPT_APIS', 'SPRINGBOOT', 'OTHERS'); | ||
|
||
-- CreateEnum | ||
CREATE TYPE "DegreeType" AS ENUM ('BTech', 'MTech', 'BCA', 'MCA'); | ||
|
||
-- CreateEnum | ||
CREATE TYPE "FieldOfStudyType" AS ENUM ('AI', 'Machine_Learning', 'CS', 'Mechanical'); | ||
|
||
-- DropForeignKey | ||
ALTER TABLE "Experience" DROP CONSTRAINT "Experience_userId_fkey"; | ||
|
||
-- DropForeignKey | ||
ALTER TABLE "Project" DROP CONSTRAINT "Project_userId_fkey"; | ||
|
||
-- AlterTable | ||
ALTER TABLE "Job" ADD COLUMN "deletedAt" TIMESTAMP(3); | ||
|
||
-- AlterTable | ||
ALTER TABLE "Project" ADD COLUMN "isFeature" BOOLEAN NOT NULL DEFAULT false, | ||
ADD COLUMN "projectThumbnail" TEXT, | ||
ADD COLUMN "stack" "ProjectStack" NOT NULL DEFAULT 'OTHERS'; | ||
|
||
-- AlterTable | ||
ALTER TABLE "User" ADD COLUMN "aboutMe" TEXT NOT NULL, | ||
ADD COLUMN "contactEmail" TEXT NOT NULL, | ||
ADD COLUMN "discordLink" TEXT, | ||
ADD COLUMN "githubLink" TEXT, | ||
ADD COLUMN "linkedinLink" TEXT, | ||
ADD COLUMN "portfolioLink" TEXT, | ||
ADD COLUMN "twitterLink" TEXT, | ||
ADD COLUMN "username" TEXT NOT NULL; | ||
|
||
-- CreateTable | ||
CREATE TABLE "Education" ( | ||
"id" SERIAL NOT NULL, | ||
"instituteName" TEXT NOT NULL, | ||
"degree" "DegreeType" NOT NULL, | ||
"fieldOfStudy" "FieldOfStudyType" NOT NULL, | ||
"startDate" TIMESTAMP(3) NOT NULL, | ||
"endDate" TIMESTAMP(3), | ||
"userId" TEXT NOT NULL, | ||
|
||
CONSTRAINT "Education_pkey" PRIMARY KEY ("id") | ||
); | ||
|
||
-- CreateIndex | ||
CREATE UNIQUE INDEX "User_username_key" ON "User"("username"); | ||
|
||
-- AddForeignKey | ||
ALTER TABLE "Experience" ADD CONSTRAINT "Experience_userId_fkey" FOREIGN KEY ("userId") REFERENCES "User"("id") ON DELETE CASCADE ON UPDATE CASCADE; | ||
|
||
-- AddForeignKey | ||
ALTER TABLE "Education" ADD CONSTRAINT "Education_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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
-- AlterTable | ||
ALTER TABLE "User" ALTER COLUMN "aboutMe" DROP NOT NULL, | ||
ALTER COLUMN "contactEmail" DROP NOT NULL; |
2 changes: 2 additions & 0 deletions
2
prisma/migrations/20241025120951_resume_update_date/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,2 @@ | ||
-- AlterTable | ||
ALTER TABLE "User" ADD COLUMN "resumeUpdateDate" TIMESTAMP(3); |
11 changes: 11 additions & 0 deletions
11
prisma/migrations/20241031043344_username_remove/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,11 @@ | ||
/* | ||
Warnings: | ||
- You are about to drop the column `username` on the `User` table. All the data in the column will be lost. | ||
*/ | ||
-- DropIndex | ||
DROP INDEX "User_username_key"; | ||
|
||
-- AlterTable | ||
ALTER TABLE "User" DROP COLUMN "username"; |
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,26 @@ | ||
/* | ||
Warnings: | ||
- A unique constraint covering the columns `[companyId]` on the table `User` will be added. If there are existing duplicate values, this will fail. | ||
*/ | ||
-- AlterTable | ||
ALTER TABLE "User" ADD COLUMN "companyId" TEXT, | ||
ADD COLUMN "createdAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP; | ||
|
||
-- CreateTable | ||
CREATE TABLE "Company" ( | ||
"id" TEXT NOT NULL, | ||
"companyName" TEXT NOT NULL, | ||
"companyLogo" TEXT, | ||
"companyEmail" TEXT NOT NULL, | ||
"companyBio" TEXT NOT NULL, | ||
|
||
CONSTRAINT "Company_pkey" PRIMARY KEY ("id") | ||
); | ||
|
||
-- CreateIndex | ||
CREATE UNIQUE INDEX "User_companyId_key" ON "User"("companyId"); | ||
|
||
-- AddForeignKey | ||
ALTER TABLE "User" ADD CONSTRAINT "User_companyId_fkey" FOREIGN KEY ("companyId") REFERENCES "Company"("id") ON DELETE SET NULL 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
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 |
---|---|---|
|
@@ -17,8 +17,6 @@ const users = [ | |
{ id: '3', companyId: '1', name: 'Hr', email: '[email protected]', role: Role.HR, onBoard: true }, | ||
{ id: '4', companyId: '2', name: 'John', email: '[email protected]', role: Role.HR, onBoard: true }, | ||
{ id: '5', companyId: '3', name: 'Jane', email: '[email protected]', role: Role.HR, onBoard: true }, | ||
|
||
|
||
]; | ||
|
||
|
||
|
@@ -75,7 +73,6 @@ let jobs = [ | |
minSalary: null, | ||
maxSalary: null, | ||
isVerifiedJob: false, | ||
|
||
}, | ||
{ | ||
id: '3', | ||
|
@@ -99,7 +96,7 @@ let jobs = [ | |
minSalary: 90000, | ||
maxSalary: 120000, | ||
isVerifiedJob: true, | ||
deleted: true | ||
deleted: true, | ||
}, | ||
{ | ||
id: '4', | ||
|
@@ -148,7 +145,7 @@ let jobs = [ | |
minSalary: 110000, | ||
maxSalary: 150000, | ||
isVerifiedJob: true, | ||
deleted: true | ||
deleted: true, | ||
}, | ||
{ | ||
id: '6', | ||
|
@@ -174,7 +171,6 @@ let jobs = [ | |
minSalary: 80000, | ||
maxSalary: 100000, | ||
isVerifiedJob: false, | ||
|
||
}, | ||
{ | ||
id: '7', | ||
|
@@ -199,8 +195,7 @@ let jobs = [ | |
minSalary: 70000, | ||
maxSalary: 90000, | ||
isVerifiedJob: false, | ||
delted: true | ||
|
||
delted: true, | ||
}, | ||
{ | ||
id: '8', | ||
|
@@ -225,8 +220,7 @@ let jobs = [ | |
minSalary: null, | ||
maxSalary: null, | ||
isVerifiedJob: true, | ||
deleted: true | ||
|
||
deleted: true, | ||
}, | ||
{ | ||
id: '9', | ||
|
@@ -249,7 +243,6 @@ let jobs = [ | |
minSalary: 100000, | ||
maxSalary: 130000, | ||
isVerifiedJob: true, | ||
|
||
}, | ||
{ | ||
id: '10', | ||
|
@@ -274,7 +267,6 @@ let jobs = [ | |
minSalary: 75000, | ||
maxSalary: 95000, | ||
isVerifiedJob: false, | ||
|
||
}, | ||
{ | ||
id: '11', | ||
|
@@ -296,7 +288,6 @@ let jobs = [ | |
minSalary: 25000, | ||
maxSalary: 50000, | ||
isVerifiedJob: true, | ||
|
||
}, | ||
{ | ||
id: '12', | ||
|
@@ -321,7 +312,7 @@ let jobs = [ | |
minSalary: null, | ||
maxSalary: null, | ||
isVerifiedJob: true, | ||
delted: false | ||
delted: false, | ||
}, | ||
]; | ||
|
||
|
@@ -441,4 +432,4 @@ async function main() { | |
await seedJobs(); | ||
} | ||
|
||
main(); | ||
main(); |
Oops, something went wrong.