// This is your Prisma schema file, // learn more about it in the docs: https://pris.ly/d/prisma-schema // Get a free hosted Postgres database in seconds: `npx create-db` generator client { provider = "prisma-client" output = "../generated/prisma" } datasource db { provider = "postgresql" } model Profile { id Int @id @default(autoincrement()) firstName String lastName String description String skills Skill[] links Link[] experiences Experience[] projects Project[] } model Skill { id Int @id @default(autoincrement()) name String profileId Int profile Profile @relation(fields: [profileId], references: [id], onDelete: Cascade) @@index([profileId]) } model Link { id Int @id @default(autoincrement()) name String link String profileId Int profile Profile @relation(fields: [profileId], references: [id], onDelete: Cascade) @@index([profileId]) } model Project { id Int @id @default(autoincrement()) name String link String description String profileId Int profile Profile @relation(fields: [profileId], references: [id], onDelete: Cascade) @@index([profileId]) } model Experience { id Int @id @default(autoincrement()) company String position String period String achievements String[] @default([]) profileId Int profile Profile @relation(fields: [profileId], references: [id], onDelete: Cascade) @@index([profileId]) }