Skip to content

creating db structure for forum#218

Merged
n1sh1thaS merged 5 commits into
devfrom
feature/forum
Jun 2, 2026
Merged

creating db structure for forum#218
n1sh1thaS merged 5 commits into
devfrom
feature/forum

Conversation

@cthotti

@cthotti cthotti commented May 22, 2026

Copy link
Copy Markdown
Collaborator

Summary

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

Closes #(issue number) if applicable.
#216 #217

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
  • Created the UI for the forums
  • Created thread type of forums

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
  • UI works seamlessly

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

vercel Bot commented May 22, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
opportune Ready Ready Preview, Comment Jun 2, 2026 4:54am

LC0229
LC0229 previously approved these changes May 22, 2026

@n1sh1thaS n1sh1thaS left a comment

Copy link
Copy Markdown
Collaborator

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)

@n1sh1thaS n1sh1thaS changed the base branch from main to dev June 2, 2026 18:16
@n1sh1thaS n1sh1thaS self-requested a review June 2, 2026 19:51

@n1sh1thaS n1sh1thaS left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Looks great, thanks!

@n1sh1thaS n1sh1thaS merged commit 819f7b7 into dev Jun 2, 2026
5 checks passed
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