Files
2026-09-21 16:28:16 +03:00

59 lines
1.3 KiB
Plaintext

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)
}