Prisma Init

This commit is contained in:
Myle
2026-09-21 15:23:23 +03:00
parent d7cf735beb
commit b7154a3ca3
105 changed files with 12866 additions and 43 deletions
+58
View File
@@ -0,0 +1,58 @@
generator client {
provider = "prisma-client"
output = "../src/generated/prisma"
}
datasource db {
provider = "postgresql"
}
model Profile {
id String @id @default(uuid()) @db.Uuid
name String
description String
links Link[]
skills Skill[]
experience Experience[]
projects Project[]
}
model Link {
id String @id @default(uuid()) @db.Uuid
name String
url String
profileId String @db.Uuid
profile Profile @relation(fields: [profileId], references: [id], onDelete: Cascade)
}
model Skill {
id String @id @default(uuid()) @db.Uuid
name String
profileId String @db.Uuid
profile Profile @relation(fields: [profileId], references: [id], onDelete: Cascade)
}
model Experience {
id String @id @default(uuid()) @db.Uuid
company String
position String
startDate DateTime
endDate DateTime?
achievements String[]
profileId String @db.Uuid
profile Profile @relation(fields: [profileId], references: [id], onDelete: Cascade)
}
model Project {
id String @id @default(uuid()) @db.Uuid
name String
url String?
description String?
profileId String @db.Uuid
profile Profile @relation(fields: [profileId], references: [id], onDelete: Cascade)
}