The figures below illustrate our data storage design for two primary collections: Users and Carpools. Since our system uses MongoDB instead of SQL, we adopted a document-database model, making it easier to structure and query our data efficiently. Each box represents a document with its respective attributes, while arrows denote relationships between documents.
Access to Personally Identifiable Information (PII) is restricted using RBAC, ensuring that only authorized users can view their respective data.
The main PII stored includes:
Email addresses
Location details (restricted visibility)
The application does not process or store financial information, significantly reducing potential security vulnerabilities.
By implementing MongoDB encryption, OAuth authentication, and HTTPS, our system ensures data integrity, privacy, and security while maintaining efficient and scalable storage.