Skip to content

creating db structure for forum#218

Open
cthotti wants to merge 3 commits into
mainfrom
feature/forum
Open

creating db structure for forum#218
cthotti wants to merge 3 commits into
mainfrom
feature/forum

Conversation

@cthotti
Copy link
Copy Markdown
Collaborator

@cthotti cthotti commented May 22, 2026

Summary

Describe the purpose of this pull request. What does it do, and why is it needed?

Closes #(issue number) if applicable.
#216

New DB Schema

  • Created a new Questions and Answers schema to take in questions from users, and answers from multiple users
  • created a forumController to post, put, and delete content. Whether its forums or answers
  • Add reactions for users to react to answers

Testing

How was this change tested?

  • Tested the code using curl, where i made specific requests and tested whether they get updated in the db or not
  • created a bash script for all curl tests

@cthotti cthotti requested review from LC0229 and n1sh1thaS as code owners May 22, 2026 05:02
@vercel
Copy link
Copy Markdown

vercel Bot commented May 22, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
opportune Ready Ready Preview, Comment May 29, 2026 8:38pm

LC0229
LC0229 previously approved these changes May 22, 2026
Copy link
Copy Markdown
Collaborator

@n1sh1thaS n1sh1thaS left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! Here are a couple changes to make:

  • reactions should have a user associated with it (to allow users to remove their reaction)
  • modify schema to allow people to reply to answers (so each answer has its own array of answers)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants