I am making a project manager site for my personal use, and I have a question about what would be the best way to build the database for the site.
It will involve Client list, Projects and Tasks, Invoicing and Payments.
I am trying to figure out the best way to make sure I can link all content to the Client.
This is what I put together in notepad just to get an idea on how my database should look like.
Clients: id, name
Projects: id, client, project_name, due_date
Tasks: id, client, project_name, task, due_date, complete
Invoices: invoice_id, client, project_name, date, due, balance, payment, pay_date
Invoice_item: id, item, amount
If anyone has a better idea on how I should do this, please feel free to let me know.
@GuberX – Why do each of the tables have just
id?It would look more descriptive to do something like:
An example using the foreign keys you specified (in the comments):
Note the *projID above. Further reading for you here