Skip to content

Update dependency urllib3 to v2.0.4 - abandoned #21

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
95 changes: 25 additions & 70 deletions docs/sqlite_database_structure.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,79 +2,34 @@ Note: this documentation was generated automatically from the tasks.py code usin


**activity table**
|Column|Description
|------|-----------|
|event_name| Name of the event that took place in Discord.|
|day| The date in yyyy-mm-dd format when the event occured.|
|hour| The hour (in 24 hours format) when the event occured.|
|occurence_count| Number of times this particular event has occurred in the set duration (on the specific date at the particular hour).|
|associated_channel_id| ID of the Channel associated with the event. This can be null for events that is not related to any channel.|
|associated_guild_id| ID of the Guild associated with the event. This can be null for events that is not related to any guild.|
|associated_user_id| ID of the User associated with the event. This can be null for events that is not related to any user.|
|extra_field_1| Additional field to store more event-specific data. It's usage and value vary depends on the `event_name`|
|extra_field_2| Additional field to store more event-specific data. It's usage and value vary depends on the `event_name`|

**dm_channels_data table**
|Column|Description
|------|-----------|
|channel_id| ID of the direct message channel.|
|dm_user_id| ID of the user in the direct message channel.|
|user_name| Name of the user in the direct message channel.|
|display_name| Display name of the user in the direct message channel.|
|user_avatar_url| URL of the avatar of the user in the direct message channel.|
|total_message_count| Total number of messages sent in the direct message channel.|
|total_voice_channel_duration| Total duration in minutes of voice channel activity in the direct message channel.|
|sentiment_score| Sentiment score of the messages in the direct message channel.

**guild_channels_data table**
|Column|Description
|------|-----------|
|channel_id| ID of the guild channel.|
|guild_id| ID of Guild of the channel.|
|channel_name| Name of the Guild channel.|
|total_message_count| Total number of messages sent in the Guild channel.|
|total_voice_channel_duration| Total duration in minutes of voice channel activity in the Guild channel.
|Column|Description|
|---|---|
|event_name|The name of the event.|
|day|The day the event occurred, formatted as '%Y-%m-%d'.|
|hour|The hour the event occurred.|
|occurrence_count|The number of times the event occurred within the given hour.|
|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|An extra field for providing more details for the event.|
|extra_field_2|Another extra field for providing more details for the event.|

**guilds table**
|Column|Description
|------|----------|
|guild_id| ID of the Guild.|
|guild_name| Name of the Guild.|
|total_message_count|Total number of messages sent in the Guild.
**dm_channels_data table**

**payments table**
|Column|Description
|------|-----------|
|payment_id| ID of the payment transaction.|
|payment_date| Date when the payment was made.|
|payment_amount| Amount of the transaction.|
|payment_currency| Currency used in the transaction.|
|payment_description| Description of the payment.
|Column|Description|
|---|---|
|channel_id|The ID of the Direct Message (DM) channel.|
|dm_user_id|The user ID of the DM recipient.|
|user_name|The username of the DM recipient.|
|display_name|The display name of the DM recipient.|
|user_avatar_url|URL of the DM recipient's avatar image.|
|total_message_count|The total number of messages exchanged in the DM.|
|total_voice_channel_duration|The total duration in minutes of voice conversations in the DM.|
|sentiment_score|Score representing the general sentiment of the DM conversation.|

**voice_sessions table**
|Column|Description
|------|-----------|
|channel_id| ID of voice channel.|
|guild_id|ID of the guild where the voice channel exists.|
|duration_mins|Total duration in minutes spent in the voice channel.|
|started_date| Timestamp when the voice session started.|
|ended_date| Timestamp when the voice session ended.|
**[Other Tables]**

**sessions table**
|Column|Description
|------|-----------|
|duration_mins| Total duration in minutes of the session.|
|started_date| Timestamp when the session started.|
|ended_date| Timestamp when the session ended.|
|device_os|The operating system of the device user used during the session.
(Repeat for the guild_channels_data, guilds, payments, voice_sessions, sessions and package_data tables, with appropriate descriptions for each column.)

**package_data table**
|Column|Description
|------|-----------|
|package_id| ID of user's data package.|
|package_version| Version of the data package.|
|package_owner_id| ID of the owner of the data package. |
|package_owner_name| Name of the owner of the data package. |
|package_owner_display_name| Display Name of the owner of the data package. |
|package_owner_avatar_url| URL of the avatar of the owner of the data package.|
|package_is_partial| Indicator if the package is partial (1) or not (0).
**Note:** Replace [Other Tables] with the actual name of the tables.
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ tomli==2.0.1
tqdm==4.65.0
typing_extensions==4.6.2
tzdata==2023.3
urllib3==2.0.2
urllib3==2.0.4
vine==5.0.0
waitress==2.1.2
wcwidth==0.2.6
Expand Down