This commit is contained in:
2025-08-18 20:12:57 +03:00
parent cc0b793000
commit 9f6fca6dac
24 changed files with 11283 additions and 117 deletions

View File

@@ -0,0 +1,15 @@
-- CreateTable
CREATE TABLE "public"."Candidate" (
"id" SERIAL NOT NULL,
"fullName" TEXT NOT NULL,
"email" TEXT NOT NULL,
"phoneNumber" TEXT NOT NULL,
"age" INTEGER NOT NULL,
"cityOrRegion" TEXT NOT NULL,
"hobbies" TEXT NOT NULL,
"text" TEXT NOT NULL,
"image" TEXT NOT NULL,
"createdAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP,
CONSTRAINT "Candidate_pkey" PRIMARY KEY ("id")
);

View File

@@ -0,0 +1,3 @@
# Please do not edit this file manually
# It should be added in your version-control system (e.g., Git)
provider = "postgresql"

28
prisma/schema.prisma Normal file
View File

@@ -0,0 +1,28 @@
// This is your Prisma schema file,
// learn more about it in the docs: https://pris.ly/d/prisma-schema
// Looking for ways to speed up your queries, or scale easily with your serverless or edge functions?
// Try Prisma Accelerate: https://pris.ly/cli/accelerate-init
generator client {
provider = "prisma-client-js"
output = "../generated/prisma"
}
datasource db {
provider = "postgresql"
url = env("DATABASE_URL")
}
model Candidate {
id Int @id @default(autoincrement())
fullName String
email String
phoneNumber String
age Int
cityOrRegion String
hobbies String
text String
image String
createdAt DateTime @default(now())
}