Skip to content

Update dependency cryptography to v41.0.3 [SECURITY] #28

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
112 changes: 30 additions & 82 deletions docs/sqlite_database_structure.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,93 +3,41 @@ Note: this documentation was generated automatically from the tasks.py code usin

**activity table**

|Column|Description
|---|---|
|event_name|The kind of activity event. Examples of events include 'message_sent', 'guild_joined', 'application_command_used', etc.|
|day|The date when the event occurred, represented in 'YYYY-MM-DD' format.|
|hour|The hour when the event occurred (in 24-hour format).|
|occurence_count|The number of times the event occurred.|
|associated_channel_id|The channel ID associated with the event (if applicable).|
|associated_guild_id|The guild ID associated with the event (if applicable).|
|associated_user_id|The user ID associated with the event (if applicable).|
|extra_field_1|Extra data associated with the event, its use varies depending on the event type.|
|extra_field_2|Another field for extra data associated with the event, its use varies depending on the event type.|


**dm_channels_data table**

|Column|Description|
|---|---|
|channel_id|The unique identifier of the Direct Message (DM) channel.|
|dm_user_id|The unique identifier of the user in the DM channel.|
|user_name|The username of the user in the DM channel.|
|display_name|The display name of the user in the DM channel.|
|user_avatar_url|The URL of the user's avatar.|
|total_message_count|The total number of messages in the DM channel.|
|total_voice_channel_duration|The total duration of voice channel usage in the DM.|
|sentiment_score|The sentiment score associated with the DM channel.|


**guild_channels_data table**

|Column|Description|
|---|---|
|channel_id|The unique identifier of the guild channel.|
|guild_id|The unique identifier of the guild.|
|channel_name|The name of the channel.|
|total_message_count|The total number of messages in the guild channel.|
|total_voice_channel_duration|The total duration of voice channel usage in the guild.|


**guilds table**

|Column|Description|
|---|---|
|guild_id|The unique identifier of the guild.|
|guild_name|The name of the guild.|
|total_message_count|The total number of messages in the guild.|
|--|--|
|event_name|The type of event that occurred. Examples may include 'message_sent', 'guild_joined', 'application_command_used', 'add_reaction', etc.|
|day|The date in the format 'YYYY-MM-DD' when the event occurred.|
|hour|The hour of the day when the event occurred. Integer value from 0 to 23, inclusive.|
|occurence_count|The count of how many times the event occurred at the specified hour of the specified day.|
|associated_channel_id|The ID of the channel associated with the event, if applicable. For instance, chat messages and reaction counts are associated with their respective channels.|
|associated_guild_id|The ID of the guild (server) associated with the event, if applicable.|
|associated_user_id|The ID of the user associated with the event, if applicable.|
|extra_field_1|An additional field to capture any extra event information, such as the emoji_name in 'add_reaction' event.|
|extra_field_2|A secondary additional field to capture any further event information, such as a status indicator for if an emoji is custom-made ('1') or not ('0').|


**payments table**

|Column|Description|
|---|---|
|payment_id|The unique identifier of the payment.|
|payment_date|The date when the payment was made, represented in 'YYYY-MM-DD' format.|
|payment_amount|The amount of the payment.|
|payment_currency|The currency of the payment.|
|payment_description|A description of the payment.|


**voice_sessions table**

|Column|Description|
|---|---|
|channel_id|The unique identifier of the channel where the voice session took place.|
|guild_id|The unique identifier of the guild where the voice session took place.|
|duration_mins|The duration of the voice session in minutes.|
|started_date|The date and time when the voice session started.|
|ended_date|The date and time when the voice session ended.|


**sessions table**
**dm_channels_data table**

|Column|Description|
|---|---|
|duration_mins|The duration of the session in minutes.|
|started_date|The date and time when the session started.|
|ended_date|The date and time when the session ended.|
|device_os|The operating system of the device used in the session.|

|--|--|
|channel_id|The unique ID of the direct message (DM) channel.|
|dm_user_id|The unique ID of the user on the other end of the DM.|
|user_name|The username of the user on the other end of the DM.|
|display_name|The display name of the user on the other end of the DM.|
|user_avatar_url|The URL of the avatar image for the user on the other end of the DM.|
|total_message_count|The total number of messages exchanged in this DM channel.|
|total_voice_channel_duration|Total duration that voice channels have been used in this DM channel.|
|sentiment_score|A numerical score representing the sentiment of the messages in this DM channel. Positive score - positive sentiment, negative - negative sentiment.|

(Additional table descriptions would follow a similar format)

**package_data table**

|Column|Description|
|---|---|
|package_id|The unique identifier of the data package.|
|package_version|The version of the data package.|
|package_owner_id|The unique identifier of the owner of the data package.|
|package_owner_name|The name of the owner of the data package.|
|package_owner_display_name|The display name of the owner of the data package.|
|package_owner_avatar_url|The URL of the owner's avatar.|
|package_is_partial|A boolean value indicating whether the data package is partial (1) or complete (0).|
|--|--|
|package_id|The unique ID of the package being processed.|
|package_version|The version of the package being processed.|
|package_owner_id|The ID of the owner of the package.|
|package_owner_name|The username of the owner of the package.|
|package_owner_display_name|The display name of the owner of the package.|
|package_owner_avatar_url|The URL of the avatar image for the owner of the package.|
|package_is_partial|Flag indicating whether the package is partial or not. '1' indicates a partial package and '0' indicates a complete package.|
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ click-didyoumean==0.3.0
click-plugins==1.1.1
click-repl==0.2.0
cryptocode==0.1
cryptography==41.0.1
cryptography==41.0.3
Deprecated==1.2.14
Flask==2.3.2
Flask-Cors==3.0.10
Expand Down