Currently I have a users table which stores a users information such as address and contact details and also user type(staff, client, supplier, admin, manager)
I also have a contracts table, which stores which client user a contract is with, the ***job number, and details when to start etc and its current status.
The notes table I am planning to have linked to each contract using the ***job number, then date note added, and note added by user and of coarse the note itself.
- would I create a new notes table for each client user and store all that clients job notes there for all jobs?
or
- do i store all notes in one table and just link as I mentioned before by the job number which will be unique to each contract?
***job number
would also like some guideance for creating this job number automatically, ie, in the format clientname-000001, clientname-000002, clientname-000003 etc etc per client contract, i would like to use only up to the first 6 characters of a client name then the incrementing number for each contract.
Thank you for your fast reply Piranha