Fix #39: adds the schema.sql for initialising tables and relationships#42
Merged
Om-Thorat merged 2 commits intobsoc-bitbyte:mainfrom Aug 2, 2025
Merged
Conversation
This commit adds a schema.sql that initialises tables and relationships for managing user data. Closes bsoc-bitbyte#39
✅ Deploy Preview for ydo-bsoc ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
Om-Thorat
requested changes
Aug 2, 2025
backend/db/schema.sql
Outdated
| CREATE TABLE user_info ( | ||
| id BIGSERIAL NOT NULL PRIMARY KEY, | ||
| name VARCHAR(50) NOT NULL, | ||
| age SMALLINT NOT NULL CHECK(age > 0), |
backend/db/schema.sql
Outdated
|
|
||
| CREATE TABLE choices_for_chooser ( | ||
| chooser_id BIGINT NOT NULL REFERENCES user_info(id), | ||
| chosen_id BIGINT REFERENCES user_info(id), |
Contributor
There was a problem hiding this comment.
this value will be encrypted make it a varchar and it won't reference anything
backend/db/schema.sql
Outdated
|
|
||
| CREATE TABLE choices_for_chosen ( | ||
| chosen_id BIGINT NOT NULL REFERENCES user_info(id), | ||
| chooser_id BIGINT REFERENCES user_info(id), |
Contributor
There was a problem hiding this comment.
similarly here the value will be encrypted make it a varchar and it won't reference anything
This commit makes minor changes to the schema.sql as requested by the reviewer. Closes bsoc-bitbyte#39
Om-Thorat
approved these changes
Aug 2, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Overview
Essential Checklist
Proof that changes are correct
Can't provide any proof of changes yet.
PR Pointers