79543224

Date: 2025-03-29 12:21:57
Score: 1.5
Natty:
Report link

Thanks for the answer, Richard.

1. the number of users is not the issue - tens, max hundred. They are students of Uni testing the database (deploying, testing, deleting instances according their needs...).

2. Sure,[ template is ready](https://github.com/DoboKostial/archeo_db/blob/master/db/create_db_template.sql) and they will create DBs from template, that is the only reasonable way to do it....

3. I was thinking about foreign data wrappers (having a user table on one database and the other databases will connect to it), but there is one catch - no one guarantees me that one of the students will not delete the original database and I will be without users....

I prefer to put authentication in an independent database (suggestion 1) and prohibit students from entering it. I will solve the synchronization of roles between databases with an [application script](https://github.com/DoboKostial/archeo_db/blob/master/db/synchronize_from_auth_db.py)....

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Long answer (-0.5):
  • No code block (0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: ďobo