I structured the database in Cloud Firestore to keep everything organized and secure. Each main feature had its own collection like projects, payments, project_returns, and bank_details. I made sure every collection was linked properly so the data flowed smoothly between entrepreneurs, investors, and admins. For example, when an investor’s payment got approved, it automatically connected to project returns. I also added Firestore rules to make sure only the right users could read or write specific data.
Log in or sign up for Devpost to join the conversation.