Question

I am designing data base for inventory management system which is used by nearly 10 to 15 companies. This database contains nearly 25 tables.For designing database i'm planning to use shared schema architecture(ie each schema corresponding to a company and these all schemas are to be placed in a single database).

i want to know whether it is reliable to use shared schema architecture.

can any one please tell me is it correct decision to use above mentioned architecture.

Thanks in advance..

Was it helpful?

Solution

If I read your question, you are suggesting that each company has its own schema. This means two things:

  1. If you decide to implement a basic change in the schema (ie not a change that one company requests), then you will have to implement this change in all the schemae.
  2. You will probably have to implement different logic in your front end program for each company.

Better you should develop one schema for the entire database; each table would have a field called 'CompanyID' which naturally would define to which company each row belongs. This field would be a foreign key to the Companies table.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top