Closed yash-saini closed 3 months ago
hi @yash-saini . yeah right now there isn't a database created yet and it was going to be local since this was a personal learning project to begin with. I've added some documentation that roughly outlines the project design and some other resources like the database table design. Feel free to check it out.
This is my first project using C# and .NET so I'm learning as I go along. For the Company table this is meant to be a table created using the Identity framework for managing user login and registrations as well as roles.
To my knowledge adding props to the CompanyUser adds columns to the table when its been added to the DB context class because that class is used to create a database migration script that will create the database. The idea is to have the company create a company account which adds the company to the company table and creates a user for the company in a AccountUsers table that has an ADMIN role. that account can create other users that will be associated with that company. Check out the database diagram to get a rough idea of how those tables are related.
If you have any questions feel free to ask.
I couldn't add the tables in the database, as it seems to be locally hosted. I have added the Plan and Company models encompassing the asked fields.