feat: implement education module with CRUD functionality, database schema, and localization support
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
-- CreateTable
|
||||
CREATE TABLE "educations" (
|
||||
"id" UUID NOT NULL,
|
||||
"institution" TEXT NOT NULL,
|
||||
"degree" TEXT NOT NULL,
|
||||
"field_of_study" TEXT NOT NULL,
|
||||
"location" TEXT,
|
||||
"start_year" INTEGER NOT NULL,
|
||||
"end_year" INTEGER,
|
||||
"is_ongoing" BOOLEAN NOT NULL DEFAULT false,
|
||||
"description" TEXT,
|
||||
"gpa" TEXT,
|
||||
"final_project_title" TEXT,
|
||||
"final_project_url" TEXT,
|
||||
"order" INTEGER NOT NULL DEFAULT 0,
|
||||
"created_at" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
||||
|
||||
CONSTRAINT "educations_pkey" PRIMARY KEY ("id")
|
||||
);
|
||||
@@ -85,3 +85,22 @@ model Experience {
|
||||
|
||||
@@map("experiences")
|
||||
}
|
||||
|
||||
model Education {
|
||||
id String @id @default(uuid()) @db.Uuid
|
||||
institution String
|
||||
degree String
|
||||
fieldOfStudy String @map("field_of_study")
|
||||
location String?
|
||||
startYear Int @map("start_year")
|
||||
endYear Int? @map("end_year")
|
||||
isOngoing Boolean @default(false) @map("is_ongoing")
|
||||
description String? @db.Text
|
||||
gpa String?
|
||||
finalProjectTitle String? @map("final_project_title")
|
||||
finalProjectUrl String? @map("final_project_url")
|
||||
order Int @default(0)
|
||||
createdAt DateTime @default(now()) @map("created_at")
|
||||
|
||||
@@map("educations")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user