Skip to content
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

Update dependency pandas to v2.1.0 #20

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
102 changes: 51 additions & 51 deletions docs/sqlite_database_structure.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,85 +4,85 @@ Note: this documentation was generated automatically from the tasks.py code usin
**activity table**

|Column|Description|
|---|---|
|event_name|Identification of activity event. This may include 'message_sent', 'guild_joined', 'application_command_used', etc. |
|day|The day the described event occurred, format is 'YYYY-MM-DD'. |
|hour|The hour the event occurred, expressed in a 24-hour format.|
|occurence_count|How many times the event has occurred.|
|associated_channel_id|The unique ID of the channel associated with the event.|
|associated_guild_id|The Unique ID of the guild (server) associated with the event.|
|associated_user_id|The unique user ID associated with the event.|
|extra_field_1|Additional details about the event. The values vary depending on the given event.|
|extra_field_2|Additional details about the event. The values vary depending on the given event.|
|--- |--- |
|event_name|A unique identifier string representing the type of event, e.g., 'message_sent', 'guild_joined'.|
|day|The day when the event occurred in the format '%Y-%m-%d', e.g., '2022-01-01'.|
|hour|The hour of the day (24-hour format) when the event occurred, e.g., 15 for 3:00 PM.|
|occurrence_count|The total number of occurrences for the type of event in the particular hour of the day.|
|associated_channel_id|The unique identifier of the channel associated with the event if applicable, otherwise None.|
|associated_guild_id|The unique identifier of the guild associated with the event if applicable, otherwise None.|
|associated_user_id|The unique identifier of the user associated with the event if applicable, otherwise None.|
|extra_field_1|Additional information associated with the event if applicable, otherwise None.|
|extra_field_2|Further additional information associated with the event if applicable, otherwise None.|

**dm_channels_data table**

|Column|Description|
|---|---|
|channel_id|Unique ID of the channel where direct message happened.|
|dm_user_id|Unique ID of the user involved in the direct message.|
|user_name|Username of the user involved in the direct message.|
|display_name|Display name of the user involved in the direct message.|
|user_avatar_url|URL of the user's avatar.|
|total_message_count|Total count of messages in the direct message.|
|total_voice_channel_duration|Total duration of voice channel usage in minutes.|
|sentiment_score|Sentiment score of messages in the direct message (ranges from -1 to 1, from negative to positive sentiment).|
|--- |--- |
|channel_id|Unique identifier of the direct message channel.|
|dm_user_id|Unique identifier of the user involved in the direct message conversation.|
|user_name|Username of the user involved in the direct message conversation.|
|display_name|Display name of the user involved in the direct message conversation.|
|user_avatar_url|URL of the avatar image for the user involved in the direct message conversation.|
|total_message_count|Total number of messages exchanged in the direct message conversation.|
|total_voice_channel_duration|Cumulative duration spent in voice channels.|
|sentiment_score|Overall sentiment score for the direct message conversation.|

**guild_channels_data table**

|Column|Description|
|---|---|
|channel_id|Unique ID of the guild channel.|
|guild_id|Unique ID of the guild (server).|
|--- |--- |
|channel_id|Unique identifier of the guild channel.|
|guild_id|Unique identifier of the guild where the channel is located.|
|channel_name|Name of the guild channel.|
|total_message_count|Total count of messages in the guild channel.|
|total_voice_channel_duration|Total duration of voice channel usage in the guild channel in minutes.|
|total_message_count|Total number of messages exchanged in the guild channel.|
|total_voice_channel_duration|Cumulative duration spent in voice channels in the guild.|

**guilds table**

|Column|Description|
|---|---|
|guild_id|Unique ID of the guild.|
|--- |--- |
|guild_id|Unique identifier of the guild.|
|guild_name|Name of the guild.|
|total_message_count|Total count of messages in the guild.|
|total_message_count|Total number of messages exchanged in the guild.|

**payments table**

|Column|Description|
|---|---|
|payment_id|Unique ID of the payment transaction.|
|payment_date|Date of the payment done, format is 'YYYY-MM-DD'.|
|payment_amount|Amount of payment done.|
|payment_currency|Currency of the payment done.|
|payment_description|Description of the payment done.|
|--- |--- |
|payment_id|Unique identifier of the payment.|
|payment_date|Date when the payment was made in the format '%Y-%m-%d'.|
|payment_amount|Amount of the payment.|
|payment_currency|Currency in which the payment was made.|
|payment_description|Description of the payment.

**voice_sessions table**

|Column|Description|
|---|---|
|channel_id|Unique ID of the channel where voice session was held.|
|guild_id|Unique ID of the guild (server), of which channel the voice session was held.|
|--- |--- |
|channel_id|Unique identifier of the voice channel occupied during the session.|
|guild_id|Unique identifier of the guild where the voice session takes place.|
|duration_mins|Duration of the voice session in minutes.|
|started_date|Start date and time of the voice session.|
|ended_date|End date and time of the voice session.|
|started_date|When the voice session started (datetime format).|
|ended_date|When the voice session ended (datetime format).

**sessions table**

|Column|Description|
|---|---|
|duration_mins|Total duration of the user's active session in minutes.|
|started_date|Start date and time of the user's session.|
|ended_date|End date and time of the user's session.|
|device_os|Operating system of the device from which session was active.|
|--- |--- |
|duration_mins|Total duration of the session in minutes.|
|started_date|When the session started (datetime format).|
|ended_date|When the session ended (datetime format).|
|device_os|Operating system of the device used in the session.

**package_data table**

|Column|Description|
|---|---|
|package_id|Unique ID of the data package.|
|package_version|Version of the data package.|
|package_owner_id|Unique ID of the owner of the data package.|
|package_owner_name|Username 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 owner's avatar.|
|package_is_partial|Indicates whether the package is partial (1 - Yes, 0 - No).|
|--- |--- |
|package_id|Unique identifier of the package.|
|package_version|Version of the package. Typically '0.1.0'.|
|package_owner_id|Unique identifier of the owner of the package.|
|package_owner_name|Username of the package owner.|
|package_owner_display_name|Display name of the package owner.|
|package_owner_avatar_url|URL of the avatar image for the package owner.|
|package_is_partial|Indicates if the package is partial (1 if yes, 0 if no).
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ numpy==1.24.3
ordered-set==4.1.0
orjson==3.8.14
packaging==23.1
pandas==2.0.1
pandas==2.1.0
prompt-toolkit==3.0.38
psycopg2-binary==2.9.6
pycodestyle==2.10.0
Expand Down