sqlite database #3

Closed
opened 2023-04-26 16:43:50 -04:00 by imcompiling · 5 comments
Owner

Need a sqlite database for storing some information.

Need a sqlite database for storing some information.
imcompiling added this to the Clan election cycle development project 2023-04-26 16:46:03 -04:00
Author
Owner

sqlite is a full database. I should think of all that I need stored in the database in order to make the schema.

sqlite is a full database. I should think of all that I need stored in the database in order to make the schema.
Author
Owner

Need

  • active election channel
  • current clan council
  • a table for votes. this would include the year and quarter, voter, and votee
Need * active election channel * current clan council * a table for votes. this would include the year and quarter, voter, and votee
Author
Owner

I'm thinking that a nosql database might be more what I need.

I'm thinking that a nosql database might be more what I need.
Author
Owner

Decided that I can use a regular sql database. Will have 3 table: election information, council members, and votes.

  • election information will hold the primary key of election name and the election channel id.
  • council members will hold the people who entered into each election. foreign key of election name, primary key of election name and the member's id. Will also have booleans of elected, discord manager, and clan leader.
  • votes will have a foreign key of election name and primary key of election name and voter's id. Will also include who the voter voted for.
Decided that I can use a regular sql database. Will have 3 table: election information, council members, and votes. - election information will hold the primary key of election name and the election channel id. - council members will hold the people who entered into each election. foreign key of election name, primary key of election name and the member's id. Will also have booleans of elected, discord manager, and clan leader. - votes will have a foreign key of election name and primary key of election name and voter's id. Will also include who the voter voted for.
imcompiling added reference 3-sqlite-database 2023-07-16 21:50:14 -04:00
Author
Owner

Created the database and a script to create it if it doesn't exist. Added usage to first spot where needed.

Created the database and a script to create it if it doesn't exist. Added usage to first spot where needed.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: imcompiling/dakiny-bot#3