safebank-fe

📊 Entity-Relationship Diagram Documentation

Entity Relationship Diagram

Overview of the ER Diagram

This ER diagram models a relational database for a system that manages Users, their Accounts, and the Transactions they perform. It is designed to facilitate robust user account management, multi-currency support, and detailed transaction tracking. The relationships between entities ensure consistency and provide a clear structure for data retrieval and manipulation.


Detailed Explanation of Entities and Attributes

1. Users 👤


2. Accounts đź’ł


3. Transactions đź’¸


Summary 📝

This database design ensures a robust connection between users, accounts, and transactions:

  1. Users manage multiple accounts: Each account is uniquely linked to one user, but a single user can have many accounts, facilitating multi-account management.
  2. Accounts participate in transactions: Every transaction must involve two accounts—one as the source and one as the target. Transactions are also tied to the user who initiated them, ensuring accountability.
  3. Scalable and relational structure: The use of primary and foreign keys ensures strong referential integrity, making the database scalable and secure for future features such as transaction categorization, advanced reporting, or multi-user permissions.