diff --git a/cmd/helper_scripts/mkiblseed b/cmd/helper_scripts/mkiblseed index fcad37a9..88e28012 100755 --- a/cmd/helper_scripts/mkiblseed +++ b/cmd/helper_scripts/mkiblseed @@ -2,7 +2,7 @@ CDN_PATH=/silverpelt/cdn/ibl/dev GIT_PATH=~/Popplio/staging/data -ibl db new seed ${GIT_PATH}/seed.iblseed --db infinity --backup-tables automated_vote_resets,bot_whitelist,changelogs,partner_types,staff_template_types,staff_templates,shop_items,shop_item_benefits,staff_positions --extensions uuid-ossp\|citext\|semver,https://github.com/theory/pg-semver +ibl db new seed ${GIT_PATH}/seed.iblseed --db infinity --backup-tables automated_vote_resets,bot_whitelist,changelogs,partner_types,staff_template_types,staff_templates,shop_items,shop_item_benefits,staff_positions,blacklisted_words --extensions uuid-ossp\|citext\|semver,https://github.com/theory/pg-semver cp ${GIT_PATH}/seed.iblseed ${CDN_PATH}/seed.iblseed ibl db gen-ci-schema ${GIT_PATH}/seed-ci.json diff --git a/data/seed-ci.json b/data/seed-ci.json index da9cf8eb..822d6ecb 100644 --- a/data/seed-ci.json +++ b/data/seed-ci.json @@ -1 +1 @@ -[{"table_name":"__dp_mfa","column_name":"user_id","type":"text","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"__dp_mfa","column_name":"secret","type":"text","nullable":true,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"__dp_mfa","column_name":"domain","type":"text","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"__dp_mfa","column_name":"validated","type":"boolean","nullable":true,"array":false,"default_sql":"false","default_val":false,"secret":false},{"table_name":"alerts","column_name":"itag","type":"uuid","nullable":false,"array":false,"default_sql":"uuid_generate_v4()","default_val":"cbb55bfe-6c2e-4ee9-bbf0-25c90a4f954e","secret":false},{"table_name":"alerts","column_name":"user_id","type":"text","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"alerts","column_name":"url","type":"text","nullable":true,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"alerts","column_name":"message","type":"text","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"alerts","column_name":"type","type":"text","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"alerts","column_name":"alert_data","type":"jsonb","nullable":false,"array":false,"default_sql":"'{}'::jsonb","default_val":{},"secret":false},{"table_name":"alerts","column_name":"icon","type":"text","nullable":true,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"alerts","column_name":"title","type":"text","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"alerts","column_name":"priority","type":"integer","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"alerts","column_name":"created_at","type":"timestamp with time zone","nullable":false,"array":false,"default_sql":"now()","default_val":"2024-06-09T15:17:14.897838Z","secret":false},{"table_name":"alerts","column_name":"acked","type":"boolean","nullable":false,"array":false,"default_sql":"false","default_val":false,"secret":false},{"table_name":"apps","column_name":"itag","type":"uuid","nullable":false,"array":false,"default_sql":"uuid_generate_v4()","default_val":"2b6df57c-7b84-4448-b361-23612f6810df","secret":false},{"table_name":"apps","column_name":"app_id","type":"text","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"apps","column_name":"user_id","type":"text","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"apps","column_name":"position","type":"text","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"apps","column_name":"review_feedback","type":"text","nullable":true,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"apps","column_name":"created_at","type":"timestamp with time zone","nullable":false,"array":false,"default_sql":"now()","default_val":"2024-06-09T15:17:14.898791Z","secret":false},{"table_name":"apps","column_name":"questions","type":"jsonb","nullable":false,"array":false,"default_sql":"'{}'::jsonb","default_val":{},"secret":false},{"table_name":"apps","column_name":"answers","type":"jsonb","nullable":false,"array":false,"default_sql":"'{}'::jsonb","default_val":{},"secret":false},{"table_name":"apps","column_name":"state","type":"text","nullable":false,"array":false,"default_sql":"'pending'::text","default_val":"pending","secret":false},{"table_name":"automated_vote_resets","column_name":"id","type":"uuid","nullable":false,"array":false,"default_sql":"uuid_generate_v4()","default_val":"364f4d6a-c629-4904-a1e4-b5c207864e33","secret":false},{"table_name":"automated_vote_resets","column_name":"created_at","type":"timestamp with time zone","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"blogs","column_name":"itag","type":"uuid","nullable":false,"array":false,"default_sql":"uuid_generate_v4()","default_val":"816579a6-b5d8-4912-852b-63fb9f927f9c","secret":false},{"table_name":"blogs","column_name":"slug","type":"text","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"blogs","column_name":"title","type":"text","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"blogs","column_name":"description","type":"text","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"blogs","column_name":"user_id","type":"text","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"blogs","column_name":"created_at","type":"timestamp with time zone","nullable":false,"array":false,"default_sql":"now()","default_val":"2024-06-09T15:17:14.89982Z","secret":false},{"table_name":"blogs","column_name":"content","type":"text","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"blogs","column_name":"draft","type":"boolean","nullable":false,"array":false,"default_sql":"true","default_val":true,"secret":false},{"table_name":"blogs","column_name":"tags","type":"text","nullable":false,"array":true,"default_sql":null,"default_val":null,"secret":false},{"table_name":"bot_whitelist","column_name":"bot_id","type":"text","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"bot_whitelist","column_name":"reason","type":"text","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"bot_whitelist","column_name":"created_at","type":"timestamp with time zone","nullable":false,"array":false,"default_sql":"now()","default_val":"2024-06-09T15:17:14.900271Z","secret":false},{"table_name":"bot_whitelist","column_name":"user_id","type":"text","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"bots","column_name":"bot_id","type":"text","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"bots","column_name":"client_id","type":"text","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"bots","column_name":"tags","type":"text","nullable":false,"array":true,"default_sql":null,"default_val":null,"secret":false},{"table_name":"bots","column_name":"prefix","type":"text","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"bots","column_name":"owner","type":"text","nullable":true,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"bots","column_name":"short","type":"text","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"bots","column_name":"long","type":"text","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"bots","column_name":"library","type":"text","nullable":false,"array":false,"default_sql":"'custom'::text","default_val":"custom","secret":false},{"table_name":"bots","column_name":"extra_links","type":"jsonb","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"bots","column_name":"nsfw","type":"boolean","nullable":false,"array":false,"default_sql":"false","default_val":false,"secret":false},{"table_name":"bots","column_name":"premium","type":"boolean","nullable":false,"array":false,"default_sql":"false","default_val":false,"secret":false},{"table_name":"bots","column_name":"servers","type":"integer","nullable":false,"array":false,"default_sql":"0","default_val":0,"secret":false},{"table_name":"bots","column_name":"shards","type":"integer","nullable":false,"array":false,"default_sql":"0","default_val":0,"secret":false},{"table_name":"bots","column_name":"users","type":"integer","nullable":false,"array":false,"default_sql":"0","default_val":0,"secret":false},{"table_name":"bots","column_name":"votes","type":"integer","nullable":false,"array":false,"default_sql":"0","default_val":0,"secret":false},{"table_name":"bots","column_name":"clicks","type":"integer","nullable":false,"array":false,"default_sql":"0","default_val":0,"secret":false},{"table_name":"bots","column_name":"invite_clicks","type":"integer","nullable":false,"array":false,"default_sql":"0","default_val":0,"secret":false},{"table_name":"bots","column_name":"invite","type":"text","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"bots","column_name":"type","type":"text","nullable":false,"array":false,"default_sql":"'pending'::text","default_val":"pending","secret":false},{"table_name":"bots","column_name":"vote_banned","type":"boolean","nullable":false,"array":false,"default_sql":"false","default_val":false,"secret":false},{"table_name":"bots","column_name":"start_premium_period","type":"timestamp with time zone","nullable":false,"array":false,"default_sql":"now()","default_val":"2024-06-09T15:17:14.902474Z","secret":false},{"table_name":"bots","column_name":"premium_period_length","type":"interval","nullable":false,"array":false,"default_sql":"'12:00:00'::interval","default_val":{"Microseconds":43200000000,"Days":0,"Months":0,"Status":2},"secret":false},{"table_name":"bots","column_name":"cert_reason","type":"text","nullable":true,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"bots","column_name":"uptime","type":"bigint","nullable":false,"array":false,"default_sql":"0","default_val":0,"secret":false},{"table_name":"bots","column_name":"total_uptime","type":"bigint","nullable":false,"array":false,"default_sql":"0","default_val":0,"secret":false},{"table_name":"bots","column_name":"claimed_by","type":"text","nullable":true,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"bots","column_name":"approval_note","type":"text","nullable":false,"array":false,"default_sql":"'No note'::text","default_val":"No note","secret":false},{"table_name":"bots","column_name":"created_at","type":"timestamp with time zone","nullable":false,"array":false,"default_sql":"now()","default_val":"2024-06-09T15:17:14.903253Z","secret":false},{"table_name":"bots","column_name":"unique_clicks","type":"text","nullable":false,"array":true,"default_sql":"'{}'::text[]","default_val":{"Elements":null,"Dimensions":null,"Status":2},"secret":true},{"table_name":"bots","column_name":"api_token","type":"text","nullable":false,"array":false,"default_sql":"uuid_generate_v4()","default_val":"ea852328-41f5-4a6d-889a-a7b35a7d5889","secret":true},{"table_name":"bots","column_name":"last_claimed","type":"timestamp with time zone","nullable":true,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"bots","column_name":"team_owner","type":"uuid","nullable":true,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"bots","column_name":"shard_list","type":"bigint","nullable":false,"array":true,"default_sql":"'{}'::bigint[]","default_val":{"Elements":null,"Dimensions":null,"Status":2},"secret":false},{"table_name":"bots","column_name":"captcha_opt_out","type":"boolean","nullable":false,"array":false,"default_sql":"false","default_val":false,"secret":false},{"table_name":"bots","column_name":"uptime_last_checked","type":"timestamp with time zone","nullable":false,"array":false,"default_sql":"now()","default_val":"2024-06-09T15:17:14.904093Z","secret":false},{"table_name":"bots","column_name":"itag","type":"uuid","nullable":false,"array":false,"default_sql":"uuid_generate_v4()","default_val":"0fa530c5-81be-488a-8976-9ae80f135831","secret":false},{"table_name":"bots","column_name":"flags","type":"text","nullable":true,"array":true,"default_sql":"'{}'::text[]","default_val":{"Elements":null,"Dimensions":null,"Status":2},"secret":false},{"table_name":"bots","column_name":"last_stats_post","type":"timestamp with time zone","nullable":true,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"bots","column_name":"vanity_ref","type":"uuid","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"bots","column_name":"updated_at","type":"timestamp with time zone","nullable":false,"array":false,"default_sql":"now()","default_val":"2024-06-09T15:17:14.90458Z","secret":false},{"table_name":"bots","column_name":"cache_server_uninvitable","type":"text","nullable":true,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"cache_server_bots","column_name":"guild_id","type":"text","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"cache_server_bots","column_name":"bot_id","type":"text","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"cache_server_bots","column_name":"created_at","type":"timestamp with time zone","nullable":false,"array":false,"default_sql":"now()","default_val":"2024-06-09T15:17:14.904854Z","secret":false},{"table_name":"cache_server_bots","column_name":"added","type":"integer","nullable":false,"array":false,"default_sql":"0","default_val":0,"secret":false},{"table_name":"cache_server_migrations","column_name":"guild_id","type":"text","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"cache_server_migrations","column_name":"migration_id","type":"text","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"cache_server_migrations","column_name":"state","type":"text","nullable":false,"array":true,"default_sql":null,"default_val":null,"secret":false},{"table_name":"cache_server_migrations","column_name":"created_at","type":"timestamp with time zone","nullable":false,"array":false,"default_sql":"now()","default_val":"2024-06-09T15:17:14.905256Z","secret":false},{"table_name":"cache_server_migrations_done","column_name":"migration_id","type":"text","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"cache_server_migrations_done","column_name":"created_at","type":"timestamp with time zone","nullable":false,"array":false,"default_sql":"now()","default_val":"2024-06-09T15:17:14.905434Z","secret":false},{"table_name":"cache_server_migrations_done","column_name":"states","type":"text","nullable":false,"array":true,"default_sql":"'{}'::text[]","default_val":{"Elements":null,"Dimensions":null,"Status":2},"secret":false},{"table_name":"cache_server_oauth_md","column_name":"owner_id","type":"text","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"cache_server_oauths","column_name":"user_id","type":"text","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"cache_server_oauths","column_name":"access_token","type":"text","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"cache_server_oauths","column_name":"refresh_token","type":"text","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"cache_server_oauths","column_name":"expires_at","type":"timestamp with time zone","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"cache_server_oauths","column_name":"bot","type":"text","nullable":false,"array":false,"default_sql":"'doxycycline'::text","default_val":"doxycycline","secret":false},{"table_name":"cache_servers","column_name":"guild_id","type":"text","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"cache_servers","column_name":"bots_role","type":"text","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"cache_servers","column_name":"system_bots_role","type":"text","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"cache_servers","column_name":"logs_channel","type":"text","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"cache_servers","column_name":"staff_role","type":"text","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"cache_servers","column_name":"welcome_channel","type":"text","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"cache_servers","column_name":"invite_code","type":"text","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"cache_servers","column_name":"name","type":"text","nullable":true,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"cache_servers","column_name":"created_at","type":"timestamp with time zone","nullable":false,"array":false,"default_sql":"now()","default_val":"2024-06-09T15:17:14.906417Z","secret":false},{"table_name":"cache_servers","column_name":"web_moderator_role","type":"text","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"changelogs","column_name":"version","type":"text","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"changelogs","column_name":"added","type":"text","nullable":false,"array":true,"default_sql":null,"default_val":null,"secret":false},{"table_name":"changelogs","column_name":"updated","type":"text","nullable":false,"array":true,"default_sql":null,"default_val":null,"secret":false},{"table_name":"changelogs","column_name":"removed","type":"text","nullable":false,"array":true,"default_sql":null,"default_val":null,"secret":false},{"table_name":"changelogs","column_name":"github_html","type":"text","nullable":true,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"changelogs","column_name":"created_at","type":"timestamp with time zone","nullable":false,"array":false,"default_sql":"now()","default_val":"2024-06-09T15:17:14.906805Z","secret":false},{"table_name":"changelogs","column_name":"extra_description","type":"text","nullable":false,"array":false,"default_sql":"''::text","default_val":"","secret":false},{"table_name":"changelogs","column_name":"prerelease","type":"boolean","nullable":false,"array":false,"default_sql":"false","default_val":false,"secret":false},{"table_name":"changelogs","column_name":"published","type":"boolean","nullable":false,"array":false,"default_sql":"false","default_val":false,"secret":false},{"table_name":"enfinityuser","column_name":"userid","type":"text","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"enfinityuser","column_name":"globalname","type":"text","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"enfinityuser","column_name":"displayname","type":"text","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"enfinityuser","column_name":"cmd_blacklist","type":"boolean","nullable":false,"array":false,"default_sql":"false","default_val":false,"secret":false},{"table_name":"entity_vote_redeem_logs","column_name":"target_id","type":"text","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"entity_vote_redeem_logs","column_name":"target_type","type":"text","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"entity_vote_redeem_logs","column_name":"credits","type":"text","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"entity_vote_redeem_logs","column_name":"created_at","type":"timestamp with time zone","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"entity_vote_redeem_logs","column_name":"redeemed_at","type":"timestamp with time zone","nullable":true,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"entity_vote_redeem_logs","column_name":"id","type":"uuid","nullable":false,"array":false,"default_sql":"uuid_generate_v4()","default_val":"73e8dd1b-42c1-4b8f-b3f7-8892a8a10f1a","secret":false},{"table_name":"entity_vote_redeem_logs","column_name":"redeemed_credits","type":"integer","nullable":false,"array":false,"default_sql":"0","default_val":0,"secret":false},{"table_name":"entity_votes","column_name":"itag","type":"uuid","nullable":false,"array":false,"default_sql":"uuid_generate_v4()","default_val":"948878c0-70af-4a07-9541-8280397ad325","secret":false},{"table_name":"entity_votes","column_name":"target_id","type":"text","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"entity_votes","column_name":"target_type","type":"text","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"entity_votes","column_name":"author","type":"text","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"entity_votes","column_name":"upvote","type":"boolean","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"entity_votes","column_name":"void","type":"boolean","nullable":false,"array":false,"default_sql":"false","default_val":false,"secret":false},{"table_name":"entity_votes","column_name":"void_reason","type":"text","nullable":true,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"entity_votes","column_name":"created_at","type":"timestamp without time zone","nullable":false,"array":false,"default_sql":"now()","default_val":"2024-06-09T15:17:14.908509Z","secret":false},{"table_name":"entity_votes","column_name":"vote_num","type":"integer","nullable":false,"array":false,"default_sql":"0","default_val":0,"secret":false},{"table_name":"entity_votes","column_name":"voided_at","type":"timestamp with time zone","nullable":true,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"entity_votes","column_name":"immutable","type":"boolean","nullable":false,"array":false,"default_sql":"false","default_val":false,"secret":false},{"table_name":"entity_votes","column_name":"credit_redeem","type":"uuid","nullable":true,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"internal_user_cache__discord","column_name":"id","type":"text","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"internal_user_cache__discord","column_name":"username","type":"text","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"internal_user_cache__discord","column_name":"display_name","type":"text","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"internal_user_cache__discord","column_name":"avatar","type":"text","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"internal_user_cache__discord","column_name":"bot","type":"boolean","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"internal_user_cache__discord","column_name":"created_at","type":"timestamp with time zone","nullable":false,"array":false,"default_sql":"now()","default_val":"2024-06-09T15:17:14.909215Z","secret":false},{"table_name":"internal_user_cache__discord","column_name":"last_updated","type":"timestamp with time zone","nullable":false,"array":false,"default_sql":"now()","default_val":"2024-06-09T15:17:14.909335Z","secret":false},{"table_name":"packs","column_name":"itag","type":"uuid","nullable":false,"array":false,"default_sql":"uuid_generate_v4()","default_val":"40c1d9f2-ada0-4fdd-888a-19e255665c02","secret":false},{"table_name":"packs","column_name":"owner","type":"text","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"packs","column_name":"name","type":"text","nullable":false,"array":false,"default_sql":"'My pack'::text","default_val":"My pack","secret":false},{"table_name":"packs","column_name":"short","type":"text","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"packs","column_name":"tags","type":"text","nullable":false,"array":true,"default_sql":null,"default_val":null,"secret":false},{"table_name":"packs","column_name":"url","type":"text","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"packs","column_name":"created_at","type":"timestamp with time zone","nullable":false,"array":false,"default_sql":"now()","default_val":"2024-06-09T15:17:14.909913Z","secret":false},{"table_name":"packs","column_name":"bots","type":"text","nullable":false,"array":true,"default_sql":null,"default_val":null,"secret":false},{"table_name":"packs","column_name":"votes","type":"integer","nullable":false,"array":false,"default_sql":"0","default_val":0,"secret":false},{"table_name":"partner_types","column_name":"id","type":"text","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"partner_types","column_name":"name","type":"text","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"partner_types","column_name":"short","type":"text","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"partner_types","column_name":"icon","type":"text","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"partner_types","column_name":"created_at","type":"timestamp with time zone","nullable":false,"array":false,"default_sql":"now()","default_val":"2024-06-09T15:17:14.910331Z","secret":false},{"table_name":"partners","column_name":"id","type":"text","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"partners","column_name":"name","type":"text","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"partners","column_name":"short","type":"text","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"partners","column_name":"user_id","type":"text","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"partners","column_name":"links","type":"jsonb","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"partners","column_name":"type","type":"text","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"partners","column_name":"created_at","type":"timestamp with time zone","nullable":false,"array":false,"default_sql":"now()","default_val":"2024-06-09T15:17:14.910671Z","secret":false},{"table_name":"reviews","column_name":"itag","type":"uuid","nullable":false,"array":false,"default_sql":"uuid_generate_v4()","default_val":"f694106d-0aee-440a-a612-58785028a2fd","secret":false},{"table_name":"reviews","column_name":"id","type":"uuid","nullable":false,"array":false,"default_sql":"uuid_generate_v4()","default_val":"eb34fafb-e1b2-45c1-a446-c5d481d862af","secret":false},{"table_name":"reviews","column_name":"author","type":"text","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"reviews","column_name":"content","type":"text","nullable":false,"array":false,"default_sql":"'Very good bot!'::text","default_val":"Very good bot!","secret":false},{"table_name":"reviews","column_name":"stars","type":"integer","nullable":false,"array":false,"default_sql":"1","default_val":1,"secret":false},{"table_name":"reviews","column_name":"created_at","type":"timestamp with time zone","nullable":false,"array":false,"default_sql":"now()","default_val":"2024-06-09T15:17:14.911404Z","secret":false},{"table_name":"reviews","column_name":"parent_id","type":"uuid","nullable":true,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"reviews","column_name":"target_type","type":"text","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"reviews","column_name":"target_id","type":"text","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"reviews","column_name":"owner_review","type":"boolean","nullable":false,"array":false,"default_sql":"false","default_val":false,"secret":false},{"table_name":"rpc_logs","column_name":"id","type":"uuid","nullable":false,"array":false,"default_sql":"uuid_generate_v4()","default_val":"b4a530b2-7ee8-4b00-bd19-cff7d8f1610c","secret":false},{"table_name":"rpc_logs","column_name":"user_id","type":"text","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"rpc_logs","column_name":"method","type":"text","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"rpc_logs","column_name":"data","type":"jsonb","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"rpc_logs","column_name":"state","type":"text","nullable":false,"array":false,"default_sql":"'pending'::text","default_val":"pending","secret":false},{"table_name":"rpc_logs","column_name":"created_at","type":"timestamp with time zone","nullable":false,"array":false,"default_sql":"now()","default_val":"2024-06-09T15:17:14.912149Z","secret":false},{"table_name":"servers","column_name":"server_id","type":"text","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"servers","column_name":"name","type":"text","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"servers","column_name":"total_members","type":"integer","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"servers","column_name":"online_members","type":"integer","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"servers","column_name":"invite","type":"text","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":true},{"table_name":"servers","column_name":"team_owner","type":"uuid","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"servers","column_name":"short","type":"text","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"servers","column_name":"long","type":"text","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"servers","column_name":"api_token","type":"text","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":true},{"table_name":"servers","column_name":"extra_links","type":"jsonb","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"servers","column_name":"state","type":"text","nullable":false,"array":false,"default_sql":"'public'::text","default_val":"public","secret":false},{"table_name":"servers","column_name":"flags","type":"text","nullable":false,"array":true,"default_sql":"'{}'::text[]","default_val":{"Elements":null,"Dimensions":null,"Status":2},"secret":false},{"table_name":"servers","column_name":"clicks","type":"integer","nullable":false,"array":false,"default_sql":"0","default_val":0,"secret":false},{"table_name":"servers","column_name":"invite_clicks","type":"integer","nullable":false,"array":false,"default_sql":"0","default_val":0,"secret":false},{"table_name":"servers","column_name":"unique_clicks","type":"text","nullable":false,"array":true,"default_sql":"'{}'::text[]","default_val":{"Elements":null,"Dimensions":null,"Status":2},"secret":true},{"table_name":"servers","column_name":"vanity_ref","type":"uuid","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"servers","column_name":"type","type":"text","nullable":false,"array":false,"default_sql":"'pending'::text","default_val":"pending","secret":false},{"table_name":"servers","column_name":"nsfw","type":"boolean","nullable":false,"array":false,"default_sql":"false","default_val":false,"secret":false},{"table_name":"servers","column_name":"premium","type":"boolean","nullable":false,"array":false,"default_sql":"false","default_val":false,"secret":false},{"table_name":"servers","column_name":"start_premium_period","type":"timestamp with time zone","nullable":false,"array":false,"default_sql":"now()","default_val":"2024-06-09T15:17:14.913706Z","secret":false},{"table_name":"servers","column_name":"premium_period_length","type":"interval","nullable":false,"array":false,"default_sql":"'12:00:00'::interval","default_val":{"Microseconds":43200000000,"Days":0,"Months":0,"Status":2},"secret":false},{"table_name":"servers","column_name":"vote_banned","type":"boolean","nullable":false,"array":false,"default_sql":"false","default_val":false,"secret":false},{"table_name":"servers","column_name":"captcha_opt_out","type":"boolean","nullable":false,"array":false,"default_sql":"false","default_val":false,"secret":false},{"table_name":"servers","column_name":"tags","type":"text","nullable":false,"array":true,"default_sql":"'{}'::text[]","default_val":{"Elements":null,"Dimensions":null,"Status":2},"secret":false},{"table_name":"servers","column_name":"created_at","type":"timestamp with time zone","nullable":false,"array":false,"default_sql":"now()","default_val":"2024-06-09T15:17:14.914347Z","secret":false},{"table_name":"servers","column_name":"last_claimed","type":"timestamp with time zone","nullable":true,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"servers","column_name":"claimed_by","type":"text","nullable":true,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"shop_coupons","column_name":"id","type":"text","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"shop_coupons","column_name":"code","type":"text","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"shop_coupons","column_name":"public","type":"boolean","nullable":false,"array":false,"default_sql":"false","default_val":false,"secret":false},{"table_name":"shop_coupons","column_name":"max_uses","type":"integer","nullable":true,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"shop_coupons","column_name":"created_at","type":"timestamp with time zone","nullable":false,"array":false,"default_sql":"now()","default_val":"2024-06-09T15:17:14.914795Z","secret":false},{"table_name":"shop_coupons","column_name":"created_by","type":"text","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"shop_coupons","column_name":"last_updated","type":"timestamp with time zone","nullable":false,"array":false,"default_sql":"now()","default_val":"2024-06-09T15:17:14.914965Z","secret":false},{"table_name":"shop_coupons","column_name":"updated_by","type":"text","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"shop_coupons","column_name":"reuse_wait_duration","type":"integer","nullable":true,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"shop_coupons","column_name":"expiry","type":"integer","nullable":true,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"shop_coupons","column_name":"applicable_items","type":"text","nullable":false,"array":true,"default_sql":null,"default_val":null,"secret":false},{"table_name":"shop_coupons","column_name":"cents","type":"integer","nullable":true,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"shop_coupons","column_name":"requirements","type":"text","nullable":false,"array":true,"default_sql":"'{}'::text[]","default_val":{"Elements":null,"Dimensions":null,"Status":2},"secret":false},{"table_name":"shop_coupons","column_name":"allowed_users","type":"text","nullable":false,"array":true,"default_sql":"'{}'::text[]","default_val":{"Elements":null,"Dimensions":null,"Status":2},"secret":false},{"table_name":"shop_coupons","column_name":"usable","type":"boolean","nullable":false,"array":false,"default_sql":"false","default_val":false,"secret":false},{"table_name":"shop_coupons","column_name":"target_types","type":"text","nullable":false,"array":true,"default_sql":"'{}'::text[]","default_val":{"Elements":null,"Dimensions":null,"Status":2},"secret":false},{"table_name":"shop_item_benefits","column_name":"id","type":"text","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"shop_item_benefits","column_name":"name","type":"text","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"shop_item_benefits","column_name":"description","type":"text","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"shop_item_benefits","column_name":"created_at","type":"timestamp with time zone","nullable":false,"array":false,"default_sql":"now()","default_val":"2024-06-09T15:17:14.91595Z","secret":false},{"table_name":"shop_item_benefits","column_name":"last_updated","type":"timestamp with time zone","nullable":false,"array":false,"default_sql":"now()","default_val":"2024-06-09T15:17:14.916082Z","secret":false},{"table_name":"shop_item_benefits","column_name":"created_by","type":"text","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"shop_item_benefits","column_name":"updated_by","type":"text","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"shop_item_benefits","column_name":"target_types","type":"text","nullable":false,"array":true,"default_sql":null,"default_val":null,"secret":false},{"table_name":"shop_items","column_name":"id","type":"text","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"shop_items","column_name":"name","type":"text","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"shop_items","column_name":"cents","type":"double precision","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"shop_items","column_name":"target_types","type":"text","nullable":false,"array":true,"default_sql":null,"default_val":null,"secret":false},{"table_name":"shop_items","column_name":"benefits","type":"text","nullable":false,"array":true,"default_sql":null,"default_val":null,"secret":false},{"table_name":"shop_items","column_name":"created_at","type":"timestamp with time zone","nullable":false,"array":false,"default_sql":"now()","default_val":"2024-06-09T15:17:14.916516Z","secret":false},{"table_name":"shop_items","column_name":"last_updated","type":"timestamp with time zone","nullable":false,"array":false,"default_sql":"now()","default_val":"2024-06-09T15:17:14.916647Z","secret":false},{"table_name":"shop_items","column_name":"created_by","type":"text","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"shop_items","column_name":"updated_by","type":"text","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"shop_items","column_name":"duration","type":"integer","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"shop_items","column_name":"description","type":"text","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"staff_disciplinary","column_name":"id","type":"uuid","nullable":false,"array":false,"default_sql":"uuid_generate_v4()","default_val":"6f43b1b5-b0dc-497c-bfb6-d399fc8f7435","secret":false},{"table_name":"staff_disciplinary","column_name":"user_id","type":"text","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"staff_disciplinary","column_name":"created_at","type":"timestamp with time zone","nullable":false,"array":false,"default_sql":"now()","default_val":"2024-06-09T15:17:14.917142Z","secret":false},{"table_name":"staff_disciplinary","column_name":"expiry","type":"interval","nullable":true,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"staff_disciplinary","column_name":"title","type":"text","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"staff_disciplinary","column_name":"description","type":"text","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"staff_disciplinary","column_name":"type","type":"text","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"staff_disciplinary","column_name":"state","type":"text","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"staff_disciplinary_types","column_name":"id","type":"text","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"staff_disciplinary_types","column_name":"name","type":"text","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"staff_disciplinary_types","column_name":"self_assignable","type":"boolean","nullable":false,"array":false,"default_sql":"false","default_val":false,"secret":false},{"table_name":"staff_disciplinary_types","column_name":"perm_limits","type":"text","nullable":false,"array":true,"default_sql":null,"default_val":null,"secret":false},{"table_name":"staff_disciplinary_types","column_name":"created_at","type":"timestamp with time zone","nullable":false,"array":false,"default_sql":"now()","default_val":"2024-06-09T15:17:14.917717Z","secret":false},{"table_name":"staff_disciplinary_types","column_name":"additory","type":"boolean","nullable":false,"array":false,"default_sql":"false","default_val":false,"secret":false},{"table_name":"staff_disciplinary_types","column_name":"needs_approval","type":"boolean","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"staff_disciplinary_types","column_name":"max_expiry","type":"interval","nullable":true,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"staff_disciplinary_types","column_name":"description","type":"text","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"staff_general_logs","column_name":"user_id","type":"text","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"staff_general_logs","column_name":"action","type":"text","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"staff_general_logs","column_name":"data","type":"jsonb","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"staff_general_logs","column_name":"created_at","type":"timestamp with time zone","nullable":false,"array":false,"default_sql":"now()","default_val":"2024-06-09T15:17:14.918221Z","secret":false},{"table_name":"staff_members","column_name":"user_id","type":"text","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"staff_members","column_name":"perm_overrides","type":"text","nullable":false,"array":true,"default_sql":"'{}'::text[]","default_val":{"Elements":null,"Dimensions":null,"Status":2},"secret":false},{"table_name":"staff_members","column_name":"mfa_secret","type":"text","nullable":true,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"staff_members","column_name":"no_autosync","type":"boolean","nullable":false,"array":false,"default_sql":"false","default_val":false,"secret":false},{"table_name":"staff_members","column_name":"created_at","type":"timestamp with time zone","nullable":false,"array":false,"default_sql":"now()","default_val":"2024-06-09T15:17:14.918695Z","secret":false},{"table_name":"staff_members","column_name":"positions","type":"uuid","nullable":false,"array":true,"default_sql":null,"default_val":null,"secret":false},{"table_name":"staff_members","column_name":"mfa_verified","type":"boolean","nullable":false,"array":false,"default_sql":"false","default_val":false,"secret":false},{"table_name":"staff_members","column_name":"unaccounted","type":"boolean","nullable":false,"array":false,"default_sql":"false","default_val":false,"secret":false},{"table_name":"staff_onboardings","column_name":"id","type":"uuid","nullable":false,"array":false,"default_sql":"uuid_generate_v4()","default_val":"a53149b6-181a-4454-b9e5-e3de27c9c93d","secret":false},{"table_name":"staff_onboardings","column_name":"user_id","type":"text","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"staff_onboardings","column_name":"state","type":"text","nullable":false,"array":false,"default_sql":"'pending'::text","default_val":"pending","secret":false},{"table_name":"staff_onboardings","column_name":"created_at","type":"timestamp with time zone","nullable":false,"array":false,"default_sql":"now()","default_val":"2024-06-09T15:17:14.919432Z","secret":false},{"table_name":"staff_onboardings","column_name":"finished_at","type":"timestamp with time zone","nullable":true,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"staff_onboardings","column_name":"guild_id","type":"text","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"staff_onboardings","column_name":"void","type":"boolean","nullable":false,"array":false,"default_sql":"false","default_val":false,"secret":false},{"table_name":"staff_onboardings","column_name":"questions","type":"jsonb","nullable":true,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"staff_onboardings","column_name":"answers","type":"jsonb","nullable":true,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"staff_onboardings","column_name":"verdict","type":"jsonb","nullable":true,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"staff_onboardings","column_name":"staff_verify_code","type":"text","nullable":true,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"staff_positions","column_name":"id","type":"uuid","nullable":false,"array":false,"default_sql":"uuid_generate_v4()","default_val":"a6015222-21fc-4bc8-97a8-2e402da0d3ea","secret":false},{"table_name":"staff_positions","column_name":"name","type":"text","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"staff_positions","column_name":"role_id","type":"text","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"staff_positions","column_name":"perms","type":"text","nullable":false,"array":true,"default_sql":null,"default_val":null,"secret":false},{"table_name":"staff_positions","column_name":"created_at","type":"timestamp with time zone","nullable":false,"array":false,"default_sql":"now()","default_val":"2024-06-09T15:17:14.920208Z","secret":false},{"table_name":"staff_positions","column_name":"index","type":"integer","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"staff_positions","column_name":"corresponding_roles","type":"jsonb","nullable":false,"array":false,"default_sql":"'[]'::jsonb","default_val":[],"secret":false},{"table_name":"staff_positions","column_name":"icon","type":"text","nullable":false,"array":false,"default_sql":"'mdi:user'::text","default_val":"mdi:user","secret":false},{"table_name":"staff_template_types","column_name":"id","type":"text","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"staff_template_types","column_name":"name","type":"text","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"staff_template_types","column_name":"icon","type":"text","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"staff_template_types","column_name":"short","type":"text","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"staff_template_types","column_name":"created_at","type":"timestamp with time zone","nullable":false,"array":false,"default_sql":"now()","default_val":"2024-06-09T15:17:14.920877Z","secret":false},{"table_name":"staff_templates","column_name":"id","type":"uuid","nullable":false,"array":false,"default_sql":"uuid_generate_v4()","default_val":"6b3d03b1-0763-466e-9ddc-1b66876ffb67","secret":false},{"table_name":"staff_templates","column_name":"name","type":"text","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"staff_templates","column_name":"emoji","type":"text","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"staff_templates","column_name":"tags","type":"text","nullable":false,"array":true,"default_sql":null,"default_val":null,"secret":false},{"table_name":"staff_templates","column_name":"description","type":"text","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"staff_templates","column_name":"type","type":"text","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"staff_templates","column_name":"created_at","type":"timestamp with time zone","nullable":false,"array":false,"default_sql":"now()","default_val":"2024-06-09T15:17:14.921322Z","secret":false},{"table_name":"staffpanel__authchain","column_name":"itag","type":"uuid","nullable":false,"array":false,"default_sql":"uuid_generate_v4()","default_val":"b4dbdb5f-02a2-4534-9e35-693bcc11a8ab","secret":false},{"table_name":"staffpanel__authchain","column_name":"user_id","type":"text","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"staffpanel__authchain","column_name":"token","type":"text","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"staffpanel__authchain","column_name":"popplio_token","type":"text","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"staffpanel__authchain","column_name":"created_at","type":"timestamp with time zone","nullable":false,"array":false,"default_sql":"now()","default_val":"2024-06-09T15:17:14.921779Z","secret":false},{"table_name":"staffpanel__authchain","column_name":"state","type":"text","nullable":false,"array":false,"default_sql":"'pending'::text","default_val":"pending","secret":false},{"table_name":"tasks","column_name":"task_id","type":"uuid","nullable":false,"array":false,"default_sql":"uuid_generate_v4()","default_val":"f42f42ba-dfcd-43d6-80c2-9989e7abe52f","secret":false},{"table_name":"tasks","column_name":"task_name","type":"text","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"tasks","column_name":"output","type":"jsonb","nullable":true,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"tasks","column_name":"statuses","type":"jsonb","nullable":false,"array":true,"default_sql":"'{}'::jsonb[]","default_val":{"Elements":null,"Dimensions":null,"Status":2},"secret":false},{"table_name":"tasks","column_name":"for_user","type":"text","nullable":true,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"tasks","column_name":"expiry","type":"interval","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"tasks","column_name":"state","type":"text","nullable":false,"array":false,"default_sql":"'pending'::text","default_val":"pending","secret":false},{"table_name":"tasks","column_name":"created_at","type":"timestamp without time zone","nullable":false,"array":false,"default_sql":"now()","default_val":"2024-06-09T15:17:14.922696Z","secret":false},{"table_name":"tasks","column_name":"allow_unauthenticated","type":"boolean","nullable":false,"array":false,"default_sql":"false","default_val":false,"secret":false},{"table_name":"tasks","column_name":"task_key","type":"text","nullable":true,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"team_members","column_name":"user_id","type":"text","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"team_members","column_name":"team_id","type":"uuid","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"team_members","column_name":"created_at","type":"timestamp with time zone","nullable":false,"array":false,"default_sql":"now()","default_val":"2024-06-09T15:17:14.923064Z","secret":false},{"table_name":"team_members","column_name":"flags","type":"text","nullable":false,"array":true,"default_sql":"'{}'::text[]","default_val":{"Elements":null,"Dimensions":null,"Status":2},"secret":false},{"table_name":"team_members","column_name":"itag","type":"uuid","nullable":false,"array":false,"default_sql":"uuid_generate_v4()","default_val":"135fe4e0-45fb-4d34-ad05-0bd14cac50f6","secret":false},{"table_name":"team_members","column_name":"mentionable","type":"boolean","nullable":false,"array":false,"default_sql":"true","default_val":true,"secret":false},{"table_name":"team_members","column_name":"data_holder","type":"boolean","nullable":false,"array":false,"default_sql":"false","default_val":false,"secret":false},{"table_name":"teams","column_name":"id","type":"uuid","nullable":false,"array":false,"default_sql":"uuid_generate_v4()","default_val":"7840ca0e-b098-41f8-849f-54676d6db0ef","secret":false},{"table_name":"teams","column_name":"name","type":"text","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"teams","column_name":"short","type":"text","nullable":true,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"teams","column_name":"tags","type":"text","nullable":true,"array":true,"default_sql":null,"default_val":null,"secret":false},{"table_name":"teams","column_name":"votes","type":"integer","nullable":false,"array":false,"default_sql":"0","default_val":0,"secret":false},{"table_name":"teams","column_name":"extra_links","type":"jsonb","nullable":false,"array":false,"default_sql":"'[]'::jsonb","default_val":[],"secret":false},{"table_name":"teams","column_name":"vote_banned","type":"boolean","nullable":false,"array":false,"default_sql":"false","default_val":false,"secret":false},{"table_name":"teams","column_name":"nsfw","type":"boolean","nullable":false,"array":false,"default_sql":"false","default_val":false,"secret":false},{"table_name":"teams","column_name":"vanity_ref","type":"uuid","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"teams","column_name":"updated_at","type":"timestamp with time zone","nullable":false,"array":false,"default_sql":"now()","default_val":"2024-06-09T15:17:14.924507Z","secret":false},{"table_name":"teams","column_name":"created_at","type":"timestamp with time zone","nullable":false,"array":false,"default_sql":"now()","default_val":"2024-06-09T15:17:14.924622Z","secret":false},{"table_name":"tickets","column_name":"itag","type":"uuid","nullable":false,"array":false,"default_sql":"uuid_generate_v4()","default_val":"4b87c0a7-06d7-4e50-9320-4b53ceb78a5a","secret":false},{"table_name":"tickets","column_name":"channel_id","type":"text","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"tickets","column_name":"topic_id","type":"text","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"tickets","column_name":"topic","type":"jsonb","nullable":false,"array":false,"default_sql":"'{}'::jsonb","default_val":{},"secret":false},{"table_name":"tickets","column_name":"issue","type":"text","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"tickets","column_name":"ticket_context","type":"jsonb","nullable":false,"array":false,"default_sql":"'{}'::jsonb","default_val":{},"secret":false},{"table_name":"tickets","column_name":"messages","type":"jsonb","nullable":false,"array":false,"default_sql":"'{}'::jsonb","default_val":{},"secret":false},{"table_name":"tickets","column_name":"user_id","type":"text","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"tickets","column_name":"id","type":"text","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"tickets","column_name":"close_user_id","type":"text","nullable":true,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"tickets","column_name":"open","type":"boolean","nullable":false,"array":false,"default_sql":"true","default_val":true,"secret":false},{"table_name":"tickets","column_name":"created_at","type":"timestamp with time zone","nullable":false,"array":false,"default_sql":"now()","default_val":"2024-06-09T15:17:14.925562Z","secret":false},{"table_name":"tickets","column_name":"enc_key","type":"text","nullable":true,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"user_notifications","column_name":"itag","type":"uuid","nullable":false,"array":false,"default_sql":"uuid_generate_v4()","default_val":"a86a3ecb-487a-451d-95ee-1c218124eedf","secret":false},{"table_name":"user_notifications","column_name":"user_id","type":"text","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"user_notifications","column_name":"notif_id","type":"text","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"user_notifications","column_name":"auth","type":"text","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"user_notifications","column_name":"p256dh","type":"text","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"user_notifications","column_name":"endpoint","type":"text","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"user_notifications","column_name":"created_at","type":"timestamp with time zone","nullable":false,"array":false,"default_sql":"now()","default_val":"2024-06-09T15:17:14.926033Z","secret":false},{"table_name":"user_notifications","column_name":"ua","type":"text","nullable":false,"array":false,"default_sql":"''::text","default_val":"","secret":false},{"table_name":"user_reminders","column_name":"itag","type":"uuid","nullable":false,"array":false,"default_sql":"uuid_generate_v4()","default_val":"e23b689a-724e-421c-a404-c23e9388dba7","secret":false},{"table_name":"user_reminders","column_name":"user_id","type":"text","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"user_reminders","column_name":"target_id","type":"text","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"user_reminders","column_name":"created_at","type":"timestamp with time zone","nullable":false,"array":false,"default_sql":"now()","default_val":"2024-06-09T15:17:14.926468Z","secret":false},{"table_name":"user_reminders","column_name":"last_acked","type":"timestamp with time zone","nullable":false,"array":false,"default_sql":"now()","default_val":"2024-06-09T15:17:14.926584Z","secret":false},{"table_name":"user_reminders","column_name":"target_type","type":"text","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"users","column_name":"itag","type":"uuid","nullable":false,"array":false,"default_sql":"uuid_generate_v4()","default_val":"b97129a9-e774-4e26-bdc3-74371781fada","secret":false},{"table_name":"users","column_name":"user_id","type":"text","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"users","column_name":"experiments","type":"text","nullable":false,"array":true,"default_sql":"'{}'::text[]","default_val":{"Elements":null,"Dimensions":null,"Status":2},"secret":false},{"table_name":"users","column_name":"certified","type":"boolean","nullable":false,"array":false,"default_sql":"false","default_val":false,"secret":false},{"table_name":"users","column_name":"developer","type":"boolean","nullable":false,"array":false,"default_sql":"false","default_val":false,"secret":false},{"table_name":"users","column_name":"captcha_sponsor_enabled","type":"boolean","nullable":false,"array":false,"default_sql":"true","default_val":true,"secret":false},{"table_name":"users","column_name":"extra_links","type":"jsonb","nullable":false,"array":false,"default_sql":"'[]'::jsonb","default_val":[],"secret":false},{"table_name":"users","column_name":"api_token","type":"text","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":true},{"table_name":"users","column_name":"about","type":"text","nullable":true,"array":false,"default_sql":"'I am a very mysterious person'::text","default_val":"I am a very mysterious person","secret":false},{"table_name":"users","column_name":"vote_banned","type":"boolean","nullable":false,"array":false,"default_sql":"false","default_val":false,"secret":false},{"table_name":"users","column_name":"banned","type":"boolean","nullable":false,"array":false,"default_sql":"false","default_val":false,"secret":false},{"table_name":"users","column_name":"bug_hunters","type":"boolean","nullable":false,"array":false,"default_sql":"false","default_val":false,"secret":false},{"table_name":"users","column_name":"created_at","type":"timestamp with time zone","nullable":false,"array":false,"default_sql":"now()","default_val":"2024-06-09T15:17:14.928272Z","secret":false},{"table_name":"users","column_name":"updated_at","type":"timestamp with time zone","nullable":false,"array":false,"default_sql":"now()","default_val":"2024-06-09T15:17:14.928391Z","secret":false},{"table_name":"users","column_name":"last_booster_claim","type":"timestamp with time zone","nullable":true,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"users","column_name":"app_banned","type":"boolean","nullable":false,"array":false,"default_sql":"false","default_val":false,"secret":false},{"table_name":"vanity","column_name":"target_id","type":"text","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"vanity","column_name":"target_type","type":"text","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"vanity","column_name":"code","type":"USER-DEFINED","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"vanity","column_name":"itag","type":"uuid","nullable":false,"array":false,"default_sql":"uuid_generate_v4()","default_val":"22f797a7-9baf-4206-ba0b-87c7fb5f00a9","secret":false},{"table_name":"vanity","column_name":"created_at","type":"timestamp with time zone","nullable":false,"array":false,"default_sql":"now()","default_val":"2024-06-09T15:17:14.928905Z","secret":false},{"table_name":"vote_credit_tiers","column_name":"id","type":"text","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"vote_credit_tiers","column_name":"position","type":"integer","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"vote_credit_tiers","column_name":"votes","type":"integer","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"vote_credit_tiers","column_name":"cents","type":"double precision","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"vote_credit_tiers","column_name":"created_at","type":"timestamp with time zone","nullable":false,"array":false,"default_sql":"now()","default_val":"2024-06-09T15:17:14.929163Z","secret":false},{"table_name":"vote_credit_tiers","column_name":"target_type","type":"text","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"webhook_logs","column_name":"id","type":"uuid","nullable":false,"array":false,"default_sql":"uuid_generate_v4()","default_val":"5bb86ea5-7adf-4f4c-8a50-d22324990b72","secret":false},{"table_name":"webhook_logs","column_name":"target_id","type":"text","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"webhook_logs","column_name":"target_type","type":"text","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"webhook_logs","column_name":"user_id","type":"text","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"webhook_logs","column_name":"url","type":"text","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"webhook_logs","column_name":"data","type":"jsonb","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"webhook_logs","column_name":"bad_intent","type":"boolean","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"webhook_logs","column_name":"created_at","type":"timestamp with time zone","nullable":false,"array":false,"default_sql":"now()","default_val":"2024-06-09T15:17:14.92973Z","secret":false},{"table_name":"webhook_logs","column_name":"state","type":"text","nullable":false,"array":false,"default_sql":"'PENDING'::text","default_val":"PENDING","secret":false},{"table_name":"webhook_logs","column_name":"tries","type":"integer","nullable":false,"array":false,"default_sql":"0","default_val":0,"secret":false},{"table_name":"webhook_logs","column_name":"last_try","type":"timestamp with time zone","nullable":false,"array":false,"default_sql":"now()","default_val":"2024-06-09T15:17:14.930148Z","secret":false},{"table_name":"webhook_logs","column_name":"response","type":"text","nullable":true,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"webhook_logs","column_name":"status_code","type":"integer","nullable":false,"array":false,"default_sql":"0","default_val":0,"secret":false},{"table_name":"webhook_logs","column_name":"webhook_id","type":"uuid","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"webhooks","column_name":"id","type":"uuid","nullable":false,"array":false,"default_sql":"uuid_generate_v4()","default_val":"a21657c3-a8a3-4452-952a-a168f2c32600","secret":false},{"table_name":"webhooks","column_name":"target_id","type":"text","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"webhooks","column_name":"target_type","type":"text","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"webhooks","column_name":"url","type":"text","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"webhooks","column_name":"secret","type":"text","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"webhooks","column_name":"created_at","type":"timestamp without time zone","nullable":false,"array":false,"default_sql":"now()","default_val":"2024-06-09T15:17:14.930725Z","secret":false},{"table_name":"webhooks","column_name":"broken","type":"boolean","nullable":false,"array":false,"default_sql":"false","default_val":false,"secret":false},{"table_name":"webhooks","column_name":"simple_auth","type":"boolean","nullable":false,"array":false,"default_sql":"false","default_val":false,"secret":false},{"table_name":"webhooks","column_name":"event_whitelist","type":"text","nullable":false,"array":true,"default_sql":"'{}'::text[]","default_val":{"Elements":null,"Dimensions":null,"Status":2},"secret":false},{"table_name":"webhooks","column_name":"name","type":"text","nullable":false,"array":false,"default_sql":"'My untitled webhook'::text","default_val":"My untitled webhook","secret":false}] +[{"table_name":"__dp_mfa","column_name":"user_id","type":"text","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"__dp_mfa","column_name":"secret","type":"text","nullable":true,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"__dp_mfa","column_name":"domain","type":"text","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"__dp_mfa","column_name":"validated","type":"boolean","nullable":true,"array":false,"default_sql":"false","default_val":false,"secret":false},{"table_name":"alerts","column_name":"itag","type":"uuid","nullable":false,"array":false,"default_sql":"uuid_generate_v4()","default_val":"bdacd8f3-ec3d-4d1e-8d30-16bea10390cc","secret":false},{"table_name":"alerts","column_name":"user_id","type":"text","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"alerts","column_name":"url","type":"text","nullable":true,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"alerts","column_name":"message","type":"text","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"alerts","column_name":"type","type":"text","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"alerts","column_name":"alert_data","type":"jsonb","nullable":false,"array":false,"default_sql":"'{}'::jsonb","default_val":{},"secret":false},{"table_name":"alerts","column_name":"icon","type":"text","nullable":true,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"alerts","column_name":"title","type":"text","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"alerts","column_name":"priority","type":"integer","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"alerts","column_name":"created_at","type":"timestamp with time zone","nullable":false,"array":false,"default_sql":"now()","default_val":"2024-06-13T14:47:14.902033Z","secret":false},{"table_name":"alerts","column_name":"acked","type":"boolean","nullable":false,"array":false,"default_sql":"false","default_val":false,"secret":false},{"table_name":"api_sessions","column_name":"id","type":"uuid","nullable":false,"array":false,"default_sql":"uuid_generate_v4()","default_val":"a3e28f0c-aa64-492f-8e80-997098a4ebb3","secret":false},{"table_name":"api_sessions","column_name":"target_type","type":"text","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"api_sessions","column_name":"target_id","type":"text","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"api_sessions","column_name":"created_at","type":"timestamp with time zone","nullable":false,"array":false,"default_sql":"now()","default_val":"2024-06-13T14:47:14.902512Z","secret":false},{"table_name":"api_sessions","column_name":"type","type":"text","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"api_sessions","column_name":"expiry","type":"timestamp with time zone","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"api_sessions","column_name":"token","type":"text","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"api_sessions","column_name":"name","type":"text","nullable":true,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"api_sessions","column_name":"perm_limits","type":"text","nullable":false,"array":true,"default_sql":"'{}'::text[]","default_val":{"Elements":null,"Dimensions":null,"Status":2},"secret":false},{"table_name":"apps","column_name":"itag","type":"uuid","nullable":false,"array":false,"default_sql":"uuid_generate_v4()","default_val":"1d109791-c55f-442c-8a2e-f9594944dc80","secret":false},{"table_name":"apps","column_name":"app_id","type":"text","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"apps","column_name":"user_id","type":"text","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"apps","column_name":"position","type":"text","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"apps","column_name":"review_feedback","type":"text","nullable":true,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"apps","column_name":"created_at","type":"timestamp with time zone","nullable":false,"array":false,"default_sql":"now()","default_val":"2024-06-13T14:47:14.903155Z","secret":false},{"table_name":"apps","column_name":"questions","type":"jsonb","nullable":false,"array":false,"default_sql":"'{}'::jsonb","default_val":{},"secret":false},{"table_name":"apps","column_name":"answers","type":"jsonb","nullable":false,"array":false,"default_sql":"'{}'::jsonb","default_val":{},"secret":false},{"table_name":"apps","column_name":"state","type":"text","nullable":false,"array":false,"default_sql":"'pending'::text","default_val":"pending","secret":false},{"table_name":"automated_vote_resets","column_name":"id","type":"uuid","nullable":false,"array":false,"default_sql":"uuid_generate_v4()","default_val":"f14913d6-6bba-49b2-a643-ea91408212ab","secret":false},{"table_name":"automated_vote_resets","column_name":"created_at","type":"timestamp with time zone","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"blacklisted_words","column_name":"id","type":"uuid","nullable":false,"array":false,"default_sql":"uuid_generate_v4()","default_val":"f0c03f03-64bf-4c61-ac00-56514a0f42f4","secret":false},{"table_name":"blacklisted_words","column_name":"word","type":"text","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"blacklisted_words","column_name":"system","type":"text","nullable":false,"array":true,"default_sql":null,"default_val":null,"secret":false},{"table_name":"blacklisted_words","column_name":"created_at","type":"timestamp with time zone","nullable":false,"array":false,"default_sql":"now()","default_val":"2024-06-13T14:47:14.90396Z","secret":false},{"table_name":"blogs","column_name":"itag","type":"uuid","nullable":false,"array":false,"default_sql":"uuid_generate_v4()","default_val":"24c3c0b7-87c0-4f62-b06c-5fb1fb1f7208","secret":false},{"table_name":"blogs","column_name":"slug","type":"text","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"blogs","column_name":"title","type":"text","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"blogs","column_name":"description","type":"text","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"blogs","column_name":"user_id","type":"text","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"blogs","column_name":"created_at","type":"timestamp with time zone","nullable":false,"array":false,"default_sql":"now()","default_val":"2024-06-13T14:47:14.90431Z","secret":false},{"table_name":"blogs","column_name":"content","type":"text","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"blogs","column_name":"draft","type":"boolean","nullable":false,"array":false,"default_sql":"true","default_val":true,"secret":false},{"table_name":"blogs","column_name":"tags","type":"text","nullable":false,"array":true,"default_sql":null,"default_val":null,"secret":false},{"table_name":"bot_whitelist","column_name":"bot_id","type":"text","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"bot_whitelist","column_name":"reason","type":"text","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"bot_whitelist","column_name":"created_at","type":"timestamp with time zone","nullable":false,"array":false,"default_sql":"now()","default_val":"2024-06-13T14:47:14.904684Z","secret":false},{"table_name":"bot_whitelist","column_name":"user_id","type":"text","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"bots","column_name":"bot_id","type":"text","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"bots","column_name":"client_id","type":"text","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"bots","column_name":"tags","type":"text","nullable":false,"array":true,"default_sql":null,"default_val":null,"secret":false},{"table_name":"bots","column_name":"prefix","type":"text","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"bots","column_name":"owner","type":"text","nullable":true,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"bots","column_name":"short","type":"text","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"bots","column_name":"long","type":"text","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"bots","column_name":"library","type":"text","nullable":false,"array":false,"default_sql":"'custom'::text","default_val":"custom","secret":false},{"table_name":"bots","column_name":"extra_links","type":"jsonb","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"bots","column_name":"nsfw","type":"boolean","nullable":false,"array":false,"default_sql":"false","default_val":false,"secret":false},{"table_name":"bots","column_name":"premium","type":"boolean","nullable":false,"array":false,"default_sql":"false","default_val":false,"secret":false},{"table_name":"bots","column_name":"servers","type":"integer","nullable":false,"array":false,"default_sql":"0","default_val":0,"secret":false},{"table_name":"bots","column_name":"shards","type":"integer","nullable":false,"array":false,"default_sql":"0","default_val":0,"secret":false},{"table_name":"bots","column_name":"users","type":"integer","nullable":false,"array":false,"default_sql":"0","default_val":0,"secret":false},{"table_name":"bots","column_name":"clicks","type":"integer","nullable":false,"array":false,"default_sql":"0","default_val":0,"secret":false},{"table_name":"bots","column_name":"invite_clicks","type":"integer","nullable":false,"array":false,"default_sql":"0","default_val":0,"secret":false},{"table_name":"bots","column_name":"invite","type":"text","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"bots","column_name":"type","type":"text","nullable":false,"array":false,"default_sql":"'pending'::text","default_val":"pending","secret":false},{"table_name":"bots","column_name":"vote_banned","type":"boolean","nullable":false,"array":false,"default_sql":"false","default_val":false,"secret":false},{"table_name":"bots","column_name":"start_premium_period","type":"timestamp with time zone","nullable":false,"array":false,"default_sql":"now()","default_val":"2024-06-13T14:47:14.906237Z","secret":false},{"table_name":"bots","column_name":"premium_period_length","type":"interval","nullable":false,"array":false,"default_sql":"'12:00:00'::interval","default_val":{"Microseconds":43200000000,"Days":0,"Months":0,"Status":2},"secret":false},{"table_name":"bots","column_name":"cert_reason","type":"text","nullable":true,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"bots","column_name":"uptime","type":"bigint","nullable":false,"array":false,"default_sql":"0","default_val":0,"secret":false},{"table_name":"bots","column_name":"total_uptime","type":"bigint","nullable":false,"array":false,"default_sql":"0","default_val":0,"secret":false},{"table_name":"bots","column_name":"claimed_by","type":"text","nullable":true,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"bots","column_name":"approval_note","type":"text","nullable":false,"array":false,"default_sql":"'No note'::text","default_val":"No note","secret":false},{"table_name":"bots","column_name":"created_at","type":"timestamp with time zone","nullable":false,"array":false,"default_sql":"now()","default_val":"2024-06-13T14:47:14.906989Z","secret":false},{"table_name":"bots","column_name":"unique_clicks","type":"text","nullable":false,"array":true,"default_sql":"'{}'::text[]","default_val":{"Elements":null,"Dimensions":null,"Status":2},"secret":true},{"table_name":"bots","column_name":"api_token","type":"text","nullable":false,"array":false,"default_sql":"uuid_generate_v4()","default_val":"eb0da3a5-56cd-4fec-9c94-ab9ed4e5abbc","secret":true},{"table_name":"bots","column_name":"last_claimed","type":"timestamp with time zone","nullable":true,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"bots","column_name":"team_owner","type":"uuid","nullable":true,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"bots","column_name":"shard_list","type":"bigint","nullable":false,"array":true,"default_sql":"'{}'::bigint[]","default_val":{"Elements":null,"Dimensions":null,"Status":2},"secret":false},{"table_name":"bots","column_name":"captcha_opt_out","type":"boolean","nullable":false,"array":false,"default_sql":"false","default_val":false,"secret":false},{"table_name":"bots","column_name":"uptime_last_checked","type":"timestamp with time zone","nullable":false,"array":false,"default_sql":"now()","default_val":"2024-06-13T14:47:14.907782Z","secret":false},{"table_name":"bots","column_name":"itag","type":"uuid","nullable":false,"array":false,"default_sql":"uuid_generate_v4()","default_val":"9fa2ebc0-1954-4103-8c4f-7b7402ddff26","secret":false},{"table_name":"bots","column_name":"flags","type":"text","nullable":true,"array":true,"default_sql":"'{}'::text[]","default_val":{"Elements":null,"Dimensions":null,"Status":2},"secret":false},{"table_name":"bots","column_name":"last_stats_post","type":"timestamp with time zone","nullable":true,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"bots","column_name":"vanity_ref","type":"uuid","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"bots","column_name":"updated_at","type":"timestamp with time zone","nullable":false,"array":false,"default_sql":"now()","default_val":"2024-06-13T14:47:14.908167Z","secret":false},{"table_name":"bots","column_name":"cache_server_uninvitable","type":"text","nullable":true,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"bots","column_name":"approximate_votes","type":"integer","nullable":false,"array":false,"default_sql":"0","default_val":0,"secret":false},{"table_name":"cache_server_bots","column_name":"guild_id","type":"text","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"cache_server_bots","column_name":"bot_id","type":"text","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"cache_server_bots","column_name":"created_at","type":"timestamp with time zone","nullable":false,"array":false,"default_sql":"now()","default_val":"2024-06-13T14:47:14.908453Z","secret":false},{"table_name":"cache_server_bots","column_name":"added","type":"integer","nullable":false,"array":false,"default_sql":"0","default_val":0,"secret":false},{"table_name":"cache_server_migrations","column_name":"guild_id","type":"text","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"cache_server_migrations","column_name":"migration_id","type":"text","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"cache_server_migrations","column_name":"state","type":"text","nullable":false,"array":true,"default_sql":null,"default_val":null,"secret":false},{"table_name":"cache_server_migrations","column_name":"created_at","type":"timestamp with time zone","nullable":false,"array":false,"default_sql":"now()","default_val":"2024-06-13T14:47:14.908758Z","secret":false},{"table_name":"cache_server_migrations_done","column_name":"migration_id","type":"text","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"cache_server_migrations_done","column_name":"created_at","type":"timestamp with time zone","nullable":false,"array":false,"default_sql":"now()","default_val":"2024-06-13T14:47:14.908888Z","secret":false},{"table_name":"cache_server_migrations_done","column_name":"states","type":"text","nullable":false,"array":true,"default_sql":"'{}'::text[]","default_val":{"Elements":null,"Dimensions":null,"Status":2},"secret":false},{"table_name":"cache_server_oauth_md","column_name":"owner_id","type":"text","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"cache_server_oauths","column_name":"user_id","type":"text","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"cache_server_oauths","column_name":"access_token","type":"text","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"cache_server_oauths","column_name":"refresh_token","type":"text","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"cache_server_oauths","column_name":"expires_at","type":"timestamp with time zone","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"cache_server_oauths","column_name":"bot","type":"text","nullable":false,"array":false,"default_sql":"'doxycycline'::text","default_val":"doxycycline","secret":false},{"table_name":"cache_servers","column_name":"guild_id","type":"text","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"cache_servers","column_name":"bots_role","type":"text","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"cache_servers","column_name":"system_bots_role","type":"text","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"cache_servers","column_name":"logs_channel","type":"text","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"cache_servers","column_name":"staff_role","type":"text","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"cache_servers","column_name":"welcome_channel","type":"text","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"cache_servers","column_name":"invite_code","type":"text","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"cache_servers","column_name":"name","type":"text","nullable":true,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"cache_servers","column_name":"created_at","type":"timestamp with time zone","nullable":false,"array":false,"default_sql":"now()","default_val":"2024-06-13T14:47:14.909497Z","secret":false},{"table_name":"cache_servers","column_name":"web_moderator_role","type":"text","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"changelogs","column_name":"version","type":"text","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"changelogs","column_name":"added","type":"text","nullable":false,"array":true,"default_sql":null,"default_val":null,"secret":false},{"table_name":"changelogs","column_name":"updated","type":"text","nullable":false,"array":true,"default_sql":null,"default_val":null,"secret":false},{"table_name":"changelogs","column_name":"removed","type":"text","nullable":false,"array":true,"default_sql":null,"default_val":null,"secret":false},{"table_name":"changelogs","column_name":"github_html","type":"text","nullable":true,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"changelogs","column_name":"created_at","type":"timestamp with time zone","nullable":false,"array":false,"default_sql":"now()","default_val":"2024-06-13T14:47:14.909716Z","secret":false},{"table_name":"changelogs","column_name":"extra_description","type":"text","nullable":false,"array":false,"default_sql":"''::text","default_val":"","secret":false},{"table_name":"changelogs","column_name":"prerelease","type":"boolean","nullable":false,"array":false,"default_sql":"false","default_val":false,"secret":false},{"table_name":"changelogs","column_name":"published","type":"boolean","nullable":false,"array":false,"default_sql":"false","default_val":false,"secret":false},{"table_name":"entity_vote_redeem_logs","column_name":"target_id","type":"text","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"entity_vote_redeem_logs","column_name":"target_type","type":"text","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"entity_vote_redeem_logs","column_name":"credits","type":"text","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"entity_vote_redeem_logs","column_name":"created_at","type":"timestamp with time zone","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"entity_vote_redeem_logs","column_name":"redeemed_at","type":"timestamp with time zone","nullable":true,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"entity_vote_redeem_logs","column_name":"id","type":"uuid","nullable":false,"array":false,"default_sql":"uuid_generate_v4()","default_val":"4395c515-690e-4023-9ff5-41782e8a5d2a","secret":false},{"table_name":"entity_vote_redeem_logs","column_name":"redeemed_credits","type":"integer","nullable":false,"array":false,"default_sql":"0","default_val":0,"secret":false},{"table_name":"entity_votes","column_name":"itag","type":"uuid","nullable":false,"array":false,"default_sql":"uuid_generate_v4()","default_val":"8abd2de0-80a2-46ef-8ff2-cbc0f499a0e4","secret":false},{"table_name":"entity_votes","column_name":"target_id","type":"text","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"entity_votes","column_name":"target_type","type":"text","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"entity_votes","column_name":"author","type":"text","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"entity_votes","column_name":"upvote","type":"boolean","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"entity_votes","column_name":"void","type":"boolean","nullable":false,"array":false,"default_sql":"false","default_val":false,"secret":false},{"table_name":"entity_votes","column_name":"void_reason","type":"text","nullable":true,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"entity_votes","column_name":"created_at","type":"timestamp without time zone","nullable":false,"array":false,"default_sql":"now()","default_val":"2024-06-13T14:47:14.910637Z","secret":false},{"table_name":"entity_votes","column_name":"vote_num","type":"integer","nullable":false,"array":false,"default_sql":"0","default_val":0,"secret":false},{"table_name":"entity_votes","column_name":"voided_at","type":"timestamp with time zone","nullable":true,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"entity_votes","column_name":"immutable","type":"boolean","nullable":false,"array":false,"default_sql":"false","default_val":false,"secret":false},{"table_name":"entity_votes","column_name":"credit_redeem","type":"uuid","nullable":true,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"internal_user_cache__discord","column_name":"id","type":"text","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"internal_user_cache__discord","column_name":"username","type":"text","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"internal_user_cache__discord","column_name":"display_name","type":"text","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"internal_user_cache__discord","column_name":"avatar","type":"text","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"internal_user_cache__discord","column_name":"bot","type":"boolean","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"internal_user_cache__discord","column_name":"created_at","type":"timestamp with time zone","nullable":false,"array":false,"default_sql":"now()","default_val":"2024-06-13T14:47:14.911195Z","secret":false},{"table_name":"internal_user_cache__discord","column_name":"last_updated","type":"timestamp with time zone","nullable":false,"array":false,"default_sql":"now()","default_val":"2024-06-13T14:47:14.911295Z","secret":false},{"table_name":"packs","column_name":"itag","type":"uuid","nullable":false,"array":false,"default_sql":"uuid_generate_v4()","default_val":"66f7edcc-c012-4888-941b-31bc5803a478","secret":false},{"table_name":"packs","column_name":"owner","type":"text","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"packs","column_name":"name","type":"text","nullable":false,"array":false,"default_sql":"'My pack'::text","default_val":"My pack","secret":false},{"table_name":"packs","column_name":"short","type":"text","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"packs","column_name":"tags","type":"text","nullable":false,"array":true,"default_sql":null,"default_val":null,"secret":false},{"table_name":"packs","column_name":"url","type":"text","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"packs","column_name":"created_at","type":"timestamp with time zone","nullable":false,"array":false,"default_sql":"now()","default_val":"2024-06-13T14:47:14.911778Z","secret":false},{"table_name":"packs","column_name":"bots","type":"text","nullable":false,"array":true,"default_sql":null,"default_val":null,"secret":false},{"table_name":"packs","column_name":"votes","type":"integer","nullable":false,"array":false,"default_sql":"0","default_val":0,"secret":false},{"table_name":"packs","column_name":"vote_banned","type":"boolean","nullable":false,"array":false,"default_sql":"false","default_val":false,"secret":false},{"table_name":"partner_types","column_name":"id","type":"text","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"partner_types","column_name":"name","type":"text","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"partner_types","column_name":"short","type":"text","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"partner_types","column_name":"icon","type":"text","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"partner_types","column_name":"created_at","type":"timestamp with time zone","nullable":false,"array":false,"default_sql":"now()","default_val":"2024-06-13T14:47:14.912261Z","secret":false},{"table_name":"partners","column_name":"id","type":"text","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"partners","column_name":"name","type":"text","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"partners","column_name":"short","type":"text","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"partners","column_name":"user_id","type":"text","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"partners","column_name":"links","type":"jsonb","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"partners","column_name":"type","type":"text","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"partners","column_name":"created_at","type":"timestamp with time zone","nullable":false,"array":false,"default_sql":"now()","default_val":"2024-06-13T14:47:14.912536Z","secret":false},{"table_name":"reviews","column_name":"itag","type":"uuid","nullable":false,"array":false,"default_sql":"uuid_generate_v4()","default_val":"6915a712-aac0-46b6-9b92-0e2dd65b76f8","secret":false},{"table_name":"reviews","column_name":"id","type":"uuid","nullable":false,"array":false,"default_sql":"uuid_generate_v4()","default_val":"e490ed86-386e-4749-8cf3-b1f3ed98a73b","secret":false},{"table_name":"reviews","column_name":"author","type":"text","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"reviews","column_name":"content","type":"text","nullable":false,"array":false,"default_sql":"'Very good bot!'::text","default_val":"Very good bot!","secret":false},{"table_name":"reviews","column_name":"stars","type":"integer","nullable":false,"array":false,"default_sql":"1","default_val":1,"secret":false},{"table_name":"reviews","column_name":"created_at","type":"timestamp with time zone","nullable":false,"array":false,"default_sql":"now()","default_val":"2024-06-13T14:47:14.913169Z","secret":false},{"table_name":"reviews","column_name":"parent_id","type":"uuid","nullable":true,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"reviews","column_name":"target_type","type":"text","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"reviews","column_name":"target_id","type":"text","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"reviews","column_name":"owner_review","type":"boolean","nullable":false,"array":false,"default_sql":"false","default_val":false,"secret":false},{"table_name":"rpc_logs","column_name":"id","type":"uuid","nullable":false,"array":false,"default_sql":"uuid_generate_v4()","default_val":"fd006946-10fa-4dca-b476-a2cf2606134b","secret":false},{"table_name":"rpc_logs","column_name":"user_id","type":"text","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"rpc_logs","column_name":"method","type":"text","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"rpc_logs","column_name":"data","type":"jsonb","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"rpc_logs","column_name":"state","type":"text","nullable":false,"array":false,"default_sql":"'pending'::text","default_val":"pending","secret":false},{"table_name":"rpc_logs","column_name":"created_at","type":"timestamp with time zone","nullable":false,"array":false,"default_sql":"now()","default_val":"2024-06-13T14:47:14.913748Z","secret":false},{"table_name":"servers","column_name":"server_id","type":"text","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"servers","column_name":"name","type":"text","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"servers","column_name":"total_members","type":"integer","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"servers","column_name":"online_members","type":"integer","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"servers","column_name":"invite","type":"text","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":true},{"table_name":"servers","column_name":"team_owner","type":"uuid","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"servers","column_name":"short","type":"text","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"servers","column_name":"long","type":"text","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"servers","column_name":"api_token","type":"text","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":true},{"table_name":"servers","column_name":"extra_links","type":"jsonb","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"servers","column_name":"state","type":"text","nullable":false,"array":false,"default_sql":"'public'::text","default_val":"public","secret":false},{"table_name":"servers","column_name":"flags","type":"text","nullable":false,"array":true,"default_sql":"'{}'::text[]","default_val":{"Elements":null,"Dimensions":null,"Status":2},"secret":false},{"table_name":"servers","column_name":"clicks","type":"integer","nullable":false,"array":false,"default_sql":"0","default_val":0,"secret":false},{"table_name":"servers","column_name":"invite_clicks","type":"integer","nullable":false,"array":false,"default_sql":"0","default_val":0,"secret":false},{"table_name":"servers","column_name":"unique_clicks","type":"text","nullable":false,"array":true,"default_sql":"'{}'::text[]","default_val":{"Elements":null,"Dimensions":null,"Status":2},"secret":true},{"table_name":"servers","column_name":"vanity_ref","type":"uuid","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"servers","column_name":"type","type":"text","nullable":false,"array":false,"default_sql":"'approved'::text","default_val":"approved","secret":false},{"table_name":"servers","column_name":"nsfw","type":"boolean","nullable":false,"array":false,"default_sql":"false","default_val":false,"secret":false},{"table_name":"servers","column_name":"premium","type":"boolean","nullable":false,"array":false,"default_sql":"false","default_val":false,"secret":false},{"table_name":"servers","column_name":"start_premium_period","type":"timestamp with time zone","nullable":false,"array":false,"default_sql":"now()","default_val":"2024-06-13T14:47:14.91504Z","secret":false},{"table_name":"servers","column_name":"premium_period_length","type":"interval","nullable":false,"array":false,"default_sql":"'12:00:00'::interval","default_val":{"Microseconds":43200000000,"Days":0,"Months":0,"Status":2},"secret":false},{"table_name":"servers","column_name":"vote_banned","type":"boolean","nullable":false,"array":false,"default_sql":"false","default_val":false,"secret":false},{"table_name":"servers","column_name":"captcha_opt_out","type":"boolean","nullable":false,"array":false,"default_sql":"false","default_val":false,"secret":false},{"table_name":"servers","column_name":"tags","type":"text","nullable":false,"array":true,"default_sql":"'{}'::text[]","default_val":{"Elements":null,"Dimensions":null,"Status":2},"secret":false},{"table_name":"servers","column_name":"created_at","type":"timestamp with time zone","nullable":false,"array":false,"default_sql":"now()","default_val":"2024-06-13T14:47:14.915518Z","secret":false},{"table_name":"servers","column_name":"last_claimed","type":"timestamp with time zone","nullable":true,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"servers","column_name":"claimed_by","type":"text","nullable":true,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"servers","column_name":"approximate_votes","type":"integer","nullable":false,"array":false,"default_sql":"0","default_val":0,"secret":false},{"table_name":"shop_coupons","column_name":"id","type":"text","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"shop_coupons","column_name":"code","type":"text","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"shop_coupons","column_name":"public","type":"boolean","nullable":false,"array":false,"default_sql":"false","default_val":false,"secret":false},{"table_name":"shop_coupons","column_name":"max_uses","type":"integer","nullable":true,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"shop_coupons","column_name":"created_at","type":"timestamp with time zone","nullable":false,"array":false,"default_sql":"now()","default_val":"2024-06-13T14:47:14.916014Z","secret":false},{"table_name":"shop_coupons","column_name":"created_by","type":"text","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"shop_coupons","column_name":"last_updated","type":"timestamp with time zone","nullable":false,"array":false,"default_sql":"now()","default_val":"2024-06-13T14:47:14.916149Z","secret":false},{"table_name":"shop_coupons","column_name":"updated_by","type":"text","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"shop_coupons","column_name":"reuse_wait_duration","type":"integer","nullable":true,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"shop_coupons","column_name":"expiry","type":"integer","nullable":true,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"shop_coupons","column_name":"applicable_items","type":"text","nullable":false,"array":true,"default_sql":null,"default_val":null,"secret":false},{"table_name":"shop_coupons","column_name":"cents","type":"integer","nullable":true,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"shop_coupons","column_name":"requirements","type":"text","nullable":false,"array":true,"default_sql":"'{}'::text[]","default_val":{"Elements":null,"Dimensions":null,"Status":2},"secret":false},{"table_name":"shop_coupons","column_name":"allowed_users","type":"text","nullable":false,"array":true,"default_sql":"'{}'::text[]","default_val":{"Elements":null,"Dimensions":null,"Status":2},"secret":false},{"table_name":"shop_coupons","column_name":"usable","type":"boolean","nullable":false,"array":false,"default_sql":"false","default_val":false,"secret":false},{"table_name":"shop_coupons","column_name":"target_types","type":"text","nullable":false,"array":true,"default_sql":"'{}'::text[]","default_val":{"Elements":null,"Dimensions":null,"Status":2},"secret":false},{"table_name":"shop_item_benefits","column_name":"id","type":"text","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"shop_item_benefits","column_name":"name","type":"text","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"shop_item_benefits","column_name":"description","type":"text","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"shop_item_benefits","column_name":"created_at","type":"timestamp with time zone","nullable":false,"array":false,"default_sql":"now()","default_val":"2024-06-13T14:47:14.916884Z","secret":false},{"table_name":"shop_item_benefits","column_name":"last_updated","type":"timestamp with time zone","nullable":false,"array":false,"default_sql":"now()","default_val":"2024-06-13T14:47:14.916985Z","secret":false},{"table_name":"shop_item_benefits","column_name":"created_by","type":"text","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"shop_item_benefits","column_name":"updated_by","type":"text","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"shop_item_benefits","column_name":"target_types","type":"text","nullable":false,"array":true,"default_sql":null,"default_val":null,"secret":false},{"table_name":"shop_items","column_name":"id","type":"text","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"shop_items","column_name":"name","type":"text","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"shop_items","column_name":"cents","type":"double precision","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"shop_items","column_name":"target_types","type":"text","nullable":false,"array":true,"default_sql":null,"default_val":null,"secret":false},{"table_name":"shop_items","column_name":"benefits","type":"text","nullable":false,"array":true,"default_sql":null,"default_val":null,"secret":false},{"table_name":"shop_items","column_name":"created_at","type":"timestamp with time zone","nullable":false,"array":false,"default_sql":"now()","default_val":"2024-06-13T14:47:14.917336Z","secret":false},{"table_name":"shop_items","column_name":"last_updated","type":"timestamp with time zone","nullable":false,"array":false,"default_sql":"now()","default_val":"2024-06-13T14:47:14.917443Z","secret":false},{"table_name":"shop_items","column_name":"created_by","type":"text","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"shop_items","column_name":"updated_by","type":"text","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"shop_items","column_name":"duration","type":"integer","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"shop_items","column_name":"description","type":"text","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"staff_disciplinary","column_name":"id","type":"uuid","nullable":false,"array":false,"default_sql":"uuid_generate_v4()","default_val":"781d5147-0b99-48fc-b522-d30a61c1488a","secret":false},{"table_name":"staff_disciplinary","column_name":"user_id","type":"text","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"staff_disciplinary","column_name":"created_at","type":"timestamp with time zone","nullable":false,"array":false,"default_sql":"now()","default_val":"2024-06-13T14:47:14.917816Z","secret":false},{"table_name":"staff_disciplinary","column_name":"expiry","type":"interval","nullable":true,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"staff_disciplinary","column_name":"title","type":"text","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"staff_disciplinary","column_name":"description","type":"text","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"staff_disciplinary","column_name":"type","type":"text","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"staff_disciplinary","column_name":"state","type":"text","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"staff_disciplinary_types","column_name":"id","type":"text","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"staff_disciplinary_types","column_name":"name","type":"text","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"staff_disciplinary_types","column_name":"self_assignable","type":"boolean","nullable":false,"array":false,"default_sql":"false","default_val":false,"secret":false},{"table_name":"staff_disciplinary_types","column_name":"perm_limits","type":"text","nullable":false,"array":true,"default_sql":null,"default_val":null,"secret":false},{"table_name":"staff_disciplinary_types","column_name":"created_at","type":"timestamp with time zone","nullable":false,"array":false,"default_sql":"now()","default_val":"2024-06-13T14:47:14.918272Z","secret":false},{"table_name":"staff_disciplinary_types","column_name":"additory","type":"boolean","nullable":false,"array":false,"default_sql":"false","default_val":false,"secret":false},{"table_name":"staff_disciplinary_types","column_name":"needs_approval","type":"boolean","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"staff_disciplinary_types","column_name":"max_expiry","type":"interval","nullable":true,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"staff_disciplinary_types","column_name":"description","type":"text","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"staff_general_logs","column_name":"user_id","type":"text","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"staff_general_logs","column_name":"action","type":"text","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"staff_general_logs","column_name":"data","type":"jsonb","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"staff_general_logs","column_name":"created_at","type":"timestamp with time zone","nullable":false,"array":false,"default_sql":"now()","default_val":"2024-06-13T14:47:14.918664Z","secret":false},{"table_name":"staff_members","column_name":"user_id","type":"text","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"staff_members","column_name":"perm_overrides","type":"text","nullable":false,"array":true,"default_sql":"'{}'::text[]","default_val":{"Elements":null,"Dimensions":null,"Status":2},"secret":false},{"table_name":"staff_members","column_name":"mfa_secret","type":"text","nullable":true,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"staff_members","column_name":"no_autosync","type":"boolean","nullable":false,"array":false,"default_sql":"false","default_val":false,"secret":false},{"table_name":"staff_members","column_name":"created_at","type":"timestamp with time zone","nullable":false,"array":false,"default_sql":"now()","default_val":"2024-06-13T14:47:14.919036Z","secret":false},{"table_name":"staff_members","column_name":"positions","type":"uuid","nullable":false,"array":true,"default_sql":null,"default_val":null,"secret":false},{"table_name":"staff_members","column_name":"mfa_verified","type":"boolean","nullable":false,"array":false,"default_sql":"false","default_val":false,"secret":false},{"table_name":"staff_members","column_name":"unaccounted","type":"boolean","nullable":false,"array":false,"default_sql":"false","default_val":false,"secret":false},{"table_name":"staff_onboardings","column_name":"id","type":"uuid","nullable":false,"array":false,"default_sql":"uuid_generate_v4()","default_val":"2f5dc9a5-19ba-4cbf-95cc-2da91152a66d","secret":false},{"table_name":"staff_onboardings","column_name":"user_id","type":"text","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"staff_onboardings","column_name":"state","type":"text","nullable":false,"array":false,"default_sql":"'pending'::text","default_val":"pending","secret":false},{"table_name":"staff_onboardings","column_name":"created_at","type":"timestamp with time zone","nullable":false,"array":false,"default_sql":"now()","default_val":"2024-06-13T14:47:14.919608Z","secret":false},{"table_name":"staff_onboardings","column_name":"finished_at","type":"timestamp with time zone","nullable":true,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"staff_onboardings","column_name":"guild_id","type":"text","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"staff_onboardings","column_name":"void","type":"boolean","nullable":false,"array":false,"default_sql":"false","default_val":false,"secret":false},{"table_name":"staff_onboardings","column_name":"questions","type":"jsonb","nullable":true,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"staff_onboardings","column_name":"answers","type":"jsonb","nullable":true,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"staff_onboardings","column_name":"verdict","type":"jsonb","nullable":true,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"staff_onboardings","column_name":"staff_verify_code","type":"text","nullable":true,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"staff_positions","column_name":"id","type":"uuid","nullable":false,"array":false,"default_sql":"uuid_generate_v4()","default_val":"14249b33-8f2b-4d1b-a28a-f913faa3330d","secret":false},{"table_name":"staff_positions","column_name":"name","type":"text","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"staff_positions","column_name":"role_id","type":"text","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"staff_positions","column_name":"perms","type":"text","nullable":false,"array":true,"default_sql":null,"default_val":null,"secret":false},{"table_name":"staff_positions","column_name":"created_at","type":"timestamp with time zone","nullable":false,"array":false,"default_sql":"now()","default_val":"2024-06-13T14:47:14.920214Z","secret":false},{"table_name":"staff_positions","column_name":"index","type":"integer","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"staff_positions","column_name":"corresponding_roles","type":"jsonb","nullable":false,"array":false,"default_sql":"'[]'::jsonb","default_val":[],"secret":false},{"table_name":"staff_positions","column_name":"icon","type":"text","nullable":false,"array":false,"default_sql":"'mdi:user'::text","default_val":"mdi:user","secret":false},{"table_name":"staff_template_types","column_name":"id","type":"text","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"staff_template_types","column_name":"name","type":"text","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"staff_template_types","column_name":"icon","type":"text","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"staff_template_types","column_name":"short","type":"text","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"staff_template_types","column_name":"created_at","type":"timestamp with time zone","nullable":false,"array":false,"default_sql":"now()","default_val":"2024-06-13T14:47:14.920772Z","secret":false},{"table_name":"staff_templates","column_name":"id","type":"uuid","nullable":false,"array":false,"default_sql":"uuid_generate_v4()","default_val":"b784b9e2-a952-4aef-8a5a-ac9807aa642c","secret":false},{"table_name":"staff_templates","column_name":"name","type":"text","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"staff_templates","column_name":"emoji","type":"text","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"staff_templates","column_name":"tags","type":"text","nullable":false,"array":true,"default_sql":null,"default_val":null,"secret":false},{"table_name":"staff_templates","column_name":"description","type":"text","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"staff_templates","column_name":"type","type":"text","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"staff_templates","column_name":"created_at","type":"timestamp with time zone","nullable":false,"array":false,"default_sql":"now()","default_val":"2024-06-13T14:47:14.921152Z","secret":false},{"table_name":"staffpanel__authchain","column_name":"itag","type":"uuid","nullable":false,"array":false,"default_sql":"uuid_generate_v4()","default_val":"c99e81c1-959b-42eb-bbb2-be0e817dac33","secret":false},{"table_name":"staffpanel__authchain","column_name":"user_id","type":"text","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"staffpanel__authchain","column_name":"token","type":"text","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"staffpanel__authchain","column_name":"popplio_token","type":"text","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"staffpanel__authchain","column_name":"created_at","type":"timestamp with time zone","nullable":false,"array":false,"default_sql":"now()","default_val":"2024-06-13T14:47:14.921458Z","secret":false},{"table_name":"staffpanel__authchain","column_name":"state","type":"text","nullable":false,"array":false,"default_sql":"'pending'::text","default_val":"pending","secret":false},{"table_name":"tasks","column_name":"task_id","type":"uuid","nullable":false,"array":false,"default_sql":"uuid_generate_v4()","default_val":"d17dd57c-9c03-4337-b901-543ff77320e6","secret":false},{"table_name":"tasks","column_name":"task_name","type":"text","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"tasks","column_name":"output","type":"jsonb","nullable":true,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"tasks","column_name":"statuses","type":"jsonb","nullable":false,"array":true,"default_sql":"'{}'::jsonb[]","default_val":{"Elements":null,"Dimensions":null,"Status":2},"secret":false},{"table_name":"tasks","column_name":"for_user","type":"text","nullable":true,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"tasks","column_name":"expiry","type":"interval","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"tasks","column_name":"state","type":"text","nullable":false,"array":false,"default_sql":"'pending'::text","default_val":"pending","secret":false},{"table_name":"tasks","column_name":"created_at","type":"timestamp without time zone","nullable":false,"array":false,"default_sql":"now()","default_val":"2024-06-13T14:47:14.922185Z","secret":false},{"table_name":"tasks","column_name":"allow_unauthenticated","type":"boolean","nullable":false,"array":false,"default_sql":"false","default_val":false,"secret":false},{"table_name":"tasks","column_name":"task_key","type":"text","nullable":true,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"team_members","column_name":"user_id","type":"text","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"team_members","column_name":"team_id","type":"uuid","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"team_members","column_name":"created_at","type":"timestamp with time zone","nullable":false,"array":false,"default_sql":"now()","default_val":"2024-06-13T14:47:14.922474Z","secret":false},{"table_name":"team_members","column_name":"flags","type":"text","nullable":false,"array":true,"default_sql":"'{}'::text[]","default_val":{"Elements":null,"Dimensions":null,"Status":2},"secret":false},{"table_name":"team_members","column_name":"itag","type":"uuid","nullable":false,"array":false,"default_sql":"uuid_generate_v4()","default_val":"2bb264d6-84ce-4514-a521-27dab8f7a174","secret":false},{"table_name":"team_members","column_name":"mentionable","type":"boolean","nullable":false,"array":false,"default_sql":"true","default_val":true,"secret":false},{"table_name":"team_members","column_name":"data_holder","type":"boolean","nullable":false,"array":false,"default_sql":"false","default_val":false,"secret":false},{"table_name":"team_members","column_name":"service","type":"text","nullable":false,"array":false,"default_sql":"'api'::text","default_val":"api","secret":false},{"table_name":"teams","column_name":"id","type":"uuid","nullable":false,"array":false,"default_sql":"uuid_generate_v4()","default_val":"99bc7604-582d-4a28-92a7-87667c881173","secret":false},{"table_name":"teams","column_name":"name","type":"text","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"teams","column_name":"short","type":"text","nullable":true,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"teams","column_name":"tags","type":"text","nullable":true,"array":true,"default_sql":null,"default_val":null,"secret":false},{"table_name":"teams","column_name":"votes","type":"integer","nullable":false,"array":false,"default_sql":"0","default_val":0,"secret":false},{"table_name":"teams","column_name":"extra_links","type":"jsonb","nullable":false,"array":false,"default_sql":"'[]'::jsonb","default_val":[],"secret":false},{"table_name":"teams","column_name":"vote_banned","type":"boolean","nullable":false,"array":false,"default_sql":"false","default_val":false,"secret":false},{"table_name":"teams","column_name":"nsfw","type":"boolean","nullable":false,"array":false,"default_sql":"false","default_val":false,"secret":false},{"table_name":"teams","column_name":"vanity_ref","type":"uuid","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"teams","column_name":"updated_at","type":"timestamp with time zone","nullable":false,"array":false,"default_sql":"now()","default_val":"2024-06-13T14:47:14.923737Z","secret":false},{"table_name":"teams","column_name":"created_at","type":"timestamp with time zone","nullable":false,"array":false,"default_sql":"now()","default_val":"2024-06-13T14:47:14.92384Z","secret":false},{"table_name":"tickets","column_name":"itag","type":"uuid","nullable":false,"array":false,"default_sql":"uuid_generate_v4()","default_val":"16e988a5-b70f-49f0-8cc7-db3bf8ac2942","secret":false},{"table_name":"tickets","column_name":"channel_id","type":"text","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"tickets","column_name":"topic_id","type":"text","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"tickets","column_name":"topic","type":"jsonb","nullable":false,"array":false,"default_sql":"'{}'::jsonb","default_val":{},"secret":false},{"table_name":"tickets","column_name":"issue","type":"text","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"tickets","column_name":"ticket_context","type":"jsonb","nullable":false,"array":false,"default_sql":"'{}'::jsonb","default_val":{},"secret":false},{"table_name":"tickets","column_name":"messages","type":"jsonb","nullable":false,"array":false,"default_sql":"'{}'::jsonb","default_val":{},"secret":false},{"table_name":"tickets","column_name":"user_id","type":"text","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"tickets","column_name":"id","type":"text","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"tickets","column_name":"close_user_id","type":"text","nullable":true,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"tickets","column_name":"open","type":"boolean","nullable":false,"array":false,"default_sql":"true","default_val":true,"secret":false},{"table_name":"tickets","column_name":"created_at","type":"timestamp with time zone","nullable":false,"array":false,"default_sql":"now()","default_val":"2024-06-13T14:47:14.924654Z","secret":false},{"table_name":"tickets","column_name":"enc_key","type":"text","nullable":true,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"user_notifications","column_name":"itag","type":"uuid","nullable":false,"array":false,"default_sql":"uuid_generate_v4()","default_val":"f04623b4-75b6-409a-8cb7-86f929514cb8","secret":false},{"table_name":"user_notifications","column_name":"user_id","type":"text","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"user_notifications","column_name":"notif_id","type":"text","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"user_notifications","column_name":"auth","type":"text","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"user_notifications","column_name":"p256dh","type":"text","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"user_notifications","column_name":"endpoint","type":"text","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"user_notifications","column_name":"created_at","type":"timestamp with time zone","nullable":false,"array":false,"default_sql":"now()","default_val":"2024-06-13T14:47:14.925055Z","secret":false},{"table_name":"user_notifications","column_name":"ua","type":"text","nullable":false,"array":false,"default_sql":"''::text","default_val":"","secret":false},{"table_name":"user_reminders","column_name":"itag","type":"uuid","nullable":false,"array":false,"default_sql":"uuid_generate_v4()","default_val":"60149e6a-3bbc-4c9c-9ee8-7830eee2142f","secret":false},{"table_name":"user_reminders","column_name":"user_id","type":"text","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"user_reminders","column_name":"target_id","type":"text","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"user_reminders","column_name":"created_at","type":"timestamp with time zone","nullable":false,"array":false,"default_sql":"now()","default_val":"2024-06-13T14:47:14.925449Z","secret":false},{"table_name":"user_reminders","column_name":"last_acked","type":"timestamp with time zone","nullable":false,"array":false,"default_sql":"now()","default_val":"2024-06-13T14:47:14.925598Z","secret":false},{"table_name":"user_reminders","column_name":"target_type","type":"text","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"users","column_name":"itag","type":"uuid","nullable":false,"array":false,"default_sql":"uuid_generate_v4()","default_val":"0dff2a3d-de9a-475e-a690-0611facb64f5","secret":false},{"table_name":"users","column_name":"user_id","type":"text","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"users","column_name":"experiments","type":"text","nullable":false,"array":true,"default_sql":"'{}'::text[]","default_val":{"Elements":null,"Dimensions":null,"Status":2},"secret":false},{"table_name":"users","column_name":"certified","type":"boolean","nullable":false,"array":false,"default_sql":"false","default_val":false,"secret":false},{"table_name":"users","column_name":"developer","type":"boolean","nullable":false,"array":false,"default_sql":"false","default_val":false,"secret":false},{"table_name":"users","column_name":"captcha_sponsor_enabled","type":"boolean","nullable":false,"array":false,"default_sql":"true","default_val":true,"secret":false},{"table_name":"users","column_name":"extra_links","type":"jsonb","nullable":false,"array":false,"default_sql":"'[]'::jsonb","default_val":[],"secret":false},{"table_name":"users","column_name":"api_token","type":"text","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":true},{"table_name":"users","column_name":"about","type":"text","nullable":true,"array":false,"default_sql":"'I am a very mysterious person'::text","default_val":"I am a very mysterious person","secret":false},{"table_name":"users","column_name":"vote_banned","type":"boolean","nullable":false,"array":false,"default_sql":"false","default_val":false,"secret":false},{"table_name":"users","column_name":"banned","type":"boolean","nullable":false,"array":false,"default_sql":"false","default_val":false,"secret":false},{"table_name":"users","column_name":"bug_hunters","type":"boolean","nullable":false,"array":false,"default_sql":"false","default_val":false,"secret":false},{"table_name":"users","column_name":"created_at","type":"timestamp with time zone","nullable":false,"array":false,"default_sql":"now()","default_val":"2024-06-13T14:47:14.926828Z","secret":false},{"table_name":"users","column_name":"updated_at","type":"timestamp with time zone","nullable":false,"array":false,"default_sql":"now()","default_val":"2024-06-13T14:47:14.926923Z","secret":false},{"table_name":"users","column_name":"last_booster_claim","type":"timestamp with time zone","nullable":true,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"users","column_name":"app_banned","type":"boolean","nullable":false,"array":false,"default_sql":"false","default_val":false,"secret":false},{"table_name":"vanity","column_name":"target_id","type":"text","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"vanity","column_name":"target_type","type":"text","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"vanity","column_name":"code","type":"USER-DEFINED","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"vanity","column_name":"itag","type":"uuid","nullable":false,"array":false,"default_sql":"uuid_generate_v4()","default_val":"1b4aba5b-6963-4dba-8f8e-a26f67020180","secret":false},{"table_name":"vanity","column_name":"created_at","type":"timestamp with time zone","nullable":false,"array":false,"default_sql":"now()","default_val":"2024-06-13T14:47:14.927367Z","secret":false},{"table_name":"vote_credit_tiers","column_name":"id","type":"text","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"vote_credit_tiers","column_name":"position","type":"integer","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"vote_credit_tiers","column_name":"votes","type":"integer","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"vote_credit_tiers","column_name":"cents","type":"double precision","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"vote_credit_tiers","column_name":"created_at","type":"timestamp with time zone","nullable":false,"array":false,"default_sql":"now()","default_val":"2024-06-13T14:47:14.92759Z","secret":false},{"table_name":"vote_credit_tiers","column_name":"target_type","type":"text","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"webhook_logs","column_name":"id","type":"uuid","nullable":false,"array":false,"default_sql":"uuid_generate_v4()","default_val":"38adb05d-9da1-4aa6-94fc-c4e8f5d49d3b","secret":false},{"table_name":"webhook_logs","column_name":"target_id","type":"text","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"webhook_logs","column_name":"target_type","type":"text","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"webhook_logs","column_name":"user_id","type":"text","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"webhook_logs","column_name":"url","type":"text","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"webhook_logs","column_name":"data","type":"jsonb","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"webhook_logs","column_name":"bad_intent","type":"boolean","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"webhook_logs","column_name":"created_at","type":"timestamp with time zone","nullable":false,"array":false,"default_sql":"now()","default_val":"2024-06-13T14:47:14.928103Z","secret":false},{"table_name":"webhook_logs","column_name":"state","type":"text","nullable":false,"array":false,"default_sql":"'PENDING'::text","default_val":"PENDING","secret":false},{"table_name":"webhook_logs","column_name":"tries","type":"integer","nullable":false,"array":false,"default_sql":"0","default_val":0,"secret":false},{"table_name":"webhook_logs","column_name":"last_try","type":"timestamp with time zone","nullable":false,"array":false,"default_sql":"now()","default_val":"2024-06-13T14:47:14.928499Z","secret":false},{"table_name":"webhook_logs","column_name":"response","type":"text","nullable":true,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"webhook_logs","column_name":"status_code","type":"integer","nullable":false,"array":false,"default_sql":"0","default_val":0,"secret":false},{"table_name":"webhook_logs","column_name":"webhook_id","type":"uuid","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"webhooks","column_name":"id","type":"uuid","nullable":false,"array":false,"default_sql":"uuid_generate_v4()","default_val":"0eb89fce-f722-4b26-88d4-1ed715a44bb0","secret":false},{"table_name":"webhooks","column_name":"target_id","type":"text","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"webhooks","column_name":"target_type","type":"text","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"webhooks","column_name":"url","type":"text","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"webhooks","column_name":"secret","type":"text","nullable":false,"array":false,"default_sql":null,"default_val":null,"secret":false},{"table_name":"webhooks","column_name":"created_at","type":"timestamp without time zone","nullable":false,"array":false,"default_sql":"now()","default_val":"2024-06-13T14:47:14.929051Z","secret":false},{"table_name":"webhooks","column_name":"broken","type":"boolean","nullable":false,"array":false,"default_sql":"false","default_val":false,"secret":false},{"table_name":"webhooks","column_name":"simple_auth","type":"boolean","nullable":false,"array":false,"default_sql":"false","default_val":false,"secret":false},{"table_name":"webhooks","column_name":"event_whitelist","type":"text","nullable":false,"array":true,"default_sql":"'{}'::text[]","default_val":{"Elements":null,"Dimensions":null,"Status":2},"secret":false},{"table_name":"webhooks","column_name":"name","type":"text","nullable":false,"array":false,"default_sql":"'My untitled webhook'::text","default_val":"My untitled webhook","secret":false}] diff --git a/data/seed.iblseed b/data/seed.iblseed index 43f07101..f6e2fabe 100644 Binary files a/data/seed.iblseed and b/data/seed.iblseed differ diff --git a/routes/packs/endpoints/add_pack/route.go b/routes/packs/endpoints/add_pack/route.go index 1f2b09e2..4c19156b 100644 --- a/routes/packs/endpoints/add_pack/route.go +++ b/routes/packs/endpoints/add_pack/route.go @@ -4,10 +4,15 @@ import ( "net/http" "popplio/state" "popplio/types" + "popplio/validators" + "slices" + "strings" + "unicode" docs "github.com/infinitybotlist/eureka/doclib" "github.com/infinitybotlist/eureka/dovewing" "github.com/infinitybotlist/eureka/uapi" + "go.uber.org/zap" "github.com/go-playground/validator/v10" ) @@ -57,6 +62,31 @@ func Route(d uapi.RouteData, r *http.Request) uapi.HttpResponse { return uapi.ValidatorErrorResponse(compiledMessages, errors) } + // Strip out unicode characters and validate pack URL + payload.URL = strings.Map(func(r rune) rune { + if r > unicode.MaxASCII { + return -1 + } + return r + }, payload.URL) + + systems, err := validators.GetWordBlacklistSystems(d.Context, payload.URL) + + if err != nil { + state.Logger.Error("Error while getting word blacklist systems", zap.Error(err), zap.String("userID", d.Auth.ID)) + return uapi.HttpResponse{ + Status: http.StatusBadRequest, + Json: types.ApiError{Message: "Error while getting word blacklist systems: " + err.Error()}, + } + } + + if slices.Contains(systems, "pack.url") { + return uapi.HttpResponse{ + Status: http.StatusBadRequest, + Json: types.ApiError{Message: "The chosen pack url is blacklisted"}, + } + } + // Check that all bots exist for _, bot := range payload.Bots { botUser, err := dovewing.GetUser(d.Context, bot, state.DovewingPlatformDiscord) diff --git a/routes/vanity/endpoints/patch_vanity/route.go b/routes/vanity/endpoints/patch_vanity/route.go index f77a88cc..f2af5ae1 100644 --- a/routes/vanity/endpoints/patch_vanity/route.go +++ b/routes/vanity/endpoints/patch_vanity/route.go @@ -2,12 +2,14 @@ package patch_vanity import ( "net/http" + "slices" "strings" "unicode" "popplio/state" "popplio/teams" "popplio/types" + "popplio/validators" docs "github.com/infinitybotlist/eureka/doclib" "github.com/infinitybotlist/eureka/uapi" @@ -103,7 +105,7 @@ func Route(d uapi.RouteData, r *http.Request) uapi.HttpResponse { } } - // Strip out unicode characters + // Strip out unicode characters and validate vanity vanity = strings.Map(func(r rune) rune { if r > unicode.MaxASCII { return -1 @@ -111,10 +113,21 @@ func Route(d uapi.RouteData, r *http.Request) uapi.HttpResponse { return r }, vanity) - if vanity == "undefined" || vanity == "null" || vanity == "blog" || vanity == "help" { + systems, err := validators.GetWordBlacklistSystems(d.Context, vanity) + + if err != nil { + state.Logger.Error("Error while getting word blacklist systems", zap.Error(err), zap.String("userID", d.Auth.ID)) + return uapi.HttpResponse{ + Status: http.StatusBadRequest, + Json: types.ApiError{Message: "Error while getting word blacklist systems: " + err.Error()}, + } + + } + + if slices.Contains(systems, "vanity.code") { return uapi.HttpResponse{ Status: http.StatusBadRequest, - Json: types.ApiError{Message: "Vanity cannot be undefined, blog, help or null"}, + Json: types.ApiError{Message: "The chosen vanity is blacklisted"}, } } diff --git a/validators/check_blacklisted_words.go b/validators/check_blacklisted_words.go new file mode 100644 index 00000000..0e7d098a --- /dev/null +++ b/validators/check_blacklisted_words.go @@ -0,0 +1,27 @@ +package validators + +import ( + "context" + "errors" + "fmt" + "popplio/state" + + "github.com/jackc/pgx/v5" +) + +// Returns the system for which this word is blacklisted +func GetWordBlacklistSystems(ctx context.Context, word string) ([]string, error) { + var systems []string + + err := state.Pool.QueryRow(ctx, "SELECT systems FROM blacklisted_words WHERE word = $1", word).Scan(&systems) + + if errors.Is(err, pgx.ErrNoRows) { + return nil, nil + } + + if err != nil { + return nil, fmt.Errorf("failed to get blacklisted word: %w", err) + } + + return systems, nil +}