VictorKwong / DataSense-PRJ666-team-5

https://prj666deploy-9xd1.vercel.app
MIT License
0 stars 0 forks source link

Use case 21: NoSQL Database Schema Design for User Account #14

Closed VictorKwong closed 1 month ago

VictorKwong commented 1 month ago

NoSQL Database Schema Design for Data

User Story

As a backend developer, I want to design and implement a NoSQL database schema to store data efficiently so that users can log in to their accounts accurately.

Description

This use case involves designing a NoSQL database schema to store user account and password data registered from a live website. The schema should be optimized to handle large amounts of data efficiently over time and include appropriate indexing to ensure quick and reliable data retrieval.

Acceptance Criteria

Testing

Normal Flow of Events

The backend developer designs a database schema using a NoSQL database (e.g., MongoDB). A user account can be registered/stored in the database with timestamps. A user account can log in and retrieve their data from the NoSQL database.

Alternate/Exceptional Flows:

S-1: Schema does not support efficient querying

The schema is inefficient for querying large datasets, leading to slow response times. The developer refines the schema or adds appropriate indexing to improve query performance.

S-2: Data insertion errors

Account data is not correctly inserted into the database due to missing fields or incorrect data types.

VictorKwong commented 1 month ago

User can register and login into their account to view their data. They cannot view any sensitive information (such as sensor data) when they are not authorized.