As a personal project to improve my knowledge of php, OOP and PDO i am going to design a bug reporting database like Atlassian Jira, fogbugz etc
I have basic understanding of database structure however i have only ever worked with a single database.
In this simplified scenario lets say we will have the following tables:
- Users
- bugs
- project
- issue type
- priority
My first thought was i would need a new database for each company because if i mixed the bugs database with everyones bug it would affect the return of query speeds. That could lead to having lots of databases, since this is a new concept i just want to see if there is a better way to do it.
I assume i will auto generate a new database with the default populated fields for the 5 tables above under a database called something like db_company_56
where 56
is the id of the company.
Could get a bit messy maintaining things with so many databases, i wonder is there a way to store them under a subfolder in phpadmin, from looking around i dont see an obvious way. So is the route i'm taking reasonably ok or is there a better way to do something like this?
If you have further reading material i can search on myself that would be great, i just dont really know what keywords to search for this under.