WIP Multi-tenant architecture.

This commit is contained in:
Ahmed Bouhuolia
2020-04-21 22:47:27 +02:00
parent 4e0d3feebe
commit 8f588ffc51
64 changed files with 812 additions and 447 deletions

25
server/config/config.js Normal file
View File

@@ -0,0 +1,25 @@
module.exports = {
system: {
db_client: 'mysql',
db_host: '127.0.0.1',
db_user: 'root',
db_password: '123123123',
db_name: 'bigcapital_system',
migrations_dir: '../src/system/migrations',
},
tenant: {
db_client: 'mysql',
db_name_prefix: 'bigcapital_tenant_',
db_host: '127.0.0.1',
db_user: 'root',
db_password: '123123123',
charset: 'utf8',
migrations_dir: 'src/database/migrations',
seeds_dir: 'src/database/seeds',
},
manager: {
superUser: 'root',
superPassword: '123123123',
},
};