[Epic] Database - all tables and connector functions
A collection of all database-related stuff that is needed for the initial release.
- [ ] Set up Postgres database (#521)
- [ ] Add table schemas and connector functions
- [ ] Users (#492)
- [ ] Jokes (#493)
- [ ] Submissions (#494)
- [ ] Reports (#518)
Might I suggest one table for jokes and submissions, and you can have a column stating whether or not a joke is "verified".
I think keeping them separate is a better idea since there could be edits by the original author, moderators and admins and there would be extra data associated with that. It also keeps them logically separate.
Example being that submissions are being voted on by users and could have edits proposed. This has nothing to do with jokes that have been fully accepted into the joke pool already.