[questions][chore] update schema naming scheme

pull/323/head
hpkoh 3 years ago
parent 7a26324a26
commit 921bd02398

@ -49,15 +49,15 @@ model User {
resumesStars ResumesStar[]
resumesComments ResumesComment[]
resumesCommentVotes ResumesCommentVote[]
QuestionsQuestion QuestionsQuestion[]
QuestionsQuestionEncounter QuestionsQuestionEncounter[]
QuestionsQuestionVote QuestionsQuestionVote[]
QuestionsQuestionComment QuestionsQuestionComment[]
QuestionsQuestionCommentVote QuestionsQuestionCommentVote[]
QuestionsAnswer QuestionsAnswer[]
QuestionsAnswerVote QuestionsAnswerVote[]
QuestionsAnswerComment QuestionsAnswerComment[]
QuestionsAnswerCommentVote QuestionsAnswerCommentVote[]
questionsQuestions QuestionsQuestion[]
questionsQuestionEncounters QuestionsQuestionEncounter[]
questionsQuestionVotes QuestionsQuestionVote[]
questionsQuestionComments QuestionsQuestionComment[]
questionsQuestionCommentVotes QuestionsQuestionCommentVote[]
questionsAnswers QuestionsAnswer[]
questionsAnswerVotes QuestionsAnswerVote[]
questionsAnswerComments QuestionsAnswerComment[]
questionsAnswerCommentVotes QuestionsAnswerCommentVote[]
}
model VerificationToken {
@ -193,10 +193,10 @@ model QuestionsQuestion {
updatedAt DateTime @updatedAt
user User? @relation(fields: [userId], references: [id], onDelete: SetNull)
QuestionsQuestionEncounter QuestionsQuestionEncounter[]
QuestionsQuestionVote QuestionsQuestionVote[]
QuestionsQuestionComment QuestionsQuestionComment[]
QuestionsAnswer QuestionsAnswer[]
questionEncounters QuestionsQuestionEncounter[]
questionVotes QuestionsQuestionVote[]
questionComment QuestionsQuestionComment[]
questionsAnswers QuestionsAnswer[]
}
model QuestionsQuestionEncounter {
@ -238,7 +238,7 @@ model QuestionsQuestionComment {
user User? @relation(fields: [userId], references: [id], onDelete: SetNull)
question QuestionsQuestion @relation(fields: [questionId], references: [id], onDelete: Cascade)
QuestionsQuestionCommentVote QuestionsQuestionCommentVote[]
questionCommentVotes QuestionsQuestionCommentVote[]
}
model QuestionsQuestionCommentVote {
@ -265,8 +265,8 @@ model QuestionsAnswer {
user User? @relation(fields: [userId], references: [id], onDelete: SetNull)
question QuestionsQuestion @relation(fields: [questionId], references: [id], onDelete: Cascade)
QuestionsAnswerVote QuestionsAnswerVote[]
QuestionsAnswerComment QuestionsAnswerComment[]
answerVotes QuestionsAnswerVote[]
answerComments QuestionsAnswerComment[]
}
model QuestionsAnswerVote {
@ -293,7 +293,7 @@ model QuestionsAnswerComment {
user User? @relation(fields: [userId], references: [id], onDelete: SetNull)
answer QuestionsAnswer @relation(fields: [answerId], references: [id], onDelete: Cascade)
QuestionsAnswerCommentVote QuestionsAnswerCommentVote[]
snswerCommentVotes QuestionsAnswerCommentVote[]
}
model QuestionsAnswerCommentVote {

Loading…
Cancel
Save