prisma: profile tables with init migration
CI / Сборка (push) Successful in 1m36s
Стенд master
CI / Деплой на стейджинг (push) Successful in 29s
CI / Проверка кода (push) Successful in 16s

This commit is contained in:
arswarog committed 2026-11-16 17:26:19 +03:00
1 parent c2b801416e
commit f2ab264479
3 files changed
+131

No files matched your search

+53
View File
@@ -11,3 +11,56 @@ generator client {
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])
}