|
1 | | -create table if not exists user_settings |
| 1 | +CREATE SEQUENCE user_settings_index_seq; |
| 2 | + |
| 3 | +CREATE TABLE IF NOT EXISTS user_settings |
2 | 4 | ( |
3 | | - `index` bigint unsigned auto_increment |
4 | | - primary key, |
5 | | - afk_timeout int null, |
6 | | - allow_accessibility_detection tinyint null, |
7 | | - animate_emoji tinyint null, |
8 | | - animate_stickers int null, |
9 | | - contact_sync_enabled tinyint null, |
10 | | - convert_emoticons tinyint null, |
11 | | - custom_status text null, |
12 | | - default_guilds_restricted tinyint null, |
13 | | - detect_platform_accounts tinyint null, |
14 | | - developer_mode tinyint null, |
15 | | - disable_games_tab tinyint null, |
16 | | - enable_tts_command tinyint null, |
17 | | - explicit_content_filter int null, |
18 | | - friend_source_flags text null, |
19 | | - gateway_connected tinyint null, |
20 | | - gif_auto_play tinyint null, |
21 | | - guild_folders text null, |
22 | | - guild_positions text null, |
23 | | - inline_attachment_media tinyint null, |
24 | | - inline_embed_media tinyint null, |
25 | | - locale varchar(255) null, |
26 | | - message_display_compact tinyint null, |
27 | | - native_phone_integration_enabled tinyint null, |
28 | | - render_embeds tinyint null, |
29 | | - render_reactions tinyint null, |
30 | | - restricted_guilds text null, |
31 | | - show_current_game tinyint null, |
32 | | - status varchar(255) null, |
33 | | - stream_notifications_enabled tinyint null, |
34 | | - theme varchar(255) null, |
35 | | - timezone_offset int null |
| 5 | + index numeric(20, 0) not null default nextval('user_settings_index_seq') constraint chk_index_range check (index >= 0 and index <= 18446744073709551615) primary key, |
| 6 | + afk_timeout int null, |
| 7 | + allow_accessibility_detection smallint null, |
| 8 | + animate_emoji smallint null, |
| 9 | + animate_stickers int null, |
| 10 | + contact_sync_enabled smallint null, |
| 11 | + convert_emoticons smallint null, |
| 12 | + custom_status text null, |
| 13 | + default_guilds_restricted smallint null, |
| 14 | + detect_platform_accounts smallint null, |
| 15 | + developer_mode smallint null, |
| 16 | + disable_games_tab smallint null, |
| 17 | + enable_tts_command smallint null, |
| 18 | + explicit_content_filter int null, |
| 19 | + friend_source_flags text null, |
| 20 | + gateway_connected smallint null, |
| 21 | + gif_auto_play smallint null, |
| 22 | + guild_folders text null, |
| 23 | + guild_positions text null, |
| 24 | + inline_attachment_media smallint null, |
| 25 | + inline_embed_media smallint null, |
| 26 | + locale varchar(255) null, |
| 27 | + message_display_compact smallint null, |
| 28 | + native_phone_integration_enabled smallint null, |
| 29 | + render_embeds smallint null, |
| 30 | + render_reactions smallint null, |
| 31 | + restricted_guilds text null, |
| 32 | + show_current_game smallint null, |
| 33 | + status varchar(255) null, |
| 34 | + stream_notifications_enabled smallint null, |
| 35 | + theme varchar(255) null, |
| 36 | + timezone_offset int null |
36 | 37 | ); |
37 | 38 |
|
0 commit comments