Skip to content

Database Schema

Qilin Xie edited this page May 24, 2024 · 1 revision

Database Schema

Our application uses a PostgreSQL database with the following schema:

Users Table

  • id (INTEGER, Primary Key): Unique identifier for each user.
  • username (STRING, Unique, Not Null): The user's unique username.
  • password (STRING, Not Null): The user's hashed password.
  • createdAt (TIMESTAMP, Not Null): Timestamp of when the user was created.
  • updatedAt (TIMESTAMP, Not Null): Timestamp of when the user was last updated.
  • capabilities (ARRAY of STRINGs, Default: ['read']): Permissions assigned to the user.

Clone this wiki locally