-
Notifications
You must be signed in to change notification settings - Fork 29
Fix #39: adds the schema.sql for initialising tables and relationships #42
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix #39: adds the schema.sql for initialising tables and relationships #42
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. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
good job sampath
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), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
change to dob.
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), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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
Overview
Essential Checklist
Proof that changes are correct
Can't provide any proof of changes yet.
PR Pointers