M
M
Max2021-05-12 11:27:45
JavaScript
Max, 2021-05-12 11:27:45

How to properly organize PostgreSQL database structure for different accounts?

I am writing a financial service in java. The question is next. There is a table structure designed for one account, where all the data necessary for its operation is stored. But the service is multi-user. How to do better. When registering an account, create a directory of the same name for it and store all its data in the same database, or create a separate database so that each account works with its own database? In principle, it is possible this way and that, but what is now used when storing and accessing data on the server by different users. And if there are any articles on this issue or literature, please help. Thank you.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
0
0xD34F, 2018-11-08
@MarkoPip

document.querySelector('ul').addEventListener('click', function(e) {
  if (e.target.tagName === 'BUTTON') {
    console.log([...this.children].indexOf(e.target.closest('li')));
  }
});

A
Armenian Radio, 2021-05-12
@Max_LiVi

Create a separate base. So there is less chance of data leakage in case of your crooked hands.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question