[resumes][feat] rename to ResumesSection

pull/308/head
Keane Chan 3 years ago
parent 3170a36425
commit d79a88a0dc
No known key found for this signature in database
GPG Key ID: 32718398E1E9F87C

@ -95,9 +95,7 @@ model ResumesResume {
userId String
title String @db.Text
additionalInfo String @db.Text
// TODO: role
// TODO: experience
// TODO: location
// TODO: Add role, experience, location from Enums
url String
createdAt DateTime @default(now())
updatedAt DateTime @updatedAt
@ -106,20 +104,11 @@ model ResumesResume {
comments ResumesComment[]
}
enum Section {
GENERAL
EDUCATION
EXPERIENCE
PROJECTS
SKILLS
}
model ResumesStar {
id String @id @default(cuid())
resumeId String
userId String
createdAt DateTime @default(now())
updatedAt DateTime @updatedAt
user User @relation(fields: [userId], references: [id], onDelete: Cascade)
resume ResumesResume @relation(fields: [resumeId], references: [id], onDelete: Cascade)
}
@ -129,7 +118,7 @@ model ResumesComment {
resumeId String
userId String
description String @db.Text
section Section
section ResumesSection
createdAt DateTime @default(now())
updatedAt DateTime @updatedAt
user User @relation(fields: [userId], references: [id], onDelete: Cascade)
@ -137,6 +126,14 @@ model ResumesComment {
votes ResumesCommentVote[]
}
enum ResumesSection {
GENERAL
EDUCATION
EXPERIENCE
PROJECTS
SKILLS
}
model ResumesCommentVote {
id String @id @default(cuid())
commentId String

Loading…
Cancel
Save