Hello,
Myself and my colleague are attempting to design a database model and are having some disagreements along the way. We have come up with a model that we somewhat agree upon but neither are entirely happy with!
Attached is a picture of the DB model we have come up with so far. The requirements of the DB are as follows, it's for a campaign (project) management application.
We have companies, which have multiple users (employees) belonging to them. Companies also have company_groups (divisions) that employees belong to. One employee can belong to one or more company_groups.
We also have campaigns (projects), a campaign can belong to one or more companies. Each company needs to have different access permissions to a campaign.
Each campaign has 1 or more campaign_groups (these are used to specify user access level to a campaign). Each campaign_group can have many company_groups belonging to it and each company_group can belong to many campaign_groups.
While the picture is created in MS Access, this was only used for modelling, and it will actually be built in MySQL.
Does the model we have created look correct to you DB gurus please?
Thanks in advance for any help
Scully