Skip to content

User management misunderstanding #182

Closed Answered by frankie567
hugobaret asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @hugobaret 👋

That's completely expected 🙂

With PostgreSQL, we leverage a feature of the DBMS called "schemas": https://www.postgresql.org/docs/current/ddl-schemas.html In a nutshell, we are able to create "sub-database".

The main one is here to manage the different workspaces. For each workspace, we create a single schema, named after the ID of the workspace.

You can query a schema by prefixing the table name with the schema name:

SELECT * FROM "d293a0cc-b26a-47a0-ac75-41c93756de62".fief_users;

Replies: 4 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by hugobaret
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants