Answer the question
In order to leave comments, you need to log in
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
document.querySelector('ul').addEventListener('click', function(e) {
if (e.target.tagName === 'BUTTON') {
console.log([...this.children].indexOf(e.target.closest('li')));
}
});
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 questionAsk a Question
731 491 924 answers to any question