Professional Documents
Culture Documents
ER Diagram
ER Diagram
Attributes: UserID (Primary Key), Username, Email, Password, Profile Picture, etc.
2) Investment:
Attributes: InvestmentID (Primary Key), UserID (Foreign Key), Name, Type, Description, Date of
Purchase, Amount, Quantity, etc.
3) Transaction:
Attributes: TransactionID (Primary Key), UserID (Foreign Key), InvestmentID (Foreign Key), Type
(Buy/Sell), Date, Amount, Quantity, Price, etc.
4) Financial Data:
Attributes: UserID (Foreign Key), InvestmentID (Foreign Key), Date, Performance Metrics (e.g.,
ROI, Growth Rate), etc.
5) Tax Report:
Attributes: UserID (Foreign Key), Year, Total Income, Taxable Income, Tax Paid, Deductions, Tax
Refund, etc.
6) User Settings:
Attributes: UserID (Foreign Key), Profile Settings, Security Settings, Payment Methods, Email
Preferences, etc.
7) News Feed:
Attributes: NewsID (Primary Key), Title, Description, Date, Source, URL, etc.
8) Feedback/Testimonial:
Attributes: FeedbackID (Primary Key), UserID (Foreign Key), Content, Date, Rating, etc.
Based on these entities and their attributes, we can define the relationships between them:
Each User can have multiple Investments, Transactions, Financial Data, Tax Reports, and
Feedback/Testimonials.
Each Investment belongs to a single User and can have multiple Transactions and Financial Data
entries.
News Feed items are independent and may not have direct relationships with other entities.
Data Dictionary:
1) User:
...
2) Investment:
UserID (FK): Foreign key referencing the user who owns the investment.
Type: Type or category of the investment (e.g., stock, bond, mutual fund).
...
3) Transaction:
UserID (FK): Foreign key referencing the user associated with the transaction.
InvestmentID (FK): Foreign key referencing the investment involved in the transaction.
...
4) Financial Data:
UserID (FK): Foreign key referencing the user associated with the financial data.
InvestmentID (FK): Foreign key referencing the investment associated with the financial data.
Date: Date of the financial data entry.
...
5) Tax Report:
UserID (FK): Foreign key referencing the user associated with the tax report.
...
6) User Settings:
UserID (FK): Foreign key referencing the user associated with the settings.
...
7) News Feed:
Source: Source of the news feed item (e.g., news website, financial publication).