-
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.
Merge branch 'main' into feat/admin-add-hr
- Loading branch information
Showing
110 changed files
with
5,233 additions
and
563 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
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
Oops, something went wrong.