-
Notifications
You must be signed in to change notification settings - Fork 0
Database Documentation
Fxuls edited this page Jul 26, 2022
·
19 revisions
-
id
INTEGER, PK -
status
VARCHAR(15) NOT NULL, UNIQUE
status
values: default, busy, idle, offline
-
id
INTEGER, PK -
url
VARCHAR(120), NOT NULL, UNIQUE
-
id
INTEGER, PK -
username
VARCHAR(28), NOT NULL, UNIQUE (example: username#1234) -
hashed_password
VARCHAR(255), NOT NULL -
bio
VARCHAR(320) -
status_id
INTEGER, NOT NULL, FKstatuses.id
, DEFAULTstatuses.id
WHEREstatus
= "default" -
banner_color
VARCHAR(10) (example: #C45D43) -
profile_image_id
INTEGER, FKimages.id
-
id
INTEGER, PK -
sending_user_id
INTEGER, NOT NULL, FKusers.id
-
receiving_user_id
INTEGER, NOT NULL, FKusers.id
-
id
INTEGER, PK -
user_one_id
INTEGER, NOT NULL, FKusers.id
-
user_two_id
INTEGER, NOT NULL, FKusers.id
-
id
INTEGER, PK -
user_one_id
INTEGER, NOT NULL, FKusers.id
-
user_two_id
INTEGER, NOT NULL, FKusers.id
-
id
INTEGER, PK -
owner_id
INTEGER, NOT NULL, FKusers.id
-
name
VARCHAR(40), NOT NULL -
invite_url
VARCHAR(120) -
server_image_id
INTEGER, FKimages.id
-
public
BOOLEAN, NOT NULL, DEFAULT TRUE
-
id
INTEGER, PK -
name
VARCHAR(15), NOT NULL, UNIQUE -
permission
INTEGER, NOT NULL, UNIQUE
server_permission
values: banned, member, moderator, admin
-
id
INTEGER, PK -
user_id
INTEGER, NOT NULL, FKusers.id
-
server_id
INTEGER, NOT NULL, FKservers.id
-
permission_id
INTEGER, NOT NULL, DEFAULTserver_permissions.id
WHEREserver_permission
= "member"
-
id
INTEGER, PK -
server_id
INTEGER, NOT NULL, FKservers.id
-
name
VARCHAR(40), NOT NULL
-
id
INTEGER, PK -
direct_message_chat_id
INTEGER, NOT NULL, FKdirect_message_chats.id
-
text
VARCHAR(800) -
image_id
INTEGER, FKimages.id
-
id
INTEGER, PK -
sender_id
INTEGER, FKusers.id
-
server_id
INTEGER, NOT NULL, FKservers.id
-
channel_id
INTEGER, NOT NULL, FKchannels.id
-
text
VARCHAR(800) -
image_id
INTEGER, FK,images.id