WIP
This commit is contained in:
15
prisma/migrations/20250818151829_/migration.sql
Normal file
15
prisma/migrations/20250818151829_/migration.sql
Normal 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")
|
||||
);
|
||||
3
prisma/migrations/migration_lock.toml
Normal file
3
prisma/migrations/migration_lock.toml
Normal 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
28
prisma/schema.prisma
Normal 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())
|
||||
}
|
||||
Reference in New Issue
Block a user