S
S
Sergei Erm2019-11-05 10:26:58
Database design
Sergei Erm, 2019-11-05 10:26:58

How to split a project into branches?

Greetings.
I think not only I am worried about this question, I did not find any open answers.
There is a task to expand the online store, it is written in Laravel 5.8 and the database in mongoDB.
It is necessary to make a division into branches.
That is, there is one branch in each city, and each branch has its own set of goods and its own data in the admin panel.
Who faced similar, what thoughts on creation of a DB are?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
P
Peter Slobodyanyuk, 2019-11-05
@Larvis

What is your database structure now? From it we will repel.

I
Ivan Melnikov, 2019-11-05
@immelnikoff

It seems easier than a steamed turnip. Create a branch
table (id, name). And in other tables, where it is required, define foreign keys on the id field in the branch table .

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question