Skip to content

Commit 8542d12

Browse files
committed
Update sqlite_database_structure.md
1 parent efba0ad commit 8542d12

File tree

1 file changed

+70
-55
lines changed

1 file changed

+70
-55
lines changed

docs/sqlite_database_structure.md

+70-55
Original file line numberDiff line numberDiff line change
@@ -2,79 +2,94 @@ Note: this documentation was generated automatically from the tasks.py code usin
22

33

44
**activity table**
5-
|Column|Description|
6-
|-|-|
7-
|event_name|Event type that occurred like 'guild_joined', 'application_command_used', 'app_opened' etc.|
8-
|day|The day (YYYY-MM-DD format) when the event occurred.|
9-
|hour|The hour (0-23) when the event occurred.|
10-
|occurence_count|Number of times the event occurred during the given hour.|
11-
|associated_channel_id|Channel identifier associated with the event, if applicable.|
12-
|associated_guild_id|Guild identifier associated with the event, if applicable.|
13-
|associated_user_id|User identifier associated with the event, if applicable.|
14-
|extra_field_1|Additional data related to the event. The content varies depending on the event_name.|
15-
|extra_field_2|Additional data related to the event. The content varies depending on the event_name.|
5+
6+
|Column|Description
7+
|---|---|
8+
|event_name|The kind of activity event. Examples of events include 'message_sent', 'guild_joined', 'application_command_used', etc.|
9+
|day|The date when the event occurred, represented in 'YYYY-MM-DD' format.|
10+
|hour|The hour when the event occurred (in 24-hour format).|
11+
|occurence_count|The number of times the event occurred.|
12+
|associated_channel_id|The channel ID associated with the event (if applicable).|
13+
|associated_guild_id|The guild ID associated with the event (if applicable).|
14+
|associated_user_id|The user ID associated with the event (if applicable).|
15+
|extra_field_1|Extra data associated with the event, its use varies depending on the event type.|
16+
|extra_field_2|Another field for extra data associated with the event, its use varies depending on the event type.|
17+
1618

1719
**dm_channels_data table**
20+
1821
|Column|Description|
19-
|-|-|
20-
|channel_id|ID assigned to the Direct Message (DM).|
21-
|dm_user_id|User ID of the user involved in the DM.|
22-
|user_name|Username of the user involved in the DM.|
23-
|display_name|Display name of the user involved in the DM.|
24-
|user_avatar_url|URL of the user's avatar.|
25-
|total_message_count|Total number of messages in the DM conversation.|
26-
|total_voice_channel_duration|Total duration of voice calls in the DM conversation, if any.|
27-
|sentiment_score|Score indicating the sentiment of the conversation (positive, negative, neutral) based on message content, if available.|
22+
|---|---|
23+
|channel_id|The unique identifier of the Direct Message (DM) channel.|
24+
|dm_user_id|The unique identifier of the user in the DM channel.|
25+
|user_name|The username of the user in the DM channel.|
26+
|display_name|The display name of the user in the DM channel.|
27+
|user_avatar_url|The URL of the user's avatar.|
28+
|total_message_count|The total number of messages in the DM channel.|
29+
|total_voice_channel_duration|The total duration of voice channel usage in the DM.|
30+
|sentiment_score|The sentiment score associated with the DM channel.|
31+
2832

2933
**guild_channels_data table**
34+
3035
|Column|Description|
31-
|-|-|
32-
|channel_id|Channel ID associated with the guild.|
33-
|guild_id|ID assigned to the guild.|
34-
|channel_name|Name of the channel in the guild.|
35-
|total_message_count|Total number of messages in the channel.|
36-
|total_voice_channel_duration|Total duration of voice calls in the channel, if any.|
36+
|---|---|
37+
|channel_id|The unique identifier of the guild channel.|
38+
|guild_id|The unique identifier of the guild.|
39+
|channel_name|The name of the channel.|
40+
|total_message_count|The total number of messages in the guild channel.|
41+
|total_voice_channel_duration|The total duration of voice channel usage in the guild.|
42+
3743

3844
**guilds table**
45+
3946
|Column|Description|
40-
|-|-|
41-
|guild_id|ID assigned to the guild.|
42-
|guild_name|Name of the guild.|
43-
|total_message_count|Total number of messages sent within the guild.|
47+
|---|---|
48+
|guild_id|The unique identifier of the guild.|
49+
|guild_name|The name of the guild.|
50+
|total_message_count|The total number of messages in the guild.|
51+
4452

4553
**payments table**
54+
4655
|Column|Description|
47-
|-|-|
48-
|payment_id|ID assigned to the payment transaction.|
49-
|payment_date|Date (YYYY-MM-DD format) of the payment.|
50-
|payment_amount|Amount of the payment.|
51-
|payment_currency|Currency of the payment.|
52-
|payment_description|Description of the payment, if any.|
56+
|---|---|
57+
|payment_id|The unique identifier of the payment.|
58+
|payment_date|The date when the payment was made, represented in 'YYYY-MM-DD' format.|
59+
|payment_amount|The amount of the payment.|
60+
|payment_currency|The currency of the payment.|
61+
|payment_description|A description of the payment.|
62+
5363

5464
**voice_sessions table**
65+
5566
|Column|Description|
56-
|-|-|
57-
|channel_id|Channel ID where the voice session occurred.|
58-
|guild_id|Guild ID where the voice session occurred, if applicable.|
59-
|duration_mins|Duration of the voice session in minutes.|
60-
|started_date|Start date and time (YYYY-MM-DD HH:MM:SS format) of the voice session.|
61-
|ended_date|End date and time (YYYY-MM-DD HH:MM:SS format) of the voice session.|
67+
|---|---|
68+
|channel_id|The unique identifier of the channel where the voice session took place.|
69+
|guild_id|The unique identifier of the guild where the voice session took place.|
70+
|duration_mins|The duration of the voice session in minutes.|
71+
|started_date|The date and time when the voice session started.|
72+
|ended_date|The date and time when the voice session ended.|
73+
6274

6375
**sessions table**
76+
6477
|Column|Description|
65-
|-|-|
66-
|duration_mins|Duration of the session in minutes.|
67-
|started_date|Start date and time (YYYY-MM-DD HH:MM:SS format) of the session.|
68-
|ended_date|End date and time (YYYY-MM-DD HH:MM:SS format) of the session.|
69-
|device_os|Operating system of the device used in the session.|
78+
|---|---|
79+
|duration_mins|The duration of the session in minutes.|
80+
|started_date|The date and time when the session started.|
81+
|ended_date|The date and time when the session ended.|
82+
|device_os|The operating system of the device used in the session.|
83+
7084

7185
**package_data table**
86+
7287
|Column|Description|
73-
|-|-|
74-
|package_id|ID assigned to the package.|
75-
|package_version|Version of the package.|
76-
|package_owner_id|User ID of the package owner.|
77-
|package_owner_name|Username of the package owner.|
78-
|package_owner_display_name|Display name of the package owner.|
79-
|package_owner_avatar_url|URL of the package owner's avatar.|
80-
|package_is_partial|Indicates if the package is partial (1 for Yes and 0 for No).|
88+
|---|---|
89+
|package_id|The unique identifier of the data package.|
90+
|package_version|The version of the data package.|
91+
|package_owner_id|The unique identifier of the owner of the data package.|
92+
|package_owner_name|The name of the owner of the data package.|
93+
|package_owner_display_name|The display name of the owner of the data package.|
94+
|package_owner_avatar_url|The URL of the owner's avatar.|
95+
|package_is_partial|A boolean value indicating whether the data package is partial (1) or complete (0).|

0 commit comments

Comments
 (0)