Skip to content

Database

Keegan edited this page May 17, 2026 · 18 revisions

Overview

We separate the user database from the database that the services have access to. All information from the separated users database is passed to functions that in it using the JWT. We have two databases.


Users database

The users database is used for authentication upon log in and responsible for the authorization for the requests since it helps to bind the user's role to the JWT.

Tables


Users

Column Type Description
UserId UUID
UserEmail VARCHAR(255)
UserName VARCHAR(100)
UserRole User_Role_Enum
UserPassword VARCHAR(255)
UserJWTIssued TIMESTAMPTZ

Clone this wiki locally