Data Model

Database Schema

PostgreSQL database with 10 core tables. All tables use standard timestamps and follow consistent naming conventions.

ColumnType
idSERIAL
nameVARCHAR(255)
typeENUM
parent_idINTEGER
contact_emailVARCHAR(255)
is_activeBOOLEAN
created_atTIMESTAMP
ColumnType
idSERIAL
organization_idINTEGER
emailVARCHAR(255)
password_hashVARCHAR(255)
first_nameVARCHAR(100)
last_nameVARCHAR(100)
roleENUM
is_activeBOOLEAN
ColumnType
idSERIAL
organization_idINTEGER
key_hashVARCHAR(255)
key_prefixVARCHAR(10)
labelVARCHAR(100)
is_activeBOOLEAN
last_used_atTIMESTAMP