-
Notifications
You must be signed in to change notification settings - Fork 1
Database Schema
Dylan Welzel edited this page Jan 18, 2022
·
3 revisions
column | data type | details |
---|---|---|
id | integer | not null, primary key |
name | string | not null, unique |
username | string | not null, unique |
string | not null, unique | |
hashed_password | string | not null |
profile_picture | string | not null |
status | string | not null |
column | data type | details |
---|---|---|
id | integer | not null, primary key |
channel_id | integer | not null, foreign key |
user_id | integer | not null, foreign key |
-
channel_id
referenceschannels
table -
user_id
referencesusers
table
column | data type | details |
---|---|---|
id | integer | not null, primary key |
org_id | integer | not null, foreign key |
user_id | integer | not null, foreign key |
-
org_id
referencesorganizations
table -
user_id
referencesusers
table
column | data type | details |
---|---|---|
id | integer | not null, primary key |
name | string | not null |
org_id | integer | not null, foreign key |
-
org_id
referencesorganizations
table
column | data type | details |
---|---|---|
id | integer | not null, primary key |
name | string | not null |
owner_id | integer | not null, foreign key |
-
owner_id
referencesusers
table
column | data type | details |
---|---|---|
id | integer | not null, primary key |
content | string | not null |
owner_id | integer | not null, foreign key |
org_id | integer | not null, foreign key |
-
owner_id
referencesusers
table -
org_id
referencesorganizations
table
column | data type | details |
---|---|---|
id | integer | not null, primary key |
content | string | not null |
owner_id | integer | not null, foreign key |
channel_id | integer | not null, foreign key |
-
owner_id
referencesusers
table -
channel_id
referenceschannels
table