I wonder whether I am following a good design for following db tables.
Tables:
- Project_Proposal
- Milestones_Proposal
- Resources_Proposal
- Project
- Milestones_Project
- Resources_Project
Both milestones tables have the same columns and both resource tables have the same columns.
My question is whether I should
- Merge Milestones_Proposal with Milestones_Project
- Merge Resources_Proposal with Resources_Project
- Create a column "TYPE" to identify if the data in these tables belong to either a project or a project proposal
- Define a foreign key in Milestones and Resources that either point to Project_Proposal or Project table depending on the "Type" value.
Design would be then like this:
- Project_Proposal
- Project
- Milestones
- Resources
Many thanks, Peter