justinarat / Teamify

0 stars 0 forks source link

Setup SQLite databases #5

Closed dominictdavies closed 5 months ago

dominictdavies commented 5 months ago

SQLite database should store:

Tasks:

FAljanobi commented 5 months ago

lets try our best not to create a sql injection vulnerability lol

One database with many tables Table Users has columns:

Table Game has columns:

lobby

lobbytags - rows need to be made unique ;-; easy for dupe rows to spread

lobbyplayers - rows need to be made unique ;-; easy for dupe rows to spread

tags

tell me if i forgot something

FAljanobi commented 5 months ago

forgot to add lobbytimes rip would need uid of lobby, the timeblock, and how often they play that timeblock there would be a possibilty of multiple time blocks(example is every weekend and every other thursday) so cant have lobby.uid unique ;-;

FAljanobi commented 5 months ago

to clarify on how this schema stores time: a lobby wants to play 2-5pm monday and 8-12pm saturday every other week they would have 2 entries on lobbytime and they would look like this: lobbyid,2-5pm startdate, weekly lobbyid,2-5pm startdate, every 2 weeks something along those lines

FAljanobi commented 5 months ago

also someone please double check my work on the db