Prisma Init
This commit is contained in:
@@ -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)
|
||||
}
|
||||
Reference in New Issue
Block a user