Skip to content
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

Design and implement a database to store users data #41

Open
1 of 3 tasks
shrnkld opened this issue Dec 14, 2022 · 2 comments
Open
1 of 3 tasks

Design and implement a database to store users data #41

shrnkld opened this issue Dec 14, 2022 · 2 comments
Assignees
Labels
enhancement New feature or request

Comments

@shrnkld
Copy link
Contributor

shrnkld commented Dec 14, 2022

Scenario:

If a user logs in to the dashboard, when they have an active, inactive, or pending project, then we will display those projects in the table component.

What we need:
A back-end database that can act as the storage mechanism for the user data.

Database structure:
See comment below...

To do:

  • define the database structure and data needed

Implement an SQLite database

To do:

  • implement the database using SQLite
  • store the following data:
    Projects:
    -- project_ID (primary key)
    -- user_ID
    -- API_key
    -- project_created_date
    Users:
    -- user_ID
    -- wallet_address
    -- user_created_date

User flow:

  1. user logs in

  2. fetch their wallet address

  3. check if the address already exists in db

  4. if it doesn't exist, create a new record

  5. if it does exist, retrieve the users projects

  6. when a user creates a new project, search for an existing user. If no user is found > go to 4. If the user is found > go to 5 and append new project info.

@shrnkld shrnkld converted this from a draft issue Dec 14, 2022
@shrnkld shrnkld changed the title API data storage in db User data storage in a database Dec 21, 2022
@shrnkld shrnkld added the enhancement New feature or request label Dec 21, 2022
@shrnkld shrnkld changed the title User data storage in a database Design the database structure for storing users data Dec 21, 2022
@SuperSkyDeveloper
Copy link
Collaborator

SuperSkyDeveloper commented Dec 21, 2022

Here is the database diagram

https://app.moqups.com/QXNvs34xZI7uzBFIEjKoVPeifwQBdBxH/view/page/a4aa60ece

Image

@shrnkld shrnkld changed the title Design the database structure for storing users data Design and implement the database structure for storing users data Dec 22, 2022
@shrnkld shrnkld changed the title Design and implement the database structure for storing users data Design and implement the database for storing users data Dec 22, 2022
@shrnkld shrnkld changed the title Design and implement the database for storing users data Design and implement a database to store users data Dec 22, 2022
@shrnkld shrnkld moved this from To do to In progress in XQuery - End User Dashboard Dec 27, 2022
@shrnkld
Copy link
Contributor Author

shrnkld commented Dec 30, 2022

@shrnkld shrnkld moved this from In progress to QA in XQuery - End User Dashboard Jan 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Development

No branches or pull requests

2 participants