1
+ -- Create two users with two respective user_settings, one DM channel, and add both users to that DM channel.
2
+ BEGIN ;
3
+ INSERT INTO user_settings (
4
+ index, afk_timeout, allow_accessibility_detection, animate_emoji, animate_stickers,
5
+ contact_sync_enabled, convert_emoticons, custom_status, default_guilds_restricted,
6
+ detect_platform_accounts, developer_mode, disable_games_tab, enable_tts_command,
7
+ explicit_content_filter, friend_source_flags, gateway_connected, gif_auto_play,
8
+ guild_folders, guild_positions, inline_attachment_media, inline_embed_media,
9
+ locale, message_display_compact, native_phone_integration_enabled, render_embeds,
10
+ render_reactions, restricted_guilds, show_current_game, status,
11
+ stream_notifications_enabled, theme, timezone_offset
12
+ )
13
+ VALUES
14
+ (7250861145186111495 , 300 , true, true, 1 , true, true, ' Working on project' , false, true, true, false,
15
+ true, 2 , ' friends' , true, true, ' folder_data' , ' positions_data' , true, true,
16
+ ' en-US' , false, true, true, true, ' restricted_guilds_data' , true, ' online' , true,
17
+ ' dark' , - 7 ),
18
+ (7250861145186111496 , 600 , false, false, 0 , false, false, ' Available' , false, false, false, true,
19
+ false, 0 , NULL , false, false, NULL , NULL , false, false, ' fr-FR' , true, false,
20
+ false, false, NULL , false, ' away' , false, ' light' , 1 );
21
+
22
+ INSERT INTO users (
23
+ id, username, discriminator, avatar, accent_color, banner, theme_colors, pronouns,
24
+ phone, desktop, mobile, premium, premium_type, bot, bio, system, nsfw_allowed,
25
+ mfa_enabled, webauthn_enabled, totp_secret, totp_last_ticket, created_at,
26
+ premium_since, verified, disabled, deleted, email, flags, public_flags,
27
+ purchased_flags, premium_usage_flags, rights, data, fingerprints, extended_settings,
28
+ settings_index, relevant_events
29
+ )
30
+ VALUES
31
+ (7250861145186111490 , ' john_doe_private_channels' , ' 1296' , ' avatar1.png' , 16777215 , ' banner1.png' , NULL ,
32
+ ' he/him' , ' +1234567890' , true, false, true, 1 , false, ' This is my bio' , false,
33
+ true, true, true, ' secret123' , ' ticket456' , ' 2024-01-01 12:00:00' ,
34
+ ' 2024-01-02 12:00:00' , true, false, false,
' [email protected] ' ,
100 ,
10 ,
35
+ 5 , 1 , 100 , ' {"hash": "$2b$14$AbcNYTh5GcOYaB4v4P7OWeGW0hQkd/ysvmY4fGyIA/tyEnK0chGNu", "valid_tokens_since": "2024-10-07T20:22:06.162070616Z"}' , ' fingerprint1' , ' {"setting": "value"}' , 7250861145186111495 ,
36
+ ' []' ),
37
+ (7250861145186111491 , ' jane_smith_private_channels' , ' 5678' , ' avatar2.png' , 123456 , NULL , NULL ,
38
+ ' she/her' , NULL , false, true, false, 0 , false, ' ' , false,
39
+ false, false, false, NULL , NULL , ' 2024-02-01 15:30:00' ,
40
+ NULL , false, false, false,
' [email protected] ' ,
50 ,
5 ,
41
+ 0 , 0 , 50 , ' {"hash": "$2b$14$AbcNYTh5GcOYaB4v4P7OWeGW0hQkd/ysvmY4fGyIA/tyEnK0chGNu", "valid_tokens_since": "2024-10-07T20:22:06.162070616Z"}' , ' fingerprint2' , ' {"setting": "another_value"}' , 7250861145186111496 ,
42
+ ' []' );
43
+ COMMIT ;
44
+
45
+ INSERT INTO channels (
46
+ id, created_at, name, icon, type, last_message_id, guild_id, parent_id, owner_id, last_pin_timestamp,
47
+ default_auto_archive_duration, " position" , permission_overwrites, video_quality_mode, bitrate, user_limit, nsfw,
48
+ rate_limit_per_user, topic, retention_policy_id, flags, default_thread_rate_limit_per_user
49
+ )
50
+ VALUES (
51
+ 7250859537236758528 , current_timestamp , NULL , NULL , 1 , NULL , NULL , NULL ,
52
+ NULL , NULL , NULL , NULL , NULL ,NULL , NULL , NULL , false, 0 , NULL , NULL ,
53
+ 0 , 0
54
+ );
55
+
56
+ INSERT INTO recipients (id, channel_id, user_id, closed) VALUES
57
+ (7250860729446699008 , 7250859537236758528 , 7250861145186111490 , false),
58
+ (7250861145186111494 , 7250859537236758528 , 7250861145186111491 , false);
0 commit comments