From 4db289c3c09faf0d03dfd44cbc6d60d1e32fa592 Mon Sep 17 00:00:00 2001 From: Brandon Thomas Date: Sun, 13 Jun 2021 06:31:07 -0400 Subject: [PATCH] codegen db --- sqlx-data.json | 8956 +++++++++++++++++++++++++----------------------- 1 file changed, 4581 insertions(+), 4375 deletions(-) diff --git a/sqlx-data.json b/sqlx-data.json index 92209881f3..6250cf2002 100644 --- a/sqlx-data.json +++ b/sqlx-data.json @@ -38,13 +38,13 @@ ] } }, - "0c32927e9292e0cf4aeb169ee3ed0ec122712a66a6850eb9e9da31d5a97e6e72": { - "query": "\nSELECT\n jobs.token as job_token,\n\n jobs.status,\n jobs.on_success_result_token as maybe_result_token,\n results.public_bucket_video_path as maybe_public_bucket_video_path,\n\n jobs.maybe_w2l_template_token,\n w2l.template_type as w2l_template_type,\n w2l.title,\n\n jobs.created_at,\n jobs.updated_at\n\nFROM w2l_inference_jobs as jobs\nJOIN w2l_templates as w2l\n ON w2l.token = jobs.maybe_w2l_template_token\nLEFT OUTER JOIN w2l_results as results\n ON jobs.on_success_result_token = results.token\n\nWHERE jobs.token = ?\n ", + "05c3ebf54cd8a5374d6f4bbe21b3c6027ce6314917af8acd0ed136d375d53342": { + "query": "\nSELECT\n w2l.token as template_token,\n w2l.template_type,\n w2l.creator_user_token,\n users.username as creator_username,\n users.display_name as creator_display_name,\n w2l.title,\n w2l.frame_width,\n w2l.frame_height,\n w2l.duration_millis,\n w2l.maybe_public_bucket_preview_image_object_name,\n w2l.maybe_public_bucket_preview_video_object_name,\n w2l.is_public_listing_approved,\n w2l.created_at,\n w2l.updated_at\nFROM w2l_templates as w2l\nJOIN users\nON\n users.token = w2l.creator_user_token\nWHERE\n users.username = ?\n AND w2l.user_deleted_at IS NULL\n AND w2l.mod_deleted_at IS NULL\n ", "describe": { "columns": [ { "ordinal": 0, - "name": "job_token", + "name": "template_token", "type_info": { "type": "VarString", "flags": { @@ -56,55 +56,7 @@ }, { "ordinal": 1, - "name": "status", - "type_info": { - "type": "String", - "flags": { - "bits": 393 - }, - "char_set": 224, - "max_size": 64 - } - }, - { - "ordinal": 2, - "name": "maybe_result_token", - "type_info": { - "type": "VarString", - "flags": { - "bits": 136 - }, - "char_set": 224, - "max_size": 128 - } - }, - { - "ordinal": 3, - "name": "maybe_public_bucket_video_path", - "type_info": { - "type": "VarString", - "flags": { - "bits": 4224 - }, - "char_set": 224, - "max_size": 1020 - } - }, - { - "ordinal": 4, - "name": "maybe_w2l_template_token", - "type_info": { - "type": "VarString", - "flags": { - "bits": 136 - }, - "char_set": 224, - "max_size": 128 - } - }, - { - "ordinal": 5, - "name": "w2l_template_type", + "name": "template_type", "type_info": { "type": "String", "flags": { @@ -115,7 +67,43 @@ } }, { - "ordinal": 6, + "ordinal": 2, + "name": "creator_user_token", + "type_info": { + "type": "VarString", + "flags": { + "bits": 4233 + }, + "char_set": 224, + "max_size": 128 + } + }, + { + "ordinal": 3, + "name": "creator_username", + "type_info": { + "type": "VarString", + "flags": { + "bits": 4229 + }, + "char_set": 224, + "max_size": 80 + } + }, + { + "ordinal": 4, + "name": "creator_display_name", + "type_info": { + "type": "VarString", + "flags": { + "bits": 4225 + }, + "char_set": 224, + "max_size": 80 + } + }, + { + "ordinal": 5, "name": "title", "type_info": { "type": "String", @@ -126,8 +114,80 @@ "max_size": 1020 } }, + { + "ordinal": 6, + "name": "frame_width", + "type_info": { + "type": "Long", + "flags": { + "bits": 1 + }, + "char_set": 63, + "max_size": 10 + } + }, { "ordinal": 7, + "name": "frame_height", + "type_info": { + "type": "Long", + "flags": { + "bits": 1 + }, + "char_set": 63, + "max_size": 10 + } + }, + { + "ordinal": 8, + "name": "duration_millis", + "type_info": { + "type": "Long", + "flags": { + "bits": 1 + }, + "char_set": 63, + "max_size": 10 + } + }, + { + "ordinal": 9, + "name": "maybe_public_bucket_preview_image_object_name", + "type_info": { + "type": "VarString", + "flags": { + "bits": 128 + }, + "char_set": 224, + "max_size": 1020 + } + }, + { + "ordinal": 10, + "name": "maybe_public_bucket_preview_video_object_name", + "type_info": { + "type": "VarString", + "flags": { + "bits": 128 + }, + "char_set": 224, + "max_size": 1020 + } + }, + { + "ordinal": 11, + "name": "is_public_listing_approved", + "type_info": { + "type": "Tiny", + "flags": { + "bits": 8 + }, + "char_set": 63, + "max_size": 1 + } + }, + { + "ordinal": 12, "name": "created_at", "type_info": { "type": "Timestamp", @@ -139,7 +199,7 @@ } }, { - "ordinal": 8, + "ordinal": 13, "name": "updated_at", "type_info": { "type": "Timestamp", @@ -157,12 +217,17 @@ "nullable": [ false, false, - true, - true, - true, false, false, false, + false, + false, + false, + false, + true, + true, + true, + false, false ] } @@ -205,85 +270,8 @@ ] } }, - "0fc26cb6ab34ee6cd9d0cd8fac8bae7bd6f25bbf7c785cd5dc8888d08099b88b": { - "query": "\nSELECT\n jobs.token as job_token,\n\n jobs.status,\n jobs.on_success_result_token as maybe_template_token,\n\n jobs.created_at,\n jobs.updated_at\n\nFROM w2l_template_upload_jobs as jobs\n\nWHERE jobs.token = ?\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "job_token", - "type_info": { - "type": "VarString", - "flags": { - "bits": 4229 - }, - "char_set": 224, - "max_size": 128 - } - }, - { - "ordinal": 1, - "name": "status", - "type_info": { - "type": "String", - "flags": { - "bits": 393 - }, - "char_set": 224, - "max_size": 64 - } - }, - { - "ordinal": 2, - "name": "maybe_template_token", - "type_info": { - "type": "VarString", - "flags": { - "bits": 136 - }, - "char_set": 224, - "max_size": 128 - } - }, - { - "ordinal": 3, - "name": "created_at", - "type_info": { - "type": "Timestamp", - "flags": { - "bits": 1153 - }, - "char_set": 63, - "max_size": 19 - } - }, - { - "ordinal": 4, - "name": "updated_at", - "type_info": { - "type": "Timestamp", - "flags": { - "bits": 9345 - }, - "char_set": 63, - "max_size": 19 - } - } - ], - "parameters": { - "Right": 1 - }, - "nullable": [ - false, - false, - true, - false, - false - ] - } - }, - "10d2e4544e7ee74c3c394f1305e281cbc4003df207183ceaa18384c2e77baa61": { - "query": "\nSELECT\n tts.token as model_token,\n tts.tts_model_type,\n tts.creator_user_token,\n users.username as creator_username,\n users.display_name as creator_display_name,\n tts.updatable_slug,\n tts.title,\n tts.is_mod_disabled,\n tts.created_at,\n tts.updated_at\nFROM tts_models as tts\nJOIN users\nON\n users.token = tts.creator_user_token\nWHERE\n tts.deleted_at IS NULL\n AND users.username = ?\n ", + "10baa66f954e30d5da4bdb0fe6f912b01c6ac7ec803801797a0a5fd81ae0947e": { + "query": "\nSELECT\n tts.token as model_token,\n tts.tts_model_type,\n tts.creator_user_token,\n users.username as creator_username,\n users.display_name as creator_display_name,\n tts.title,\n tts.description_markdown,\n tts.description_rendered_html,\n tts.is_locked_from_use,\n tts.is_locked_from_user_modification,\n tts.created_at,\n tts.updated_at,\n tts.user_deleted_at,\n tts.mod_deleted_at\nFROM tts_models as tts\nJOIN users\n ON users.token = tts.creator_user_token\nWHERE tts.token = ?\n ", "describe": { "columns": [ { @@ -348,18 +336,6 @@ }, { "ordinal": 5, - "name": "updatable_slug", - "type_info": { - "type": "VarString", - "flags": { - "bits": 4229 - }, - "char_set": 224, - "max_size": 256 - } - }, - { - "ordinal": 6, "name": "title", "type_info": { "type": "VarString", @@ -370,9 +346,33 @@ "max_size": 1020 } }, + { + "ordinal": 6, + "name": "description_markdown", + "type_info": { + "type": "Blob", + "flags": { + "bits": 4241 + }, + "char_set": 224, + "max_size": 262140 + } + }, { "ordinal": 7, - "name": "is_mod_disabled", + "name": "description_rendered_html", + "type_info": { + "type": "Blob", + "flags": { + "bits": 4241 + }, + "char_set": 224, + "max_size": 262140 + } + }, + { + "ordinal": 8, + "name": "is_locked_from_use", "type_info": { "type": "Tiny", "flags": { @@ -383,7 +383,19 @@ } }, { - "ordinal": 8, + "ordinal": 9, + "name": "is_locked_from_user_modification", + "type_info": { + "type": "Tiny", + "flags": { + "bits": 9 + }, + "char_set": 63, + "max_size": 1 + } + }, + { + "ordinal": 10, "name": "created_at", "type_info": { "type": "Timestamp", @@ -395,7 +407,7 @@ } }, { - "ordinal": 9, + "ordinal": 11, "name": "updated_at", "type_info": { "type": "Timestamp", @@ -405,6 +417,30 @@ "char_set": 63, "max_size": 19 } + }, + { + "ordinal": 12, + "name": "user_deleted_at", + "type_info": { + "type": "Timestamp", + "flags": { + "bits": 128 + }, + "char_set": 63, + "max_size": 19 + } + }, + { + "ordinal": 13, + "name": "mod_deleted_at", + "type_info": { + "type": "Timestamp", + "flags": { + "bits": 128 + }, + "char_set": 63, + "max_size": 19 + } } ], "parameters": { @@ -420,174 +456,16 @@ false, false, false, - false + false, + false, + false, + true, + true ] } }, - "12250420b0a3ff3bf2dd7be76daa2920777e349642245211706f32add3df442c": { - "query": "\nSELECT\n tts.token as model_token,\n tts.tts_model_type,\n tts.creator_user_token,\n users.username as creator_username,\n users.display_name as creator_display_name,\n tts.title,\n tts.updatable_slug,\n tts.private_bucket_hash,\n tts.created_at,\n tts.updated_at\nFROM tts_models as tts\nJOIN users\nON users.token = tts.creator_user_token\nWHERE tts.token = ?\nAND tts.deleted_at IS NULL\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "model_token", - "type_info": { - "type": "VarString", - "flags": { - "bits": 4229 - }, - "char_set": 224, - "max_size": 128 - } - }, - { - "ordinal": 1, - "name": "tts_model_type", - "type_info": { - "type": "String", - "flags": { - "bits": 385 - }, - "char_set": 224, - "max_size": 60 - } - }, - { - "ordinal": 2, - "name": "creator_user_token", - "type_info": { - "type": "VarString", - "flags": { - "bits": 4233 - }, - "char_set": 224, - "max_size": 128 - } - }, - { - "ordinal": 3, - "name": "creator_username", - "type_info": { - "type": "VarString", - "flags": { - "bits": 4229 - }, - "char_set": 224, - "max_size": 80 - } - }, - { - "ordinal": 4, - "name": "creator_display_name", - "type_info": { - "type": "VarString", - "flags": { - "bits": 4225 - }, - "char_set": 224, - "max_size": 80 - } - }, - { - "ordinal": 5, - "name": "title", - "type_info": { - "type": "VarString", - "flags": { - "bits": 4225 - }, - "char_set": 224, - "max_size": 1020 - } - }, - { - "ordinal": 6, - "name": "updatable_slug", - "type_info": { - "type": "VarString", - "flags": { - "bits": 4229 - }, - "char_set": 224, - "max_size": 256 - } - }, - { - "ordinal": 7, - "name": "private_bucket_hash", - "type_info": { - "type": "String", - "flags": { - "bits": 4233 - }, - "char_set": 224, - "max_size": 256 - } - }, - { - "ordinal": 8, - "name": "created_at", - "type_info": { - "type": "Timestamp", - "flags": { - "bits": 1153 - }, - "char_set": 63, - "max_size": 19 - } - }, - { - "ordinal": 9, - "name": "updated_at", - "type_info": { - "type": "Timestamp", - "flags": { - "bits": 9345 - }, - "char_set": 63, - "max_size": 19 - } - } - ], - "parameters": { - "Right": 1 - }, - "nullable": [ - false, - false, - false, - false, - false, - false, - false, - false, - false, - false - ] - } - }, - "215f82f4034ccb47bfa000c3fead66c3c9f7d5caa905aa99a702d396aeeebbc6": { - "query": "\nINSERT INTO tts_model_upload_jobs\nSET\n token = ?,\n uuid_idempotency_token = ?,\n creator_user_token = ?,\n creator_ip_address = ?,\n creator_set_visibility = ?,\n title = ?,\n tts_model_type = ?,\n maybe_subject_token = ?,\n maybe_actor_subject_token = ?,\n download_url = ?,\n download_url_type = ?,\n status = \"pending\"\n ", - "describe": { - "columns": [], - "parameters": { - "Right": 11 - }, - "nullable": [] - } - }, - "22a52ac04d4a53d48d5134fc929d39d8b13617bf62a2267be7bde0ac54ec38e2": { - "query": "\nUPDATE w2l_templates\nSET\n deleted_at = NULL,\n maybe_mod_user_token = ?\nWHERE\n token = ?\nLIMIT 1\n ", - "describe": { - "columns": [], - "parameters": { - "Right": 2 - }, - "nullable": [] - } - }, - "2537264be5f06db65bb9faa4b1a3e3fe97a18e8247d85cb8b10ea6f3b72b942b": { - "query": "\nSELECT\n w2l.token as template_token,\n w2l.template_type,\n w2l.creator_user_token,\n users.username as creator_username,\n users.display_name as creator_display_name,\n w2l.updatable_slug,\n w2l.title,\n w2l.frame_width,\n w2l.frame_height,\n w2l.duration_millis,\n w2l.maybe_public_bucket_preview_image_object_name,\n w2l.maybe_public_bucket_preview_video_object_name,\n w2l.is_mod_public_listing_approved,\n w2l.created_at,\n w2l.updated_at\nFROM w2l_templates as w2l\nJOIN users\nON\n users.token = w2l.creator_user_token\nWHERE\n w2l.deleted_at IS NULL\n AND users.username = ?\n ", + "11554bff2bf06cf0f843b716c99c61b540639207d716eeabe3e2afb189290ab6": { + "query": "\nSELECT\n w2l.token as template_token,\n w2l.template_type,\n w2l.creator_user_token,\n users.username as creator_username,\n users.display_name as creator_display_name,\n w2l.title,\n w2l.frame_width,\n w2l.frame_height,\n w2l.duration_millis,\n w2l.maybe_public_bucket_preview_image_object_name,\n w2l.maybe_public_bucket_preview_video_object_name,\n w2l.is_public_listing_approved,\n w2l.is_locked_from_use,\n w2l.is_locked_from_user_modification,\n w2l.created_at,\n w2l.updated_at,\n w2l.user_deleted_at,\n w2l.mod_deleted_at\nFROM w2l_templates as w2l\nJOIN users\n ON users.token = w2l.creator_user_token\nWHERE\n w2l.token = ?\n AND w2l.user_deleted_at IS NULL\n AND w2l.mod_deleted_at IS NULL\n ", "describe": { "columns": [ { @@ -652,18 +530,6 @@ }, { "ordinal": 5, - "name": "updatable_slug", - "type_info": { - "type": "VarString", - "flags": { - "bits": 4229 - }, - "char_set": 224, - "max_size": 256 - } - }, - { - "ordinal": 6, "name": "title", "type_info": { "type": "String", @@ -675,7 +541,7 @@ } }, { - "ordinal": 7, + "ordinal": 6, "name": "frame_width", "type_info": { "type": "Long", @@ -687,7 +553,7 @@ } }, { - "ordinal": 8, + "ordinal": 7, "name": "frame_height", "type_info": { "type": "Long", @@ -699,7 +565,7 @@ } }, { - "ordinal": 9, + "ordinal": 8, "name": "duration_millis", "type_info": { "type": "Long", @@ -711,7 +577,7 @@ } }, { - "ordinal": 10, + "ordinal": 9, "name": "maybe_public_bucket_preview_image_object_name", "type_info": { "type": "VarString", @@ -723,7 +589,7 @@ } }, { - "ordinal": 11, + "ordinal": 10, "name": "maybe_public_bucket_preview_video_object_name", "type_info": { "type": "VarString", @@ -735,12 +601,24 @@ } }, { - "ordinal": 12, - "name": "is_mod_public_listing_approved", + "ordinal": 11, + "name": "is_public_listing_approved", "type_info": { "type": "Tiny", "flags": { - "bits": 0 + "bits": 8 + }, + "char_set": 63, + "max_size": 1 + } + }, + { + "ordinal": 12, + "name": "is_locked_from_use", + "type_info": { + "type": "Tiny", + "flags": { + "bits": 9 }, "char_set": 63, "max_size": 1 @@ -748,6 +626,18 @@ }, { "ordinal": 13, + "name": "is_locked_from_user_modification", + "type_info": { + "type": "Tiny", + "flags": { + "bits": 9 + }, + "char_set": 63, + "max_size": 1 + } + }, + { + "ordinal": 14, "name": "created_at", "type_info": { "type": "Timestamp", @@ -759,7 +649,7 @@ } }, { - "ordinal": 14, + "ordinal": 15, "name": "updated_at", "type_info": { "type": "Timestamp", @@ -769,6 +659,30 @@ "char_set": 63, "max_size": 19 } + }, + { + "ordinal": 16, + "name": "user_deleted_at", + "type_info": { + "type": "Timestamp", + "flags": { + "bits": 128 + }, + "char_set": 63, + "max_size": 19 + } + }, + { + "ordinal": 17, + "name": "mod_deleted_at", + "type_info": { + "type": "Timestamp", + "flags": { + "bits": 128 + }, + "char_set": 63, + "max_size": 19 + } } ], "parameters": { @@ -784,27 +698,80 @@ false, false, false, - false, true, true, true, false, - false + false, + false, + false, + true, + true ] } }, - "294c089b17fdd87d7e579c05a9d90e9bfa5b7465cafa9a95af08d58709212440": { - "query": "\nUPDATE w2l_template_upload_jobs\nSET\n status = ?,\n failure_reason = ?,\n retry_at = NOW() + interval 2 minute\nWHERE id = ?\n ", + "1168f39a5ec892d06e941b0dba0e955a27ef976567eeafd6e550bc42ea4c4331": { + "query": "\nINSERT INTO tts_inference_jobs\nSET\n token = ?,\n uuid_idempotency_token = ?,\n\n model_token = ?,\n raw_inference_text = ?,\n maybe_creator_user_token = ?,\n creator_ip_address = ?,\n creator_set_visibility = ?,\n status = \"pending\"\n ", "describe": { "columns": [], "parameters": { - "Right": 3 + "Right": 7 }, "nullable": [] } }, - "2a00159789d38ecb28249096980d591606af8b55d60ce719d68309eb73d42bb0": { - "query": "\nSELECT\n tts.token as model_token,\n tts.tts_model_type,\n tts.creator_user_token,\n users.username as creator_username,\n users.display_name as creator_display_name,\n tts.updatable_slug,\n tts.title,\n tts.is_mod_disabled,\n tts.created_at,\n tts.updated_at\nFROM tts_models as tts\nJOIN users\nON\n users.token = tts.creator_user_token\nWHERE\n tts.deleted_at IS NULL\n AND tts.is_mod_disabled IS FALSE\n AND users.username = ?\n ", + "1236640a30d0d5177e13c31b61b791874f7c70026003a58ba6e07e7af46c30c1": { + "query": "\nSELECT\n next_id\nFROM\n w2l_result_synthetic_ids\nWHERE\n user_token = ?\nLIMIT 1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "next_id", + "type_info": { + "type": "LongLong", + "flags": { + "bits": 1 + }, + "char_set": 63, + "max_size": 20 + } + } + ], + "parameters": { + "Right": 1 + }, + "nullable": [ + false + ] + } + }, + "150c98c00f4cd6954428736583eae913be578c4e69dac317d4445bc0e97743c9": { + "query": "\nSELECT\n next_id\nFROM\n tts_result_synthetic_ids\nWHERE\n user_token = ?\nLIMIT 1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "next_id", + "type_info": { + "type": "LongLong", + "flags": { + "bits": 1 + }, + "char_set": 63, + "max_size": 20 + } + } + ], + "parameters": { + "Right": 1 + }, + "nullable": [ + false + ] + } + }, + "1513af6ee028edfea33311b64d5d71f784ea058bbde114cfbc9b1785ef98c7e8": { + "query": "\nSELECT\n tts.token as model_token,\n tts.tts_model_type,\n tts.creator_user_token,\n users.username as creator_username,\n users.display_name as creator_display_name,\n tts.title,\n tts.description_markdown,\n tts.description_rendered_html,\n tts.is_locked_from_use,\n tts.is_locked_from_user_modification,\n tts.created_at,\n tts.updated_at,\n tts.user_deleted_at,\n tts.mod_deleted_at\nFROM tts_models as tts\nJOIN users\n ON users.token = tts.creator_user_token\nWHERE\n tts.token = ?\n AND tts.user_deleted_at IS NULL\n AND tts.mod_deleted_at IS NULL\n ", "describe": { "columns": [ { @@ -869,18 +836,6 @@ }, { "ordinal": 5, - "name": "updatable_slug", - "type_info": { - "type": "VarString", - "flags": { - "bits": 4229 - }, - "char_set": 224, - "max_size": 256 - } - }, - { - "ordinal": 6, "name": "title", "type_info": { "type": "VarString", @@ -891,9 +846,33 @@ "max_size": 1020 } }, + { + "ordinal": 6, + "name": "description_markdown", + "type_info": { + "type": "Blob", + "flags": { + "bits": 4241 + }, + "char_set": 224, + "max_size": 262140 + } + }, { "ordinal": 7, - "name": "is_mod_disabled", + "name": "description_rendered_html", + "type_info": { + "type": "Blob", + "flags": { + "bits": 4241 + }, + "char_set": 224, + "max_size": 262140 + } + }, + { + "ordinal": 8, + "name": "is_locked_from_use", "type_info": { "type": "Tiny", "flags": { @@ -904,7 +883,19 @@ } }, { - "ordinal": 8, + "ordinal": 9, + "name": "is_locked_from_user_modification", + "type_info": { + "type": "Tiny", + "flags": { + "bits": 9 + }, + "char_set": 63, + "max_size": 1 + } + }, + { + "ordinal": 10, "name": "created_at", "type_info": { "type": "Timestamp", @@ -916,7 +907,7 @@ } }, { - "ordinal": 9, + "ordinal": 11, "name": "updated_at", "type_info": { "type": "Timestamp", @@ -926,6 +917,30 @@ "char_set": 63, "max_size": 19 } + }, + { + "ordinal": 12, + "name": "user_deleted_at", + "type_info": { + "type": "Timestamp", + "flags": { + "bits": 128 + }, + "char_set": 63, + "max_size": 19 + } + }, + { + "ordinal": 13, + "name": "mod_deleted_at", + "type_info": { + "type": "Timestamp", + "flags": { + "bits": 128 + }, + "char_set": 63, + "max_size": 19 + } } ], "parameters": { @@ -941,17 +956,21 @@ false, false, false, - false + false, + false, + false, + true, + true ] } }, - "2afb1d98fe7716b378778f706703dbaaa3ebb458e08ba7668a745484bce70895": { - "query": "\nSELECT\n tts_results.token as tts_result_token,\n\n tts_results.model_token as tts_model_token,\n tts_results.inference_text as inference_text,\n\n users.token as maybe_creator_user_token,\n users.username as maybe_creator_username,\n users.display_name as maybe_creator_display_name,\n\n tts_results.file_size_bytes,\n tts_results.duration_millis,\n tts_results.created_at,\n tts_results.updated_at\n\nFROM tts_results\nLEFT OUTER JOIN tts_models\n ON tts_results.model_token = tts_models.token\nLEFT OUTER JOIN users\n ON tts_results.maybe_creator_user_token = users.token\nWHERE\n tts_results.deleted_at IS NULL\n ", + "1556b7ed6b0cab002b52dfa8a5f81743a38967631ff24fd9555a168823b1dfc1": { + "query": "\nSELECT\n tts.token as model_token,\n tts.tts_model_type,\n tts.creator_user_token,\n users.username as creator_username,\n users.display_name as creator_display_name,\n tts.title,\n tts.is_locked_from_use,\n tts.created_at,\n tts.updated_at\nFROM tts_models as tts\nJOIN users\n ON users.token = tts.creator_user_token\nWHERE\n tts.user_deleted_at IS NULL\n AND tts.mod_deleted_at IS NULL\n ", "describe": { "columns": [ { "ordinal": 0, - "name": "tts_result_token", + "name": "model_token", "type_info": { "type": "VarString", "flags": { @@ -963,7 +982,19 @@ }, { "ordinal": 1, - "name": "tts_model_token", + "name": "tts_model_type", + "type_info": { + "type": "String", + "flags": { + "bits": 385 + }, + "char_set": 224, + "max_size": 60 + } + }, + { + "ordinal": 2, + "name": "creator_user_token", "type_info": { "type": "VarString", "flags": { @@ -973,37 +1004,25 @@ "max_size": 128 } }, - { - "ordinal": 2, - "name": "inference_text", - "type_info": { - "type": "Blob", - "flags": { - "bits": 4241 - }, - "char_set": 224, - "max_size": 262140 - } - }, { "ordinal": 3, - "name": "maybe_creator_user_token", + "name": "creator_username", "type_info": { "type": "VarString", "flags": { - "bits": 4228 + "bits": 4229 }, "char_set": 224, - "max_size": 128 + "max_size": 80 } }, { "ordinal": 4, - "name": "maybe_creator_username", + "name": "creator_display_name", "type_info": { "type": "VarString", "flags": { - "bits": 4228 + "bits": 4225 }, "char_set": 224, "max_size": 80 @@ -1011,42 +1030,30 @@ }, { "ordinal": 5, - "name": "maybe_creator_display_name", + "name": "title", "type_info": { "type": "VarString", "flags": { - "bits": 4224 + "bits": 4225 }, "char_set": 224, - "max_size": 80 + "max_size": 1020 } }, { "ordinal": 6, - "name": "file_size_bytes", + "name": "is_locked_from_use", "type_info": { - "type": "Long", + "type": "Tiny", "flags": { - "bits": 1 + "bits": 9 }, "char_set": 63, - "max_size": 10 + "max_size": 1 } }, { "ordinal": 7, - "name": "duration_millis", - "type_info": { - "type": "Long", - "flags": { - "bits": 1 - }, - "char_set": 63, - "max_size": 10 - } - }, - { - "ordinal": 8, "name": "created_at", "type_info": { "type": "Timestamp", @@ -1058,7 +1065,7 @@ } }, { - "ordinal": 9, + "ordinal": 8, "name": "updated_at", "type_info": { "type": "Timestamp", @@ -1077,9 +1084,8 @@ false, false, false, - true, - true, - true, + false, + false, false, false, false, @@ -1087,33 +1093,53 @@ ] } }, - "2b04dd7db52ef3a97a6f420a22a4dbee7416ae58697438df69e87ffd47bbf350": { - "query": "\nUPDATE w2l_inference_jobs\nSET\n status = ?,\n failure_reason = ?,\n retry_at = NOW() + interval 2 minute\nWHERE id = ?\n ", + "17c8d210d93ee9c0d8e8422eed605c9150f19f9bf72affcf111b15a67a5b9e70": { + "query": "\nUPDATE w2l_templates\nSET\n is_public_listing_approved = ?,\n is_locked_from_user_modification = ?,\n is_locked_from_use = ?,\n maybe_mod_comments = ?,\n maybe_mod_user_token = ?,\n version = version + 1\nWHERE token = ?\nLIMIT 1\n ", "describe": { "columns": [], "parameters": { - "Right": 3 + "Right": 6 }, "nullable": [] } }, - "2bfb24d71e1fccb98b0c27912214dca2e2c2833355fdfa9f70e4d7a4d99a038b": { - "query": "\nINSERT INTO w2l_template_upload_jobs\nSET\n token = ?,\n uuid_idempotency_token = ?,\n creator_user_token = ?,\n creator_ip_address = ?,\n creator_set_visibility = ?,\n title = ?,\n template_type = ?,\n maybe_subject_token = ?,\n maybe_actor_subject_token = ?,\n download_url = ?,\n download_url_type = ?,\n status = \"pending\"\n ", + "18ca4c90132288c1dc3d43c6b0e7ee6aa12e990408e314e0038d4a376c9ddfbf": { + "query": "\nUPDATE w2l_templates\nSET\n title = ?,\n description_markdown = ?,\n description_rendered_html = ?,\n creator_ip_address_last_update = ?,\n version = version + 1\nWHERE token = ?\nLIMIT 1\n ", "describe": { "columns": [], "parameters": { - "Right": 11 + "Right": 5 }, "nullable": [] } }, - "2cebfec1341bb1066357b77440f36b3b7b7d292c64354912f21f7af6975de6fa": { - "query": "\nSELECT\n users.token as user_token,\n users.username,\n users.display_name,\n\n users.email_address,\n users.email_confirmed,\n users.email_gravatar_hash,\n users.avatar_public_bucket_hash,\n\n users.dark_mode_preference,\n users.disable_gravatar,\n users.hide_results_preference,\n users.auto_play_audio_preference,\n users.auto_play_video_preference,\n users.maybe_preferred_tts_model_token,\n users.maybe_preferred_w2l_template_token,\n\n users.user_role_slug,\n users.banned,\n\n user_roles.can_use_tts,\n user_roles.can_use_w2l,\n\n user_roles.can_upload_tts_models,\n user_roles.can_upload_w2l_templates,\n user_roles.can_delete_own_tts_models,\n user_roles.can_delete_own_w2l_templates,\n\n user_roles.can_approve_w2l_templates,\n user_roles.can_edit_other_users_profiles,\n user_roles.can_edit_other_users_tts_models,\n user_roles.can_edit_other_users_w2l_templates,\n user_roles.can_delete_other_users_tts_models,\n user_roles.can_delete_other_users_w2l_templates,\n user_roles.can_ban_users\n\nFROM users\nLEFT OUTER JOIN user_sessions\n ON users.token = user_sessions.user_token\nLEFT OUTER JOIN user_roles\n ON users.user_role_slug = user_roles.slug\nWHERE user_sessions.token = ?\n AND user_sessions.deleted_at IS NULL\n AND users.deleted_at IS NULL\n ", + "1cc62e5cdc8de18969d7e8018d91c38794e5a7d23f117e5b0a4126845f300e60": { + "query": "\nUPDATE user_sessions\nSET deleted_at = CURRENT_TIMESTAMP()\nWHERE\n token = ?\n AND deleted_at IS NULL\n ", + "describe": { + "columns": [], + "parameters": { + "Right": 1 + }, + "nullable": [] + } + }, + "25e7858d370ac1359deb42ef5292e85ccd1fe7debf3a1ba73303e5882523a4d0": { + "query": "\nINSERT INTO w2l_template_upload_jobs\nSET\n token = ?,\n uuid_idempotency_token = ?,\n creator_user_token = ?,\n creator_ip_address = ?,\n creator_set_visibility = ?,\n title = ?,\n template_type = ?,\n download_url = ?,\n status = \"pending\"\n ", + "describe": { + "columns": [], + "parameters": { + "Right": 8 + }, + "nullable": [] + } + }, + "27aa92743ce8b2221feeac96de6eb8b378b427912de09779fee938b757de4bdc": { + "query": "\nSELECT\n tts.token as model_token,\n tts.tts_model_type,\n tts.creator_user_token,\n users.username as creator_username,\n users.display_name as creator_display_name,\n tts.title,\n tts.private_bucket_hash,\n tts.created_at,\n tts.updated_at\nFROM tts_models as tts\nJOIN users\nON users.token = tts.creator_user_token\nWHERE tts.token = ?\nAND tts.user_deleted_at IS NULL\nAND tts.mod_deleted_at IS NULL\n ", "describe": { "columns": [ { "ordinal": 0, - "name": "user_token", + "name": "model_token", "type_info": { "type": "VarString", "flags": { @@ -1125,338 +1151,98 @@ }, { "ordinal": 1, - "name": "username", - "type_info": { - "type": "VarString", - "flags": { - "bits": 4229 - }, - "char_set": 224, - "max_size": 80 - } - }, - { - "ordinal": 2, - "name": "display_name", - "type_info": { - "type": "VarString", - "flags": { - "bits": 4225 - }, - "char_set": 224, - "max_size": 80 - } - }, - { - "ordinal": 3, - "name": "email_address", - "type_info": { - "type": "VarString", - "flags": { - "bits": 4229 - }, - "char_set": 224, - "max_size": 1020 - } - }, - { - "ordinal": 4, - "name": "email_confirmed", - "type_info": { - "type": "Tiny", - "flags": { - "bits": 1 - }, - "char_set": 63, - "max_size": 1 - } - }, - { - "ordinal": 5, - "name": "email_gravatar_hash", - "type_info": { - "type": "String", - "flags": { - "bits": 4225 - }, - "char_set": 224, - "max_size": 128 - } - }, - { - "ordinal": 6, - "name": "avatar_public_bucket_hash", - "type_info": { - "type": "String", - "flags": { - "bits": 128 - }, - "char_set": 224, - "max_size": 128 - } - }, - { - "ordinal": 7, - "name": "dark_mode_preference", + "name": "tts_model_type", "type_info": { "type": "String", "flags": { "bits": 385 }, "char_set": 224, - "max_size": 40 + "max_size": 60 } }, { - "ordinal": 8, - "name": "disable_gravatar", - "type_info": { - "type": "Tiny", - "flags": { - "bits": 1 - }, - "char_set": 63, - "max_size": 1 - } - }, - { - "ordinal": 9, - "name": "hide_results_preference", - "type_info": { - "type": "Tiny", - "flags": { - "bits": 1 - }, - "char_set": 63, - "max_size": 1 - } - }, - { - "ordinal": 10, - "name": "auto_play_audio_preference", - "type_info": { - "type": "Tiny", - "flags": { - "bits": 1 - }, - "char_set": 63, - "max_size": 1 - } - }, - { - "ordinal": 11, - "name": "auto_play_video_preference", - "type_info": { - "type": "Tiny", - "flags": { - "bits": 1 - }, - "char_set": 63, - "max_size": 1 - } - }, - { - "ordinal": 12, - "name": "maybe_preferred_tts_model_token", - "type_info": { - "type": "VarString", - "flags": { - "bits": 128 - }, - "char_set": 224, - "max_size": 128 - } - }, - { - "ordinal": 13, - "name": "maybe_preferred_w2l_template_token", - "type_info": { - "type": "VarString", - "flags": { - "bits": 128 - }, - "char_set": 224, - "max_size": 128 - } - }, - { - "ordinal": 14, - "name": "user_role_slug", + "ordinal": 2, + "name": "creator_user_token", "type_info": { "type": "VarString", "flags": { "bits": 4233 }, "char_set": 224, - "max_size": 64 + "max_size": 128 } }, { - "ordinal": 15, - "name": "banned", + "ordinal": 3, + "name": "creator_username", "type_info": { - "type": "Tiny", + "type": "VarString", "flags": { - "bits": 1 + "bits": 4229 }, - "char_set": 63, - "max_size": 1 + "char_set": 224, + "max_size": 80 } }, { - "ordinal": 16, - "name": "can_use_tts", + "ordinal": 4, + "name": "creator_display_name", "type_info": { - "type": "Tiny", + "type": "VarString", "flags": { - "bits": 0 + "bits": 4225 }, - "char_set": 63, - "max_size": 1 + "char_set": 224, + "max_size": 80 } }, { - "ordinal": 17, - "name": "can_use_w2l", + "ordinal": 5, + "name": "title", "type_info": { - "type": "Tiny", + "type": "VarString", "flags": { - "bits": 0 + "bits": 4225 }, - "char_set": 63, - "max_size": 1 + "char_set": 224, + "max_size": 1020 } }, { - "ordinal": 18, - "name": "can_upload_tts_models", + "ordinal": 6, + "name": "private_bucket_hash", "type_info": { - "type": "Tiny", + "type": "String", "flags": { - "bits": 0 + "bits": 4233 }, - "char_set": 63, - "max_size": 1 + "char_set": 224, + "max_size": 256 } }, { - "ordinal": 19, - "name": "can_upload_w2l_templates", + "ordinal": 7, + "name": "created_at", "type_info": { - "type": "Tiny", + "type": "Timestamp", "flags": { - "bits": 0 + "bits": 1153 }, "char_set": 63, - "max_size": 1 + "max_size": 19 } }, { - "ordinal": 20, - "name": "can_delete_own_tts_models", + "ordinal": 8, + "name": "updated_at", "type_info": { - "type": "Tiny", + "type": "Timestamp", "flags": { - "bits": 0 + "bits": 9345 }, "char_set": 63, - "max_size": 1 - } - }, - { - "ordinal": 21, - "name": "can_delete_own_w2l_templates", - "type_info": { - "type": "Tiny", - "flags": { - "bits": 0 - }, - "char_set": 63, - "max_size": 1 - } - }, - { - "ordinal": 22, - "name": "can_approve_w2l_templates", - "type_info": { - "type": "Tiny", - "flags": { - "bits": 0 - }, - "char_set": 63, - "max_size": 1 - } - }, - { - "ordinal": 23, - "name": "can_edit_other_users_profiles", - "type_info": { - "type": "Tiny", - "flags": { - "bits": 0 - }, - "char_set": 63, - "max_size": 1 - } - }, - { - "ordinal": 24, - "name": "can_edit_other_users_tts_models", - "type_info": { - "type": "Tiny", - "flags": { - "bits": 0 - }, - "char_set": 63, - "max_size": 1 - } - }, - { - "ordinal": 25, - "name": "can_edit_other_users_w2l_templates", - "type_info": { - "type": "Tiny", - "flags": { - "bits": 0 - }, - "char_set": 63, - "max_size": 1 - } - }, - { - "ordinal": 26, - "name": "can_delete_other_users_tts_models", - "type_info": { - "type": "Tiny", - "flags": { - "bits": 0 - }, - "char_set": 63, - "max_size": 1 - } - }, - { - "ordinal": 27, - "name": "can_delete_other_users_w2l_templates", - "type_info": { - "type": "Tiny", - "flags": { - "bits": 0 - }, - "char_set": 63, - "max_size": 1 - } - }, - { - "ordinal": 28, - "name": "can_ban_users", - "type_info": { - "type": "Tiny", - "flags": { - "bits": 0 - }, - "char_set": 63, - "max_size": 1 + "max_size": 19 } } ], @@ -1470,32 +1256,52 @@ false, false, false, - true, false, false, - false, - false, - false, - true, - true, - false, - false, - true, - true, - true, - true, - true, - true, - true, - true, - true, - true, - true, - true, - true + false ] } }, + "28cf5843d68d6cb0e67eb316ef9e7e5fb05a6be2433f86c081576b279167508d": { + "query": "\nINSERT INTO tts_result_synthetic_ids\nSET\n user_token = ?,\n next_id = 1\nON DUPLICATE KEY UPDATE\n user_token = ?,\n next_id = next_id + 1\n ", + "describe": { + "columns": [], + "parameters": { + "Right": 2 + }, + "nullable": [] + } + }, + "294c089b17fdd87d7e579c05a9d90e9bfa5b7465cafa9a95af08d58709212440": { + "query": "\nUPDATE w2l_template_upload_jobs\nSET\n status = ?,\n failure_reason = ?,\n retry_at = NOW() + interval 2 minute\nWHERE id = ?\n ", + "describe": { + "columns": [], + "parameters": { + "Right": 3 + }, + "nullable": [] + } + }, + "2b04dd7db52ef3a97a6f420a22a4dbee7416ae58697438df69e87ffd47bbf350": { + "query": "\nUPDATE w2l_inference_jobs\nSET\n status = ?,\n failure_reason = ?,\n retry_at = NOW() + interval 2 minute\nWHERE id = ?\n ", + "describe": { + "columns": [], + "parameters": { + "Right": 3 + }, + "nullable": [] + } + }, + "2d485a1232d1b5bd1ad6a05ed744fe280121903fcebac4b7e9d12b732e0caa21": { + "query": "\nINSERT INTO tts_results\nSET\n token = ?,\n\n model_token = ?,\n raw_inference_text = ?,\n raw_inference_text_hash_sha2 = ?,\n normalized_inference_text = ?,\n\n maybe_creator_user_token = ?,\n maybe_creator_synthetic_id = ?,\n\n creator_ip_address = ?,\n creator_set_visibility = 'public',\n\n public_bucket_hash = 'TODO',\n public_bucket_wav_audio_path = ?,\n public_bucket_spectrogram_path = ?,\n inference_public_bucket_uuid = 'TODO',\n\n file_size_bytes = ?,\n duration_millis = ?\n ", + "describe": { + "columns": [], + "parameters": { + "Right": 12 + }, + "nullable": [] + } + }, "34364f9bc851971f8291f5f9942dd23d10718ccb210a93a236d96d0591f65f35": { "query": "\nINSERT INTO users (\n token,\n username,\n display_name,\n email_address,\n email_gravatar_hash,\n profile_markdown,\n profile_rendered_html,\n user_role_slug,\n password_hash,\n ip_address_creation,\n ip_address_last_login,\n ip_address_last_update\n)\nVALUES ( ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ? )\n ", "describe": { @@ -1516,405 +1322,34 @@ "nullable": [] } }, - "36ff2cf2bdea42da6649923163013cdb5eaf719532d99305410284c69bedd2c0": { - "query": "\nSELECT\n w2l.token as template_token,\n w2l.template_type,\n w2l.creator_user_token,\n users.username as creator_username,\n users.display_name as creator_display_name,\n w2l.updatable_slug,\n w2l.title,\n w2l.frame_width,\n w2l.frame_height,\n w2l.duration_millis,\n w2l.private_bucket_hash,\n w2l.maybe_public_bucket_preview_image_object_name,\n w2l.maybe_public_bucket_preview_video_object_name,\n w2l.created_at,\n w2l.updated_at\nFROM w2l_templates as w2l\nJOIN users\nON users.token = w2l.creator_user_token\nWHERE w2l.token = ?\nAND w2l.deleted_at IS NULL\n ", + "34642399c3e91960768cb659b6006db291574d9cd07a5bace3db573eff20c3fb": { + "query": "\nINSERT INTO w2l_result_synthetic_ids\nSET\n user_token = ?,\n next_id = 1\nON DUPLICATE KEY UPDATE\n user_token = ?,\n next_id = next_id + 1\n ", "describe": { - "columns": [ - { - "ordinal": 0, - "name": "template_token", - "type_info": { - "type": "VarString", - "flags": { - "bits": 4229 - }, - "char_set": 224, - "max_size": 128 - } - }, - { - "ordinal": 1, - "name": "template_type", - "type_info": { - "type": "String", - "flags": { - "bits": 393 - }, - "char_set": 224, - "max_size": 28 - } - }, - { - "ordinal": 2, - "name": "creator_user_token", - "type_info": { - "type": "VarString", - "flags": { - "bits": 4233 - }, - "char_set": 224, - "max_size": 128 - } - }, - { - "ordinal": 3, - "name": "creator_username", - "type_info": { - "type": "VarString", - "flags": { - "bits": 4229 - }, - "char_set": 224, - "max_size": 80 - } - }, - { - "ordinal": 4, - "name": "creator_display_name", - "type_info": { - "type": "VarString", - "flags": { - "bits": 4225 - }, - "char_set": 224, - "max_size": 80 - } - }, - { - "ordinal": 5, - "name": "updatable_slug", - "type_info": { - "type": "VarString", - "flags": { - "bits": 4229 - }, - "char_set": 224, - "max_size": 256 - } - }, - { - "ordinal": 6, - "name": "title", - "type_info": { - "type": "String", - "flags": { - "bits": 4225 - }, - "char_set": 224, - "max_size": 1020 - } - }, - { - "ordinal": 7, - "name": "frame_width", - "type_info": { - "type": "Long", - "flags": { - "bits": 1 - }, - "char_set": 63, - "max_size": 10 - } - }, - { - "ordinal": 8, - "name": "frame_height", - "type_info": { - "type": "Long", - "flags": { - "bits": 1 - }, - "char_set": 63, - "max_size": 10 - } - }, - { - "ordinal": 9, - "name": "duration_millis", - "type_info": { - "type": "Long", - "flags": { - "bits": 1 - }, - "char_set": 63, - "max_size": 10 - } - }, - { - "ordinal": 10, - "name": "private_bucket_hash", - "type_info": { - "type": "String", - "flags": { - "bits": 4233 - }, - "char_set": 224, - "max_size": 256 - } - }, - { - "ordinal": 11, - "name": "maybe_public_bucket_preview_image_object_name", - "type_info": { - "type": "VarString", - "flags": { - "bits": 128 - }, - "char_set": 224, - "max_size": 1020 - } - }, - { - "ordinal": 12, - "name": "maybe_public_bucket_preview_video_object_name", - "type_info": { - "type": "VarString", - "flags": { - "bits": 128 - }, - "char_set": 224, - "max_size": 1020 - } - }, - { - "ordinal": 13, - "name": "created_at", - "type_info": { - "type": "Timestamp", - "flags": { - "bits": 1153 - }, - "char_set": 63, - "max_size": 19 - } - }, - { - "ordinal": 14, - "name": "updated_at", - "type_info": { - "type": "Timestamp", - "flags": { - "bits": 9345 - }, - "char_set": 63, - "max_size": 19 - } - } - ], + "columns": [], "parameters": { - "Right": 1 + "Right": 2 }, - "nullable": [ - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - true, - true, - false, - false - ] + "nullable": [] } }, - "372e5a9d04fd56166ef38596b52b1707a5e6a78784f72395b24e91a15a523b2f": { - "query": "\nSELECT\n id,\n token AS inference_job_token,\n uuid_idempotency_token,\n\n model_token,\n inference_text,\n\n creator_ip_address,\n maybe_creator_user_token,\n creator_set_visibility,\n\n status,\n attempt_count,\n failure_reason,\n created_at,\n updated_at,\n retry_at\nFROM tts_inference_jobs\nWHERE\n (\n status IN (\"pending\", \"attempt_failed\")\n )\n AND\n (\n retry_at IS NULL\n OR\n retry_at < CURRENT_TIMESTAMP\n )\n LIMIT ?\n ", + "346c02b215cb35efaa35fe96d866a8c9056ac46e987b4e01f64222259dccdcbf": { + "query": "\nUPDATE\n ip_address_bans\nSET\n mod_user_token = ?,\n deleted_at = NULL\nWHERE\n ip_address = ?\nLIMIT 1\n ", "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": { - "type": "LongLong", - "flags": { - "bits": 515 - }, - "char_set": 63, - "max_size": 20 - } - }, - { - "ordinal": 1, - "name": "inference_job_token", - "type_info": { - "type": "VarString", - "flags": { - "bits": 4229 - }, - "char_set": 224, - "max_size": 128 - } - }, - { - "ordinal": 2, - "name": "uuid_idempotency_token", - "type_info": { - "type": "VarString", - "flags": { - "bits": 4229 - }, - "char_set": 224, - "max_size": 144 - } - }, - { - "ordinal": 3, - "name": "model_token", - "type_info": { - "type": "VarString", - "flags": { - "bits": 4233 - }, - "char_set": 224, - "max_size": 128 - } - }, - { - "ordinal": 4, - "name": "inference_text", - "type_info": { - "type": "Blob", - "flags": { - "bits": 4241 - }, - "char_set": 224, - "max_size": 262140 - } - }, - { - "ordinal": 5, - "name": "creator_ip_address", - "type_info": { - "type": "VarString", - "flags": { - "bits": 4233 - }, - "char_set": 224, - "max_size": 160 - } - }, - { - "ordinal": 6, - "name": "maybe_creator_user_token", - "type_info": { - "type": "String", - "flags": { - "bits": 136 - }, - "char_set": 224, - "max_size": 64 - } - }, - { - "ordinal": 7, - "name": "creator_set_visibility", - "type_info": { - "type": "String", - "flags": { - "bits": 385 - }, - "char_set": 224, - "max_size": 28 - } - }, - { - "ordinal": 8, - "name": "status", - "type_info": { - "type": "String", - "flags": { - "bits": 393 - }, - "char_set": 224, - "max_size": 64 - } - }, - { - "ordinal": 9, - "name": "attempt_count", - "type_info": { - "type": "Long", - "flags": { - "bits": 1 - }, - "char_set": 63, - "max_size": 3 - } - }, - { - "ordinal": 10, - "name": "failure_reason", - "type_info": { - "type": "VarString", - "flags": { - "bits": 128 - }, - "char_set": 224, - "max_size": 2048 - } - }, - { - "ordinal": 11, - "name": "created_at", - "type_info": { - "type": "Timestamp", - "flags": { - "bits": 1153 - }, - "char_set": 63, - "max_size": 19 - } - }, - { - "ordinal": 12, - "name": "updated_at", - "type_info": { - "type": "Timestamp", - "flags": { - "bits": 9345 - }, - "char_set": 63, - "max_size": 19 - } - }, - { - "ordinal": 13, - "name": "retry_at", - "type_info": { - "type": "Timestamp", - "flags": { - "bits": 128 - }, - "char_set": 63, - "max_size": 19 - } - } - ], + "columns": [], "parameters": { - "Right": 1 + "Right": 2 }, - "nullable": [ - false, - false, - false, - false, - false, - false, - true, - false, - false, - false, - true, - false, - false, - true - ] + "nullable": [] + } + }, + "376e36b1357952599866262c7356ba35f15ccdfb338d8ccdbdc06ccd69331fc3": { + "query": "\nUPDATE tts_results\nSET\n mod_deleted_at = CURRENT_TIMESTAMP,\n maybe_mod_user_token = ?\nWHERE\n token = ?\nLIMIT 1\n ", + "describe": { + "columns": [], + "parameters": { + "Right": 2 + }, + "nullable": [] } }, "3a2dc0a7e41dcbdf21f91d1a1e54e813f74b0bac7aea052302089cae195eeb53": { @@ -1927,847 +1362,8 @@ "nullable": [] } }, - "3bc397a1157c4564562138dbef80cf89d2185943f5f925228936f0b5c67e1b95": { - "query": "\nUPDATE tts_inference_jobs\nSET\n status = 'started',\n retry_at = NOW() + interval 2 minute\nWHERE id = ?\n ", - "describe": { - "columns": [], - "parameters": { - "Right": 1 - }, - "nullable": [] - } - }, - "3de0e9c442ae0d4ca2f1da19357ac7685084e2843216313d7836ea60bc3dcfe0": { - "query": "\nSELECT\n jobs.token as job_token,\n\n jobs.status,\n jobs.on_success_result_token as maybe_model_token,\n\n jobs.created_at,\n jobs.updated_at\n\nFROM tts_model_upload_jobs as jobs\n\nWHERE jobs.token = ?\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "job_token", - "type_info": { - "type": "VarString", - "flags": { - "bits": 4229 - }, - "char_set": 224, - "max_size": 128 - } - }, - { - "ordinal": 1, - "name": "status", - "type_info": { - "type": "String", - "flags": { - "bits": 393 - }, - "char_set": 224, - "max_size": 64 - } - }, - { - "ordinal": 2, - "name": "maybe_model_token", - "type_info": { - "type": "VarString", - "flags": { - "bits": 136 - }, - "char_set": 224, - "max_size": 128 - } - }, - { - "ordinal": 3, - "name": "created_at", - "type_info": { - "type": "Timestamp", - "flags": { - "bits": 1153 - }, - "char_set": 63, - "max_size": 19 - } - }, - { - "ordinal": 4, - "name": "updated_at", - "type_info": { - "type": "Timestamp", - "flags": { - "bits": 9345 - }, - "char_set": 63, - "max_size": 19 - } - } - ], - "parameters": { - "Right": 1 - }, - "nullable": [ - false, - false, - true, - false, - false - ] - } - }, - "4b4b6c2b8306cd5b6b1fe28fd492de5e346f0a53c0efc4f0eec57c4238860764": { - "query": "\nSELECT\n tts_results.token as tts_result_token,\n\n tts_results.model_token as tts_model_token,\n tts_results.inference_text as inference_text,\n\n users.token as maybe_creator_user_token,\n users.username as maybe_creator_username,\n users.display_name as maybe_creator_display_name,\n\n tts_results.file_size_bytes,\n tts_results.duration_millis,\n tts_results.created_at,\n tts_results.updated_at\n\nFROM tts_results\nLEFT OUTER JOIN tts_models\n ON tts_results.model_token = tts_models.token\nLEFT OUTER JOIN users\n ON tts_results.maybe_creator_user_token = users.token\nWHERE\n tts_results.deleted_at IS NULL\n AND tts_results.is_mod_hidden_from_public IS FALSE\n AND tts_models.is_mod_disabled IS FALSE\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "tts_result_token", - "type_info": { - "type": "VarString", - "flags": { - "bits": 4229 - }, - "char_set": 224, - "max_size": 128 - } - }, - { - "ordinal": 1, - "name": "tts_model_token", - "type_info": { - "type": "VarString", - "flags": { - "bits": 4233 - }, - "char_set": 224, - "max_size": 128 - } - }, - { - "ordinal": 2, - "name": "inference_text", - "type_info": { - "type": "Blob", - "flags": { - "bits": 4241 - }, - "char_set": 224, - "max_size": 262140 - } - }, - { - "ordinal": 3, - "name": "maybe_creator_user_token", - "type_info": { - "type": "VarString", - "flags": { - "bits": 4228 - }, - "char_set": 224, - "max_size": 128 - } - }, - { - "ordinal": 4, - "name": "maybe_creator_username", - "type_info": { - "type": "VarString", - "flags": { - "bits": 4228 - }, - "char_set": 224, - "max_size": 80 - } - }, - { - "ordinal": 5, - "name": "maybe_creator_display_name", - "type_info": { - "type": "VarString", - "flags": { - "bits": 4224 - }, - "char_set": 224, - "max_size": 80 - } - }, - { - "ordinal": 6, - "name": "file_size_bytes", - "type_info": { - "type": "Long", - "flags": { - "bits": 1 - }, - "char_set": 63, - "max_size": 10 - } - }, - { - "ordinal": 7, - "name": "duration_millis", - "type_info": { - "type": "Long", - "flags": { - "bits": 1 - }, - "char_set": 63, - "max_size": 10 - } - }, - { - "ordinal": 8, - "name": "created_at", - "type_info": { - "type": "Timestamp", - "flags": { - "bits": 1153 - }, - "char_set": 63, - "max_size": 19 - } - }, - { - "ordinal": 9, - "name": "updated_at", - "type_info": { - "type": "Timestamp", - "flags": { - "bits": 9345 - }, - "char_set": 63, - "max_size": 19 - } - } - ], - "parameters": { - "Right": 0 - }, - "nullable": [ - false, - false, - false, - true, - true, - true, - false, - false, - false, - false - ] - } - }, - "4f61f621682ba255814f8a55455ea2b7fba9b6c85affaf87abfe2f81e11322f0": { - "query": "\nSELECT\n id,\n status\nFROM tts_inference_jobs\nWHERE id = ?\nFOR UPDATE\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": { - "type": "LongLong", - "flags": { - "bits": 515 - }, - "char_set": 63, - "max_size": 20 - } - }, - { - "ordinal": 1, - "name": "status", - "type_info": { - "type": "String", - "flags": { - "bits": 393 - }, - "char_set": 224, - "max_size": 64 - } - } - ], - "parameters": { - "Right": 1 - }, - "nullable": [ - false, - false - ] - } - }, - "4fec6d4e2b33411835c679942860c328e20a4276fb39c3512f0608261c5467f4": { - "query": "\nSELECT\n tts.token as model_token,\n tts.tts_model_type,\n tts.creator_user_token,\n users.username as creator_username,\n users.display_name as creator_display_name,\n tts.updatable_slug,\n tts.title,\n tts.is_mod_disabled,\n tts.created_at,\n tts.updated_at\nFROM tts_models as tts\nJOIN users\nON users.token = tts.creator_user_token\nWHERE\n tts.deleted_at IS NULL\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "model_token", - "type_info": { - "type": "VarString", - "flags": { - "bits": 4229 - }, - "char_set": 224, - "max_size": 128 - } - }, - { - "ordinal": 1, - "name": "tts_model_type", - "type_info": { - "type": "String", - "flags": { - "bits": 385 - }, - "char_set": 224, - "max_size": 60 - } - }, - { - "ordinal": 2, - "name": "creator_user_token", - "type_info": { - "type": "VarString", - "flags": { - "bits": 4233 - }, - "char_set": 224, - "max_size": 128 - } - }, - { - "ordinal": 3, - "name": "creator_username", - "type_info": { - "type": "VarString", - "flags": { - "bits": 4229 - }, - "char_set": 224, - "max_size": 80 - } - }, - { - "ordinal": 4, - "name": "creator_display_name", - "type_info": { - "type": "VarString", - "flags": { - "bits": 4225 - }, - "char_set": 224, - "max_size": 80 - } - }, - { - "ordinal": 5, - "name": "updatable_slug", - "type_info": { - "type": "VarString", - "flags": { - "bits": 4229 - }, - "char_set": 224, - "max_size": 256 - } - }, - { - "ordinal": 6, - "name": "title", - "type_info": { - "type": "VarString", - "flags": { - "bits": 4225 - }, - "char_set": 224, - "max_size": 1020 - } - }, - { - "ordinal": 7, - "name": "is_mod_disabled", - "type_info": { - "type": "Tiny", - "flags": { - "bits": 9 - }, - "char_set": 63, - "max_size": 1 - } - }, - { - "ordinal": 8, - "name": "created_at", - "type_info": { - "type": "Timestamp", - "flags": { - "bits": 1153 - }, - "char_set": 63, - "max_size": 19 - } - }, - { - "ordinal": 9, - "name": "updated_at", - "type_info": { - "type": "Timestamp", - "flags": { - "bits": 9345 - }, - "char_set": 63, - "max_size": 19 - } - } - ], - "parameters": { - "Right": 0 - }, - "nullable": [ - false, - false, - false, - false, - false, - false, - false, - false, - false, - false - ] - } - }, - "53d77ee58e9b1f7fb900914895c25bcccb9297378ff018c1e553b187d1956e92": { - "query": "\nSELECT token, username, email_address, password_hash\nFROM users\nWHERE username = ?\nLIMIT 1\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "token", - "type_info": { - "type": "VarString", - "flags": { - "bits": 4229 - }, - "char_set": 224, - "max_size": 128 - } - }, - { - "ordinal": 1, - "name": "username", - "type_info": { - "type": "VarString", - "flags": { - "bits": 4229 - }, - "char_set": 224, - "max_size": 80 - } - }, - { - "ordinal": 2, - "name": "email_address", - "type_info": { - "type": "VarString", - "flags": { - "bits": 4229 - }, - "char_set": 224, - "max_size": 1020 - } - }, - { - "ordinal": 3, - "name": "password_hash", - "type_info": { - "type": "String", - "flags": { - "bits": 4225 - }, - "char_set": 63, - "max_size": 60 - } - } - ], - "parameters": { - "Right": 1 - }, - "nullable": [ - false, - false, - false, - false - ] - } - }, - "55a75db2d060bd49951db22f6b4ffd1545777b61c256030d59662543adc06ab2": { - "query": "\nUPDATE users\nSET\n profile_markdown = ?,\n profile_rendered_html = ?,\n discord_username = ?,\n twitter_username = ?,\n twitch_username = ?,\n github_username = ?,\n cashapp_username = ?,\n website_url = ?,\n ip_address_last_update = ?,\n version = version + 1\n\nWHERE users.token = ?\nLIMIT 1\n ", - "describe": { - "columns": [], - "parameters": { - "Right": 10 - }, - "nullable": [] - } - }, - "65ce50a3aafe979e77a541d576228d7fcfe76e33400427d01382da36c1585edb": { - "query": "\nUPDATE tts_inference_jobs\nSET\n status = ?,\n on_success_result_token = ?,\n failure_reason = NULL,\n retry_at = NULL\nWHERE id = ?\n ", - "describe": { - "columns": [], - "parameters": { - "Right": 3 - }, - "nullable": [] - } - }, - "685a1d5bb03668be301bab35d677e270c94661c53f370ecd6ce8f1b697c4a01d": { - "query": "\nSELECT\n w2l_results.token as w2l_result_token,\n w2l_results.maybe_tts_inference_result_token,\n\n w2l_templates.token as maybe_w2l_template_token,\n w2l_templates.template_type,\n w2l_templates.title as template_title,\n\n users.token as maybe_creator_user_token,\n users.username as maybe_creator_username,\n users.display_name as maybe_creator_display_name,\n\n w2l_results.file_size_bytes,\n w2l_results.frame_width,\n w2l_results.frame_height,\n w2l_results.duration_millis,\n w2l_results.created_at,\n w2l_results.updated_at\n\nFROM w2l_results\nLEFT OUTER JOIN w2l_templates\n ON w2l_results.maybe_w2l_template_token = w2l_templates.token\nLEFT OUTER JOIN users\n ON w2l_results.maybe_creator_user_token = users.token\nWHERE\n w2l_results.deleted_at IS NULL\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "w2l_result_token", - "type_info": { - "type": "VarString", - "flags": { - "bits": 4229 - }, - "char_set": 224, - "max_size": 128 - } - }, - { - "ordinal": 1, - "name": "maybe_tts_inference_result_token", - "type_info": { - "type": "VarString", - "flags": { - "bits": 136 - }, - "char_set": 224, - "max_size": 128 - } - }, - { - "ordinal": 2, - "name": "maybe_w2l_template_token", - "type_info": { - "type": "VarString", - "flags": { - "bits": 4228 - }, - "char_set": 224, - "max_size": 128 - } - }, - { - "ordinal": 3, - "name": "template_type", - "type_info": { - "type": "String", - "flags": { - "bits": 392 - }, - "char_set": 224, - "max_size": 28 - } - }, - { - "ordinal": 4, - "name": "template_title", - "type_info": { - "type": "String", - "flags": { - "bits": 4224 - }, - "char_set": 224, - "max_size": 1020 - } - }, - { - "ordinal": 5, - "name": "maybe_creator_user_token", - "type_info": { - "type": "VarString", - "flags": { - "bits": 4228 - }, - "char_set": 224, - "max_size": 128 - } - }, - { - "ordinal": 6, - "name": "maybe_creator_username", - "type_info": { - "type": "VarString", - "flags": { - "bits": 4228 - }, - "char_set": 224, - "max_size": 80 - } - }, - { - "ordinal": 7, - "name": "maybe_creator_display_name", - "type_info": { - "type": "VarString", - "flags": { - "bits": 4224 - }, - "char_set": 224, - "max_size": 80 - } - }, - { - "ordinal": 8, - "name": "file_size_bytes", - "type_info": { - "type": "Long", - "flags": { - "bits": 1 - }, - "char_set": 63, - "max_size": 10 - } - }, - { - "ordinal": 9, - "name": "frame_width", - "type_info": { - "type": "Long", - "flags": { - "bits": 1 - }, - "char_set": 63, - "max_size": 10 - } - }, - { - "ordinal": 10, - "name": "frame_height", - "type_info": { - "type": "Long", - "flags": { - "bits": 1 - }, - "char_set": 63, - "max_size": 10 - } - }, - { - "ordinal": 11, - "name": "duration_millis", - "type_info": { - "type": "Long", - "flags": { - "bits": 1 - }, - "char_set": 63, - "max_size": 10 - } - }, - { - "ordinal": 12, - "name": "created_at", - "type_info": { - "type": "Timestamp", - "flags": { - "bits": 1153 - }, - "char_set": 63, - "max_size": 19 - } - }, - { - "ordinal": 13, - "name": "updated_at", - "type_info": { - "type": "Timestamp", - "flags": { - "bits": 9345 - }, - "char_set": 63, - "max_size": 19 - } - } - ], - "parameters": { - "Right": 0 - }, - "nullable": [ - false, - true, - true, - true, - true, - true, - true, - true, - false, - false, - false, - false, - false, - false - ] - } - }, - "68932d5d72489d06972510fb218ceeccc5c925bcd250a804c8b857502e373f18": { - "query": "\nSELECT\n tts.token as model_token,\n tts.tts_model_type,\n tts.creator_user_token,\n users.username as creator_username,\n users.display_name as creator_display_name,\n tts.updatable_slug,\n tts.title,\n tts.is_mod_disabled,\n tts.created_at,\n tts.updated_at\nFROM tts_models as tts\nJOIN users\nON users.token = tts.creator_user_token\nWHERE\n tts.deleted_at IS NULL\n AND tts.is_mod_disabled IS FALSE\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "model_token", - "type_info": { - "type": "VarString", - "flags": { - "bits": 4229 - }, - "char_set": 224, - "max_size": 128 - } - }, - { - "ordinal": 1, - "name": "tts_model_type", - "type_info": { - "type": "String", - "flags": { - "bits": 385 - }, - "char_set": 224, - "max_size": 60 - } - }, - { - "ordinal": 2, - "name": "creator_user_token", - "type_info": { - "type": "VarString", - "flags": { - "bits": 4233 - }, - "char_set": 224, - "max_size": 128 - } - }, - { - "ordinal": 3, - "name": "creator_username", - "type_info": { - "type": "VarString", - "flags": { - "bits": 4229 - }, - "char_set": 224, - "max_size": 80 - } - }, - { - "ordinal": 4, - "name": "creator_display_name", - "type_info": { - "type": "VarString", - "flags": { - "bits": 4225 - }, - "char_set": 224, - "max_size": 80 - } - }, - { - "ordinal": 5, - "name": "updatable_slug", - "type_info": { - "type": "VarString", - "flags": { - "bits": 4229 - }, - "char_set": 224, - "max_size": 256 - } - }, - { - "ordinal": 6, - "name": "title", - "type_info": { - "type": "VarString", - "flags": { - "bits": 4225 - }, - "char_set": 224, - "max_size": 1020 - } - }, - { - "ordinal": 7, - "name": "is_mod_disabled", - "type_info": { - "type": "Tiny", - "flags": { - "bits": 9 - }, - "char_set": 63, - "max_size": 1 - } - }, - { - "ordinal": 8, - "name": "created_at", - "type_info": { - "type": "Timestamp", - "flags": { - "bits": 1153 - }, - "char_set": 63, - "max_size": 19 - } - }, - { - "ordinal": 9, - "name": "updated_at", - "type_info": { - "type": "Timestamp", - "flags": { - "bits": 9345 - }, - "char_set": 63, - "max_size": 19 - } - } - ], - "parameters": { - "Right": 0 - }, - "nullable": [ - false, - false, - false, - false, - false, - false, - false, - false, - false, - false - ] - } - }, - "73558104936aab6add2d9c789b368b5f155f1fe01d32e7314f2f120422866f54": { - "query": "\nUPDATE w2l_template_upload_jobs\nSET\n status = ?,\n on_success_result_token = ?,\n failure_reason = NULL,\n retry_at = NULL\nWHERE id = ?\n ", - "describe": { - "columns": [], - "parameters": { - "Right": 3 - }, - "nullable": [] - } - }, - "7408744db4c97b12e50585e2cdbc421a6c467316dea6589e3a317686cfe0deb4": { - "query": "\nSELECT\n w2l.token as template_token,\n w2l.template_type,\n w2l.creator_user_token,\n users.username as creator_username,\n users.display_name as creator_display_name,\n w2l.updatable_slug,\n w2l.title,\n w2l.frame_width,\n w2l.frame_height,\n w2l.duration_millis,\n w2l.maybe_public_bucket_preview_image_object_name,\n w2l.maybe_public_bucket_preview_video_object_name,\n w2l.is_mod_public_listing_approved,\n w2l.created_at,\n w2l.updated_at\nFROM w2l_templates as w2l\nJOIN users\nON users.token = w2l.creator_user_token\nWHERE\n w2l.deleted_at IS NULL\n ", + "3c6615a453cf4ab41ff77616369a8aa1ed83f835ad35a5b52ca61fa77dfb8c77": { + "query": "\nSELECT\n w2l.token as template_token,\n w2l.template_type,\n w2l.creator_user_token,\n users.username as creator_username,\n users.display_name as creator_display_name,\n w2l.title,\n w2l.frame_width,\n w2l.frame_height,\n w2l.duration_millis,\n w2l.maybe_public_bucket_preview_image_object_name,\n w2l.maybe_public_bucket_preview_video_object_name,\n w2l.is_public_listing_approved,\n w2l.is_locked_from_use,\n w2l.is_locked_from_user_modification,\n w2l.created_at,\n w2l.updated_at,\n w2l.user_deleted_at,\n w2l.mod_deleted_at\nFROM w2l_templates as w2l\nJOIN users\n ON users.token = w2l.creator_user_token\nWHERE w2l.token = ?\n ", "describe": { "columns": [ { @@ -2832,18 +1428,6 @@ }, { "ordinal": 5, - "name": "updatable_slug", - "type_info": { - "type": "VarString", - "flags": { - "bits": 4229 - }, - "char_set": 224, - "max_size": 256 - } - }, - { - "ordinal": 6, "name": "title", "type_info": { "type": "String", @@ -2855,7 +1439,7 @@ } }, { - "ordinal": 7, + "ordinal": 6, "name": "frame_width", "type_info": { "type": "Long", @@ -2867,7 +1451,7 @@ } }, { - "ordinal": 8, + "ordinal": 7, "name": "frame_height", "type_info": { "type": "Long", @@ -2879,7 +1463,7 @@ } }, { - "ordinal": 9, + "ordinal": 8, "name": "duration_millis", "type_info": { "type": "Long", @@ -2891,7 +1475,7 @@ } }, { - "ordinal": 10, + "ordinal": 9, "name": "maybe_public_bucket_preview_image_object_name", "type_info": { "type": "VarString", @@ -2903,7 +1487,7 @@ } }, { - "ordinal": 11, + "ordinal": 10, "name": "maybe_public_bucket_preview_video_object_name", "type_info": { "type": "VarString", @@ -2915,12 +1499,24 @@ } }, { - "ordinal": 12, - "name": "is_mod_public_listing_approved", + "ordinal": 11, + "name": "is_public_listing_approved", "type_info": { "type": "Tiny", "flags": { - "bits": 0 + "bits": 8 + }, + "char_set": 63, + "max_size": 1 + } + }, + { + "ordinal": 12, + "name": "is_locked_from_use", + "type_info": { + "type": "Tiny", + "flags": { + "bits": 9 }, "char_set": 63, "max_size": 1 @@ -2928,6 +1524,18 @@ }, { "ordinal": 13, + "name": "is_locked_from_user_modification", + "type_info": { + "type": "Tiny", + "flags": { + "bits": 9 + }, + "char_set": 63, + "max_size": 1 + } + }, + { + "ordinal": 14, "name": "created_at", "type_info": { "type": "Timestamp", @@ -2939,7 +1547,7 @@ } }, { - "ordinal": 14, + "ordinal": 15, "name": "updated_at", "type_info": { "type": "Timestamp", @@ -2949,253 +1557,14 @@ "char_set": 63, "max_size": 19 } - } - ], - "parameters": { - "Right": 0 - }, - "nullable": [ - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - true, - true, - true, - false, - false - ] - } - }, - "746526e2e150150ef804d717f743de85010972d98cbb137e44d8348cfdb4dddc": { - "query": "\nINSERT INTO w2l_results\nSET\n token = ?,\n maybe_w2l_template_token = ?,\n maybe_creator_user_token = ?,\n creator_ip_address = ?,\n creator_set_visibility = 'public',\n\n public_bucket_video_path = ?,\n\n file_size_bytes = ?,\n mime_type = ?,\n frame_width = ?,\n frame_height = ?,\n duration_millis = ?\n ", - "describe": { - "columns": [], - "parameters": { - "Right": 10 - }, - "nullable": [] - } - }, - "79e6cc7829521ba8b26b5a97d3c8ab4e371945fa581e1632440c05658a2731ef": { - "query": "\nUPDATE w2l_inference_jobs\nSET\n status = 'started',\n retry_at = NOW() + interval 2 minute\nWHERE id = ?\n ", - "describe": { - "columns": [], - "parameters": { - "Right": 1 - }, - "nullable": [] - } - }, - "7ab54466ca3021d90e0feb234acba56bf53d415dde69bc1c35120ed0c8dd1858": { - "query": "\nSELECT *\nFROM tts_model_upload_jobs\nWHERE\n (\n status IN (\"pending\", \"attempt_failed\")\n )\n AND\n (\n retry_at IS NULL\n OR\n retry_at < CURRENT_TIMESTAMP\n )\n LIMIT ?\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "id", - "type_info": { - "type": "LongLong", - "flags": { - "bits": 515 - }, - "char_set": 63, - "max_size": 20 - } - }, - { - "ordinal": 1, - "name": "token", - "type_info": { - "type": "VarString", - "flags": { - "bits": 4229 - }, - "char_set": 224, - "max_size": 128 - } - }, - { - "ordinal": 2, - "name": "uuid_idempotency_token", - "type_info": { - "type": "VarString", - "flags": { - "bits": 4229 - }, - "char_set": 224, - "max_size": 144 - } - }, - { - "ordinal": 3, - "name": "on_success_result_token", - "type_info": { - "type": "VarString", - "flags": { - "bits": 136 - }, - "char_set": 224, - "max_size": 128 - } - }, - { - "ordinal": 4, - "name": "title", - "type_info": { - "type": "VarString", - "flags": { - "bits": 4225 - }, - "char_set": 224, - "max_size": 1020 - } - }, - { - "ordinal": 5, - "name": "tts_model_type", - "type_info": { - "type": "String", - "flags": { - "bits": 385 - }, - "char_set": 224, - "max_size": 60 - } - }, - { - "ordinal": 6, - "name": "maybe_subject_token", - "type_info": { - "type": "VarString", - "flags": { - "bits": 136 - }, - "char_set": 224, - "max_size": 128 - } - }, - { - "ordinal": 7, - "name": "maybe_actor_subject_token", - "type_info": { - "type": "VarString", - "flags": { - "bits": 136 - }, - "char_set": 224, - "max_size": 128 - } - }, - { - "ordinal": 8, - "name": "download_url", - "type_info": { - "type": "VarString", - "flags": { - "bits": 128 - }, - "char_set": 224, - "max_size": 2048 - } - }, - { - "ordinal": 9, - "name": "download_url_type", - "type_info": { - "type": "String", - "flags": { - "bits": 385 - }, - "char_set": 224, - "max_size": 48 - } - }, - { - "ordinal": 10, - "name": "creator_user_token", - "type_info": { - "type": "VarString", - "flags": { - "bits": 4233 - }, - "char_set": 224, - "max_size": 128 - } - }, - { - "ordinal": 11, - "name": "creator_ip_address", - "type_info": { - "type": "VarString", - "flags": { - "bits": 4233 - }, - "char_set": 224, - "max_size": 160 - } - }, - { - "ordinal": 12, - "name": "creator_set_visibility", - "type_info": { - "type": "String", - "flags": { - "bits": 385 - }, - "char_set": 224, - "max_size": 28 - } - }, - { - "ordinal": 13, - "name": "status", - "type_info": { - "type": "String", - "flags": { - "bits": 393 - }, - "char_set": 224, - "max_size": 64 - } - }, - { - "ordinal": 14, - "name": "attempt_count", - "type_info": { - "type": "Long", - "flags": { - "bits": 1 - }, - "char_set": 63, - "max_size": 3 - } - }, - { - "ordinal": 15, - "name": "failure_reason", - "type_info": { - "type": "VarString", - "flags": { - "bits": 128 - }, - "char_set": 224, - "max_size": 2048 - } }, { "ordinal": 16, - "name": "created_at", + "name": "user_deleted_at", "type_info": { "type": "Timestamp", "flags": { - "bits": 1153 + "bits": 128 }, "char_set": 63, "max_size": 19 @@ -3203,19 +1572,7 @@ }, { "ordinal": 17, - "name": "updated_at", - "type_info": { - "type": "Timestamp", - "flags": { - "bits": 9345 - }, - "char_set": 63, - "max_size": 19 - } - }, - { - "ordinal": 18, - "name": "retry_at", + "name": "mod_deleted_at", "type_info": { "type": "Timestamp", "flags": { @@ -3233,12 +1590,6 @@ false, false, false, - true, - false, - false, - true, - true, - true, false, false, false, @@ -3246,1179 +1597,19 @@ false, false, true, + true, + true, false, false, + false, + false, + true, true ] } }, - "8347b64356502ae32979d48680e6b2097e7f8c4cdc492b7285044856b58ba017": { - "query": "\nINSERT INTO w2l_inference_jobs\nSET\n token = ?,\n uuid_idempotency_token = ?,\n\n maybe_w2l_template_token = ?,\n maybe_public_audio_bucket_hash = ?,\n maybe_public_audio_bucket_location = ?,\n\n maybe_original_audio_filename = ?,\n maybe_audio_mime_type = ?,\n\n maybe_creator_user_token = ?,\n creator_ip_address = ?,\n disable_end_bump = false,\n creator_set_visibility = \"public\",\n status = \"pending\"\n ", - "describe": { - "columns": [], - "parameters": { - "Right": 9 - }, - "nullable": [] - } - }, - "865ce236444a36d597939660b14eb4b0cee05c70fdb73f31c2fb8cddddfef42c": { - "query": "\nINSERT INTO firehose_entries\nSET\n token = ?,\n event_type = ?,\n maybe_target_user_token = ?,\n maybe_target_entity_token = ?,\n maybe_created_entity_token = ?\n ", - "describe": { - "columns": [], - "parameters": { - "Right": 5 - }, - "nullable": [] - } - }, - "86f9a76cc97b471a23fff5b9ea78f7fc7ecf7603215f5db5a1ca4e063568b054": { - "query": "\nUPDATE user_sessions\nSET deleted_at = CURRENT_TIMESTAMP()\nWHERE token = ?\nAND deleted_at IS NULL\n ", - "describe": { - "columns": [], - "parameters": { - "Right": 1 - }, - "nullable": [] - } - }, - "88328e04ce947d3f541951aada9cee25135aa950ab478cf0dc6de453bb079e17": { - "query": "\nSELECT\n events.token as event_token,\n events.event_type,\n events.maybe_target_user_token,\n users.username as maybe_target_username,\n users.display_name as maybe_target_display_name,\n users.email_gravatar_hash as maybe_target_user_gravatar_hash,\n events.maybe_target_entity_token,\n events.created_at,\n events.updated_at\nFROM firehose_entries as events\nLEFT OUTER JOIN users\nON events.maybe_target_user_token = users.token\nORDER BY events.id DESC\nLIMIT 25\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "event_token", - "type_info": { - "type": "VarString", - "flags": { - "bits": 4229 - }, - "char_set": 224, - "max_size": 128 - } - }, - { - "ordinal": 1, - "name": "event_type", - "type_info": { - "type": "VarString", - "flags": { - "bits": 4233 - }, - "char_set": 224, - "max_size": 128 - } - }, - { - "ordinal": 2, - "name": "maybe_target_user_token", - "type_info": { - "type": "VarString", - "flags": { - "bits": 136 - }, - "char_set": 224, - "max_size": 128 - } - }, - { - "ordinal": 3, - "name": "maybe_target_username", - "type_info": { - "type": "VarString", - "flags": { - "bits": 4228 - }, - "char_set": 224, - "max_size": 80 - } - }, - { - "ordinal": 4, - "name": "maybe_target_display_name", - "type_info": { - "type": "VarString", - "flags": { - "bits": 4224 - }, - "char_set": 224, - "max_size": 80 - } - }, - { - "ordinal": 5, - "name": "maybe_target_user_gravatar_hash", - "type_info": { - "type": "String", - "flags": { - "bits": 4224 - }, - "char_set": 224, - "max_size": 128 - } - }, - { - "ordinal": 6, - "name": "maybe_target_entity_token", - "type_info": { - "type": "VarString", - "flags": { - "bits": 136 - }, - "char_set": 224, - "max_size": 128 - } - }, - { - "ordinal": 7, - "name": "created_at", - "type_info": { - "type": "Timestamp", - "flags": { - "bits": 1153 - }, - "char_set": 63, - "max_size": 19 - } - }, - { - "ordinal": 8, - "name": "updated_at", - "type_info": { - "type": "Timestamp", - "flags": { - "bits": 9345 - }, - "char_set": 63, - "max_size": 19 - } - } - ], - "parameters": { - "Right": 0 - }, - "nullable": [ - false, - false, - true, - true, - true, - true, - true, - false, - false - ] - } - }, - "8d61bb77449a78044135a3d6e5009a3a27b4671b7e40501d318b05ae401f02a8": { - "query": "\nSELECT token, username, email_address, password_hash\nFROM users\nWHERE email_address = ?\nLIMIT 1\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "token", - "type_info": { - "type": "VarString", - "flags": { - "bits": 4229 - }, - "char_set": 224, - "max_size": 128 - } - }, - { - "ordinal": 1, - "name": "username", - "type_info": { - "type": "VarString", - "flags": { - "bits": 4229 - }, - "char_set": 224, - "max_size": 80 - } - }, - { - "ordinal": 2, - "name": "email_address", - "type_info": { - "type": "VarString", - "flags": { - "bits": 4229 - }, - "char_set": 224, - "max_size": 1020 - } - }, - { - "ordinal": 3, - "name": "password_hash", - "type_info": { - "type": "String", - "flags": { - "bits": 4225 - }, - "char_set": 63, - "max_size": 60 - } - } - ], - "parameters": { - "Right": 1 - }, - "nullable": [ - false, - false, - false, - false - ] - } - }, - "8f19eee8d83541363f3a1797ddfa9647d2e01e8bb6c6d640e85886ae2b9567fa": { - "query": "\nINSERT INTO tts_inference_jobs\nSET\n token = ?,\n uuid_idempotency_token = ?,\n\n model_token = ?,\n inference_text = ?,\n maybe_creator_user_token = ?,\n creator_ip_address = ?,\n creator_set_visibility = ?,\n status = \"pending\"\n ", - "describe": { - "columns": [], - "parameters": { - "Right": 7 - }, - "nullable": [] - } - }, - "9009e90e61f6672b072a1d28a18bffb6adca4ff804378a21b2611c8b62c747f0": { - "query": "\nSELECT\n w2l.token as template_token,\n w2l.template_type,\n w2l.creator_user_token,\n users.username as creator_username,\n users.display_name as creator_display_name,\n w2l.updatable_slug,\n w2l.title,\n w2l.frame_width,\n w2l.frame_height,\n w2l.duration_millis,\n w2l.maybe_public_bucket_preview_image_object_name,\n w2l.maybe_public_bucket_preview_video_object_name,\n w2l.is_mod_public_listing_approved,\n w2l.is_mod_disabled,\n w2l.created_at,\n w2l.updated_at,\n w2l.deleted_at\nFROM w2l_templates as w2l\nJOIN users\nON users.token = w2l.creator_user_token\nWHERE w2l.token = ?\nAND w2l.deleted_at IS NULL\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "template_token", - "type_info": { - "type": "VarString", - "flags": { - "bits": 4229 - }, - "char_set": 224, - "max_size": 128 - } - }, - { - "ordinal": 1, - "name": "template_type", - "type_info": { - "type": "String", - "flags": { - "bits": 393 - }, - "char_set": 224, - "max_size": 28 - } - }, - { - "ordinal": 2, - "name": "creator_user_token", - "type_info": { - "type": "VarString", - "flags": { - "bits": 4233 - }, - "char_set": 224, - "max_size": 128 - } - }, - { - "ordinal": 3, - "name": "creator_username", - "type_info": { - "type": "VarString", - "flags": { - "bits": 4229 - }, - "char_set": 224, - "max_size": 80 - } - }, - { - "ordinal": 4, - "name": "creator_display_name", - "type_info": { - "type": "VarString", - "flags": { - "bits": 4225 - }, - "char_set": 224, - "max_size": 80 - } - }, - { - "ordinal": 5, - "name": "updatable_slug", - "type_info": { - "type": "VarString", - "flags": { - "bits": 4229 - }, - "char_set": 224, - "max_size": 256 - } - }, - { - "ordinal": 6, - "name": "title", - "type_info": { - "type": "String", - "flags": { - "bits": 4225 - }, - "char_set": 224, - "max_size": 1020 - } - }, - { - "ordinal": 7, - "name": "frame_width", - "type_info": { - "type": "Long", - "flags": { - "bits": 1 - }, - "char_set": 63, - "max_size": 10 - } - }, - { - "ordinal": 8, - "name": "frame_height", - "type_info": { - "type": "Long", - "flags": { - "bits": 1 - }, - "char_set": 63, - "max_size": 10 - } - }, - { - "ordinal": 9, - "name": "duration_millis", - "type_info": { - "type": "Long", - "flags": { - "bits": 1 - }, - "char_set": 63, - "max_size": 10 - } - }, - { - "ordinal": 10, - "name": "maybe_public_bucket_preview_image_object_name", - "type_info": { - "type": "VarString", - "flags": { - "bits": 128 - }, - "char_set": 224, - "max_size": 1020 - } - }, - { - "ordinal": 11, - "name": "maybe_public_bucket_preview_video_object_name", - "type_info": { - "type": "VarString", - "flags": { - "bits": 128 - }, - "char_set": 224, - "max_size": 1020 - } - }, - { - "ordinal": 12, - "name": "is_mod_public_listing_approved", - "type_info": { - "type": "Tiny", - "flags": { - "bits": 0 - }, - "char_set": 63, - "max_size": 1 - } - }, - { - "ordinal": 13, - "name": "is_mod_disabled", - "type_info": { - "type": "Tiny", - "flags": { - "bits": 9 - }, - "char_set": 63, - "max_size": 1 - } - }, - { - "ordinal": 14, - "name": "created_at", - "type_info": { - "type": "Timestamp", - "flags": { - "bits": 1153 - }, - "char_set": 63, - "max_size": 19 - } - }, - { - "ordinal": 15, - "name": "updated_at", - "type_info": { - "type": "Timestamp", - "flags": { - "bits": 9345 - }, - "char_set": 63, - "max_size": 19 - } - }, - { - "ordinal": 16, - "name": "deleted_at", - "type_info": { - "type": "Timestamp", - "flags": { - "bits": 128 - }, - "char_set": 63, - "max_size": 19 - } - } - ], - "parameters": { - "Right": 1 - }, - "nullable": [ - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - true, - true, - true, - false, - false, - false, - true - ] - } - }, - "916f732e506073fd54596a730906eaa1dae1699b59fac9ac87b1476e4524c877": { - "query": "\nSELECT\n users.token as user_token,\n username,\n display_name,\n email_gravatar_hash,\n profile_markdown,\n profile_rendered_html,\n user_role_slug,\n banned,\n avatar_public_bucket_hash,\n disable_gravatar,\n maybe_preferred_tts_model_token,\n maybe_preferred_w2l_template_token,\n discord_username,\n twitch_username,\n twitter_username,\n patreon_username,\n github_username,\n cashapp_username,\n website_url,\n created_at\nFROM users\nWHERE users.username = ?\nAND users.deleted_at IS NULL\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "user_token", - "type_info": { - "type": "VarString", - "flags": { - "bits": 4229 - }, - "char_set": 224, - "max_size": 128 - } - }, - { - "ordinal": 1, - "name": "username", - "type_info": { - "type": "VarString", - "flags": { - "bits": 4229 - }, - "char_set": 224, - "max_size": 80 - } - }, - { - "ordinal": 2, - "name": "display_name", - "type_info": { - "type": "VarString", - "flags": { - "bits": 4225 - }, - "char_set": 224, - "max_size": 80 - } - }, - { - "ordinal": 3, - "name": "email_gravatar_hash", - "type_info": { - "type": "String", - "flags": { - "bits": 4225 - }, - "char_set": 224, - "max_size": 128 - } - }, - { - "ordinal": 4, - "name": "profile_markdown", - "type_info": { - "type": "Blob", - "flags": { - "bits": 4241 - }, - "char_set": 224, - "max_size": 262140 - } - }, - { - "ordinal": 5, - "name": "profile_rendered_html", - "type_info": { - "type": "Blob", - "flags": { - "bits": 4241 - }, - "char_set": 224, - "max_size": 262140 - } - }, - { - "ordinal": 6, - "name": "user_role_slug", - "type_info": { - "type": "VarString", - "flags": { - "bits": 4233 - }, - "char_set": 224, - "max_size": 64 - } - }, - { - "ordinal": 7, - "name": "banned", - "type_info": { - "type": "Tiny", - "flags": { - "bits": 1 - }, - "char_set": 63, - "max_size": 1 - } - }, - { - "ordinal": 8, - "name": "avatar_public_bucket_hash", - "type_info": { - "type": "String", - "flags": { - "bits": 128 - }, - "char_set": 224, - "max_size": 128 - } - }, - { - "ordinal": 9, - "name": "disable_gravatar", - "type_info": { - "type": "Tiny", - "flags": { - "bits": 1 - }, - "char_set": 63, - "max_size": 1 - } - }, - { - "ordinal": 10, - "name": "maybe_preferred_tts_model_token", - "type_info": { - "type": "VarString", - "flags": { - "bits": 128 - }, - "char_set": 224, - "max_size": 128 - } - }, - { - "ordinal": 11, - "name": "maybe_preferred_w2l_template_token", - "type_info": { - "type": "VarString", - "flags": { - "bits": 128 - }, - "char_set": 224, - "max_size": 128 - } - }, - { - "ordinal": 12, - "name": "discord_username", - "type_info": { - "type": "VarString", - "flags": { - "bits": 128 - }, - "char_set": 224, - "max_size": 144 - } - }, - { - "ordinal": 13, - "name": "twitch_username", - "type_info": { - "type": "VarString", - "flags": { - "bits": 128 - }, - "char_set": 224, - "max_size": 144 - } - }, - { - "ordinal": 14, - "name": "twitter_username", - "type_info": { - "type": "VarString", - "flags": { - "bits": 128 - }, - "char_set": 224, - "max_size": 144 - } - }, - { - "ordinal": 15, - "name": "patreon_username", - "type_info": { - "type": "VarString", - "flags": { - "bits": 128 - }, - "char_set": 224, - "max_size": 144 - } - }, - { - "ordinal": 16, - "name": "github_username", - "type_info": { - "type": "VarString", - "flags": { - "bits": 128 - }, - "char_set": 224, - "max_size": 144 - } - }, - { - "ordinal": 17, - "name": "cashapp_username", - "type_info": { - "type": "VarString", - "flags": { - "bits": 128 - }, - "char_set": 224, - "max_size": 144 - } - }, - { - "ordinal": 18, - "name": "website_url", - "type_info": { - "type": "VarString", - "flags": { - "bits": 128 - }, - "char_set": 224, - "max_size": 1020 - } - }, - { - "ordinal": 19, - "name": "created_at", - "type_info": { - "type": "Timestamp", - "flags": { - "bits": 1153 - }, - "char_set": 63, - "max_size": 19 - } - } - ], - "parameters": { - "Right": 1 - }, - "nullable": [ - false, - false, - false, - false, - false, - false, - false, - false, - true, - false, - true, - true, - true, - true, - true, - true, - true, - true, - true, - false - ] - } - }, - "94847f448294888db6c800cc9558738b0c0de023225961d070b84b3906a2e493": { - "query": "\nSELECT\n w2l_results.token as w2l_result_token,\n w2l_results.maybe_tts_inference_result_token,\n\n w2l_templates.token as maybe_w2l_template_token,\n w2l_templates.template_type,\n w2l_templates.title as template_title,\n\n users.token as maybe_creator_user_token,\n users.username as maybe_creator_username,\n users.display_name as maybe_creator_display_name,\n\n w2l_results.file_size_bytes,\n w2l_results.frame_width,\n w2l_results.frame_height,\n w2l_results.duration_millis,\n w2l_results.created_at,\n w2l_results.updated_at\n\nFROM w2l_results\nLEFT OUTER JOIN w2l_templates\n ON w2l_results.maybe_w2l_template_token = w2l_templates.token\nLEFT OUTER JOIN users\n ON w2l_results.maybe_creator_user_token = users.token\nWHERE\n w2l_results.deleted_at IS NULL\n AND users.username = ?\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "w2l_result_token", - "type_info": { - "type": "VarString", - "flags": { - "bits": 4229 - }, - "char_set": 224, - "max_size": 128 - } - }, - { - "ordinal": 1, - "name": "maybe_tts_inference_result_token", - "type_info": { - "type": "VarString", - "flags": { - "bits": 136 - }, - "char_set": 224, - "max_size": 128 - } - }, - { - "ordinal": 2, - "name": "maybe_w2l_template_token", - "type_info": { - "type": "VarString", - "flags": { - "bits": 4228 - }, - "char_set": 224, - "max_size": 128 - } - }, - { - "ordinal": 3, - "name": "template_type", - "type_info": { - "type": "String", - "flags": { - "bits": 392 - }, - "char_set": 224, - "max_size": 28 - } - }, - { - "ordinal": 4, - "name": "template_title", - "type_info": { - "type": "String", - "flags": { - "bits": 4224 - }, - "char_set": 224, - "max_size": 1020 - } - }, - { - "ordinal": 5, - "name": "maybe_creator_user_token", - "type_info": { - "type": "VarString", - "flags": { - "bits": 4228 - }, - "char_set": 224, - "max_size": 128 - } - }, - { - "ordinal": 6, - "name": "maybe_creator_username", - "type_info": { - "type": "VarString", - "flags": { - "bits": 4228 - }, - "char_set": 224, - "max_size": 80 - } - }, - { - "ordinal": 7, - "name": "maybe_creator_display_name", - "type_info": { - "type": "VarString", - "flags": { - "bits": 4224 - }, - "char_set": 224, - "max_size": 80 - } - }, - { - "ordinal": 8, - "name": "file_size_bytes", - "type_info": { - "type": "Long", - "flags": { - "bits": 1 - }, - "char_set": 63, - "max_size": 10 - } - }, - { - "ordinal": 9, - "name": "frame_width", - "type_info": { - "type": "Long", - "flags": { - "bits": 1 - }, - "char_set": 63, - "max_size": 10 - } - }, - { - "ordinal": 10, - "name": "frame_height", - "type_info": { - "type": "Long", - "flags": { - "bits": 1 - }, - "char_set": 63, - "max_size": 10 - } - }, - { - "ordinal": 11, - "name": "duration_millis", - "type_info": { - "type": "Long", - "flags": { - "bits": 1 - }, - "char_set": 63, - "max_size": 10 - } - }, - { - "ordinal": 12, - "name": "created_at", - "type_info": { - "type": "Timestamp", - "flags": { - "bits": 1153 - }, - "char_set": 63, - "max_size": 19 - } - }, - { - "ordinal": 13, - "name": "updated_at", - "type_info": { - "type": "Timestamp", - "flags": { - "bits": 9345 - }, - "char_set": 63, - "max_size": 19 - } - } - ], - "parameters": { - "Right": 1 - }, - "nullable": [ - false, - true, - true, - true, - true, - true, - true, - true, - false, - false, - false, - false, - false, - false - ] - } - }, - "95db7007b9e184d64d7b8983822cb635e5b142deb8e2bea59b04a95430b62d4d": { - "query": "\nSELECT\n w2l.token as template_token,\n w2l.template_type,\n w2l.creator_user_token,\n users.username as creator_username,\n users.display_name as creator_display_name,\n w2l.updatable_slug,\n w2l.title,\n w2l.frame_width,\n w2l.frame_height,\n w2l.duration_millis,\n w2l.maybe_public_bucket_preview_image_object_name,\n w2l.maybe_public_bucket_preview_video_object_name,\n w2l.is_mod_public_listing_approved,\n w2l.is_mod_disabled,\n w2l.created_at,\n w2l.updated_at,\n w2l.deleted_at\nFROM w2l_templates as w2l\nJOIN users\nON users.token = w2l.creator_user_token\nWHERE w2l.token = ?\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "template_token", - "type_info": { - "type": "VarString", - "flags": { - "bits": 4229 - }, - "char_set": 224, - "max_size": 128 - } - }, - { - "ordinal": 1, - "name": "template_type", - "type_info": { - "type": "String", - "flags": { - "bits": 393 - }, - "char_set": 224, - "max_size": 28 - } - }, - { - "ordinal": 2, - "name": "creator_user_token", - "type_info": { - "type": "VarString", - "flags": { - "bits": 4233 - }, - "char_set": 224, - "max_size": 128 - } - }, - { - "ordinal": 3, - "name": "creator_username", - "type_info": { - "type": "VarString", - "flags": { - "bits": 4229 - }, - "char_set": 224, - "max_size": 80 - } - }, - { - "ordinal": 4, - "name": "creator_display_name", - "type_info": { - "type": "VarString", - "flags": { - "bits": 4225 - }, - "char_set": 224, - "max_size": 80 - } - }, - { - "ordinal": 5, - "name": "updatable_slug", - "type_info": { - "type": "VarString", - "flags": { - "bits": 4229 - }, - "char_set": 224, - "max_size": 256 - } - }, - { - "ordinal": 6, - "name": "title", - "type_info": { - "type": "String", - "flags": { - "bits": 4225 - }, - "char_set": 224, - "max_size": 1020 - } - }, - { - "ordinal": 7, - "name": "frame_width", - "type_info": { - "type": "Long", - "flags": { - "bits": 1 - }, - "char_set": 63, - "max_size": 10 - } - }, - { - "ordinal": 8, - "name": "frame_height", - "type_info": { - "type": "Long", - "flags": { - "bits": 1 - }, - "char_set": 63, - "max_size": 10 - } - }, - { - "ordinal": 9, - "name": "duration_millis", - "type_info": { - "type": "Long", - "flags": { - "bits": 1 - }, - "char_set": 63, - "max_size": 10 - } - }, - { - "ordinal": 10, - "name": "maybe_public_bucket_preview_image_object_name", - "type_info": { - "type": "VarString", - "flags": { - "bits": 128 - }, - "char_set": 224, - "max_size": 1020 - } - }, - { - "ordinal": 11, - "name": "maybe_public_bucket_preview_video_object_name", - "type_info": { - "type": "VarString", - "flags": { - "bits": 128 - }, - "char_set": 224, - "max_size": 1020 - } - }, - { - "ordinal": 12, - "name": "is_mod_public_listing_approved", - "type_info": { - "type": "Tiny", - "flags": { - "bits": 0 - }, - "char_set": 63, - "max_size": 1 - } - }, - { - "ordinal": 13, - "name": "is_mod_disabled", - "type_info": { - "type": "Tiny", - "flags": { - "bits": 9 - }, - "char_set": 63, - "max_size": 1 - } - }, - { - "ordinal": 14, - "name": "created_at", - "type_info": { - "type": "Timestamp", - "flags": { - "bits": 1153 - }, - "char_set": 63, - "max_size": 19 - } - }, - { - "ordinal": 15, - "name": "updated_at", - "type_info": { - "type": "Timestamp", - "flags": { - "bits": 9345 - }, - "char_set": 63, - "max_size": 19 - } - }, - { - "ordinal": 16, - "name": "deleted_at", - "type_info": { - "type": "Timestamp", - "flags": { - "bits": 128 - }, - "char_set": 63, - "max_size": 19 - } - } - ], - "parameters": { - "Right": 1 - }, - "nullable": [ - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - true, - true, - true, - false, - false, - false, - true - ] - } - }, - "9710f22f2579903571f71726585bb7de66b8a7fa9540b851c6ace30c51d29c69": { - "query": "\nUPDATE w2l_templates\nSET\n deleted_at = CURRENT_TIMESTAMP,\n maybe_mod_user_token = ?\nWHERE\n token = ?\nLIMIT 1\n ", + "40a3301e9a3201e74d49b6b339f67291e2ae22d315188401708609ac2d28a68c": { + "query": "\nUPDATE tts_results\nSET\n mod_deleted_at = NULL,\n maybe_mod_user_token = ?\nWHERE\n token = ?\nLIMIT 1\n ", "describe": { "columns": [], "parameters": { @@ -4427,8 +1618,202 @@ "nullable": [] } }, - "9c352e6fe6166ee18326908ef02dd61866d926ec63599aedf9f91a9d05d5c630": { - "query": "\nSELECT\n tts_results.token as tts_result_token,\n\n tts_results.inference_text,\n\n tts_results.model_token as tts_model_token,\n tts_models.title as tts_model_title,\n\n users.token as maybe_creator_user_token,\n users.username as maybe_creator_username,\n users.display_name as maybe_creator_display_name,\n users.email_gravatar_hash as maybe_creator_gravatar_hash,\n\n model_users.token as maybe_model_creator_user_token,\n model_users.username as maybe_model_creator_username,\n model_users.display_name as maybe_model_creator_display_name,\n model_users.email_gravatar_hash as maybe_model_creator_gravatar_hash,\n\n tts_results.public_bucket_wav_audio_path,\n tts_results.public_bucket_spectrogram_path,\n\n tts_results.file_size_bytes,\n tts_results.duration_millis,\n tts_results.created_at,\n tts_results.updated_at\n\nFROM tts_results\nLEFT OUTER JOIN tts_models\n ON tts_results.model_token = tts_models.token\nLEFT OUTER JOIN users\n ON tts_results.maybe_creator_user_token = users.token\nLEFT OUTER JOIN users as model_users\n ON tts_models.creator_user_token = model_users.token\nWHERE\n tts_results.deleted_at IS NULL\n AND tts_results.token = ?\n ", + "417dd070beeaf6ccd86852b7e99bf7fda5c5b15da4a3bcc066a0e2bb90ca7df1": { + "query": "\nSELECT\n w2l.token as template_token,\n w2l.template_type,\n w2l.creator_user_token,\n users.username as creator_username,\n users.display_name as creator_display_name,\n w2l.title,\n w2l.frame_width,\n w2l.frame_height,\n w2l.duration_millis,\n w2l.maybe_public_bucket_preview_image_object_name,\n w2l.maybe_public_bucket_preview_video_object_name,\n w2l.is_public_listing_approved,\n w2l.created_at,\n w2l.updated_at\nFROM w2l_templates as w2l\nJOIN users\n ON users.token = w2l.creator_user_token\nWHERE\n w2l.is_public_listing_approved IS TRUE\n AND w2l.user_deleted_at IS NULL\n AND w2l.mod_deleted_at IS NULL\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "template_token", + "type_info": { + "type": "VarString", + "flags": { + "bits": 4229 + }, + "char_set": 224, + "max_size": 128 + } + }, + { + "ordinal": 1, + "name": "template_type", + "type_info": { + "type": "String", + "flags": { + "bits": 393 + }, + "char_set": 224, + "max_size": 28 + } + }, + { + "ordinal": 2, + "name": "creator_user_token", + "type_info": { + "type": "VarString", + "flags": { + "bits": 4233 + }, + "char_set": 224, + "max_size": 128 + } + }, + { + "ordinal": 3, + "name": "creator_username", + "type_info": { + "type": "VarString", + "flags": { + "bits": 4229 + }, + "char_set": 224, + "max_size": 80 + } + }, + { + "ordinal": 4, + "name": "creator_display_name", + "type_info": { + "type": "VarString", + "flags": { + "bits": 4225 + }, + "char_set": 224, + "max_size": 80 + } + }, + { + "ordinal": 5, + "name": "title", + "type_info": { + "type": "String", + "flags": { + "bits": 4225 + }, + "char_set": 224, + "max_size": 1020 + } + }, + { + "ordinal": 6, + "name": "frame_width", + "type_info": { + "type": "Long", + "flags": { + "bits": 1 + }, + "char_set": 63, + "max_size": 10 + } + }, + { + "ordinal": 7, + "name": "frame_height", + "type_info": { + "type": "Long", + "flags": { + "bits": 1 + }, + "char_set": 63, + "max_size": 10 + } + }, + { + "ordinal": 8, + "name": "duration_millis", + "type_info": { + "type": "Long", + "flags": { + "bits": 1 + }, + "char_set": 63, + "max_size": 10 + } + }, + { + "ordinal": 9, + "name": "maybe_public_bucket_preview_image_object_name", + "type_info": { + "type": "VarString", + "flags": { + "bits": 128 + }, + "char_set": 224, + "max_size": 1020 + } + }, + { + "ordinal": 10, + "name": "maybe_public_bucket_preview_video_object_name", + "type_info": { + "type": "VarString", + "flags": { + "bits": 128 + }, + "char_set": 224, + "max_size": 1020 + } + }, + { + "ordinal": 11, + "name": "is_public_listing_approved", + "type_info": { + "type": "Tiny", + "flags": { + "bits": 8 + }, + "char_set": 63, + "max_size": 1 + } + }, + { + "ordinal": 12, + "name": "created_at", + "type_info": { + "type": "Timestamp", + "flags": { + "bits": 1153 + }, + "char_set": 63, + "max_size": 19 + } + }, + { + "ordinal": 13, + "name": "updated_at", + "type_info": { + "type": "Timestamp", + "flags": { + "bits": 9345 + }, + "char_set": 63, + "max_size": 19 + } + } + ], + "parameters": { + "Right": 0 + }, + "nullable": [ + false, + false, + false, + false, + false, + false, + false, + false, + false, + true, + true, + true, + false, + false + ] + } + }, + "453e6252ea537f5f3fddae361b53f21c86fe829930cf7415d43aa899e4390bd9": { + "query": "\nSELECT\n tts_results.token as tts_result_token,\n\n tts_results.raw_inference_text,\n\n tts_results.model_token as tts_model_token,\n tts_models.title as tts_model_title,\n\n users.token as maybe_creator_user_token,\n users.username as maybe_creator_username,\n users.display_name as maybe_creator_display_name,\n users.email_gravatar_hash as maybe_creator_gravatar_hash,\n\n model_users.token as maybe_model_creator_user_token,\n model_users.username as maybe_model_creator_username,\n model_users.display_name as maybe_model_creator_display_name,\n model_users.email_gravatar_hash as maybe_model_creator_gravatar_hash,\n\n tts_results.public_bucket_wav_audio_path,\n tts_results.public_bucket_spectrogram_path,\n\n tts_results.file_size_bytes,\n tts_results.duration_millis,\n tts_results.created_at,\n tts_results.updated_at,\n tts_results.user_deleted_at,\n tts_results.mod_deleted_at\n\nFROM tts_results\nLEFT OUTER JOIN tts_models\n ON tts_results.model_token = tts_models.token\nLEFT OUTER JOIN users\n ON tts_results.maybe_creator_user_token = users.token\nLEFT OUTER JOIN users as model_users\n ON tts_models.creator_user_token = model_users.token\nWHERE\n tts_results.token = ?\n ", "describe": { "columns": [ { @@ -4445,7 +1830,7 @@ }, { "ordinal": 1, - "name": "inference_text", + "name": "raw_inference_text", "type_info": { "type": "Blob", "flags": { @@ -4646,6 +2031,30 @@ "char_set": 63, "max_size": 19 } + }, + { + "ordinal": 18, + "name": "user_deleted_at", + "type_info": { + "type": "Timestamp", + "flags": { + "bits": 136 + }, + "char_set": 63, + "max_size": 19 + } + }, + { + "ordinal": 19, + "name": "mod_deleted_at", + "type_info": { + "type": "Timestamp", + "flags": { + "bits": 136 + }, + "char_set": 63, + "max_size": 19 + } } ], "parameters": { @@ -4669,47 +2078,57 @@ false, false, false, - false + false, + true, + true ] } }, - "9d4932baa4023accc2d28af98b58a47149d37c4937cd0171e6b955c09855c5f8": { - "query": "\nINSERT INTO w2l_inference_jobs\nSET\n maybe_w2l_template_token = ?,\n maybe_tts_inference_result_token = ?,\n maybe_public_audio_bucket_location = NULL,\n maybe_public_image_bucket_location = NULL,\n maybe_creator_user_token = ?,\n creator_ip_address = ?,\n creator_set_visibility = ?,\n status = \"pending\"\n ", - "describe": { - "columns": [], - "parameters": { - "Right": 5 - }, - "nullable": [] - } - }, - "9e2a2897058a40d0b27b3afddf515fd9e458a7bec824de902a673362617e8987": { - "query": "\nINSERT INTO tts_results\nSET\n token = ?,\n\n model_token = ?,\n inference_text = ?,\n inference_text_hash_sha2 = ?,\n\n maybe_creator_user_token = ?,\n creator_ip_address = ?,\n creator_set_visibility = 'public',\n\n public_bucket_hash = 'TODO',\n public_bucket_wav_audio_path = ?,\n public_bucket_spectrogram_path = ?,\n inference_public_bucket_uuid = 'TODO',\n\n file_size_bytes = ?,\n duration_millis = ?\n ", - "describe": { - "columns": [], - "parameters": { - "Right": 10 - }, - "nullable": [] - } - }, - "a125f183f7ae5627fc2118e7302cea73d967200ba1cbb12550f5880187b7db5e": { - "query": "\nUPDATE w2l_inference_jobs\nSET\n status = ?,\n on_success_result_token = ?,\n failure_reason = NULL,\n retry_at = NULL\nWHERE id = ?\n ", - "describe": { - "columns": [], - "parameters": { - "Right": 3 - }, - "nullable": [] - } - }, - "a9ff4b16669e8fb8efa9660c951ec545451fa2515ebd5d18308d088dec987121": { - "query": "\nSELECT\n w2l_results.token as w2l_result_token,\n w2l_results.maybe_tts_inference_result_token,\n\n w2l_templates.token as maybe_w2l_template_token,\n w2l_templates.template_type,\n w2l_templates.title as template_title,\n\n users.token as maybe_creator_user_token,\n users.username as maybe_creator_username,\n users.display_name as maybe_creator_display_name,\n\n w2l_results.file_size_bytes,\n w2l_results.frame_width,\n w2l_results.frame_height,\n w2l_results.duration_millis,\n w2l_results.created_at,\n w2l_results.updated_at\n\nFROM w2l_results\nLEFT OUTER JOIN w2l_templates\n ON w2l_results.maybe_w2l_template_token = w2l_templates.token\nLEFT OUTER JOIN users\n ON w2l_results.maybe_creator_user_token = users.token\nWHERE\n w2l_results.deleted_at IS NULL\n AND w2l_results.is_mod_hidden_from_public IS FALSE\n AND w2l_templates.is_mod_public_listing_approved IS TRUE\n AND users.username = ?\n ", + "4f61f621682ba255814f8a55455ea2b7fba9b6c85affaf87abfe2f81e11322f0": { + "query": "\nSELECT\n id,\n status\nFROM tts_inference_jobs\nWHERE id = ?\nFOR UPDATE\n ", "describe": { "columns": [ { "ordinal": 0, - "name": "w2l_result_token", + "name": "id", + "type_info": { + "type": "LongLong", + "flags": { + "bits": 515 + }, + "char_set": 63, + "max_size": 20 + } + }, + { + "ordinal": 1, + "name": "status", + "type_info": { + "type": "String", + "flags": { + "bits": 393 + }, + "char_set": 224, + "max_size": 64 + } + } + ], + "parameters": { + "Right": 1 + }, + "nullable": [ + false, + false + ] + } + }, + "52447dfed3f294970e4c589062342ede87ab3a1f8c483751294fcb91cadff386": { + "query": "\nSELECT\n tts_results.token as tts_result_token,\n\n tts_results.raw_inference_text,\n\n tts_results.model_token as tts_model_token,\n tts_models.title as tts_model_title,\n\n users.token as maybe_creator_user_token,\n users.username as maybe_creator_username,\n users.display_name as maybe_creator_display_name,\n users.email_gravatar_hash as maybe_creator_gravatar_hash,\n\n model_users.token as maybe_model_creator_user_token,\n model_users.username as maybe_model_creator_username,\n model_users.display_name as maybe_model_creator_display_name,\n model_users.email_gravatar_hash as maybe_model_creator_gravatar_hash,\n\n tts_results.public_bucket_wav_audio_path,\n tts_results.public_bucket_spectrogram_path,\n\n tts_results.file_size_bytes,\n tts_results.duration_millis,\n tts_results.created_at,\n tts_results.updated_at,\n tts_results.user_deleted_at,\n tts_results.mod_deleted_at\n\nFROM tts_results\nLEFT OUTER JOIN tts_models\n ON tts_results.model_token = tts_models.token\nLEFT OUTER JOIN users\n ON tts_results.maybe_creator_user_token = users.token\nLEFT OUTER JOIN users as model_users\n ON tts_models.creator_user_token = model_users.token\nWHERE\n tts_results.token = ?\n AND tts_results.user_deleted_at IS NULL\n AND tts_results.mod_deleted_at IS NULL\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "tts_result_token", "type_info": { "type": "VarString", "flags": { @@ -4721,23 +2140,23 @@ }, { "ordinal": 1, - "name": "maybe_tts_inference_result_token", + "name": "raw_inference_text", "type_info": { - "type": "VarString", + "type": "Blob", "flags": { - "bits": 136 + "bits": 4241 }, "char_set": 224, - "max_size": 128 + "max_size": 262140 } }, { "ordinal": 2, - "name": "maybe_w2l_template_token", + "name": "tts_model_token", "type_info": { "type": "VarString", "flags": { - "bits": 4228 + "bits": 4233 }, "char_set": 224, "max_size": 128 @@ -4745,21 +2164,9 @@ }, { "ordinal": 3, - "name": "template_type", + "name": "tts_model_title", "type_info": { - "type": "String", - "flags": { - "bits": 392 - }, - "char_set": 224, - "max_size": 28 - } - }, - { - "ordinal": 4, - "name": "template_title", - "type_info": { - "type": "String", + "type": "VarString", "flags": { "bits": 4224 }, @@ -4768,7 +2175,7 @@ } }, { - "ordinal": 5, + "ordinal": 4, "name": "maybe_creator_user_token", "type_info": { "type": "VarString", @@ -4780,7 +2187,7 @@ } }, { - "ordinal": 6, + "ordinal": 5, "name": "maybe_creator_username", "type_info": { "type": "VarString", @@ -4792,7 +2199,7 @@ } }, { - "ordinal": 7, + "ordinal": 6, "name": "maybe_creator_display_name", "type_info": { "type": "VarString", @@ -4803,8 +2210,92 @@ "max_size": 80 } }, + { + "ordinal": 7, + "name": "maybe_creator_gravatar_hash", + "type_info": { + "type": "String", + "flags": { + "bits": 4224 + }, + "char_set": 224, + "max_size": 128 + } + }, { "ordinal": 8, + "name": "maybe_model_creator_user_token", + "type_info": { + "type": "VarString", + "flags": { + "bits": 4228 + }, + "char_set": 224, + "max_size": 128 + } + }, + { + "ordinal": 9, + "name": "maybe_model_creator_username", + "type_info": { + "type": "VarString", + "flags": { + "bits": 4228 + }, + "char_set": 224, + "max_size": 80 + } + }, + { + "ordinal": 10, + "name": "maybe_model_creator_display_name", + "type_info": { + "type": "VarString", + "flags": { + "bits": 4224 + }, + "char_set": 224, + "max_size": 80 + } + }, + { + "ordinal": 11, + "name": "maybe_model_creator_gravatar_hash", + "type_info": { + "type": "String", + "flags": { + "bits": 4224 + }, + "char_set": 224, + "max_size": 128 + } + }, + { + "ordinal": 12, + "name": "public_bucket_wav_audio_path", + "type_info": { + "type": "VarString", + "flags": { + "bits": 4225 + }, + "char_set": 224, + "max_size": 1020 + } + }, + { + "ordinal": 13, + "name": "public_bucket_spectrogram_path", + "type_info": { + "type": "VarString", + "flags": { + "bits": 4225 + }, + "char_set": 224, + "max_size": 1020 + } + }, + { + "ordinal": 14, "name": "file_size_bytes", "type_info": { "type": "Long", @@ -4816,31 +2307,7 @@ } }, { - "ordinal": 9, - "name": "frame_width", - "type_info": { - "type": "Long", - "flags": { - "bits": 1 - }, - "char_set": 63, - "max_size": 10 - } - }, - { - "ordinal": 10, - "name": "frame_height", - "type_info": { - "type": "Long", - "flags": { - "bits": 1 - }, - "char_set": 63, - "max_size": 10 - } - }, - { - "ordinal": 11, + "ordinal": 15, "name": "duration_millis", "type_info": { "type": "Long", @@ -4852,7 +2319,7 @@ } }, { - "ordinal": 12, + "ordinal": 16, "name": "created_at", "type_info": { "type": "Timestamp", @@ -4864,7 +2331,7 @@ } }, { - "ordinal": 13, + "ordinal": 17, "name": "updated_at", "type_info": { "type": "Timestamp", @@ -4874,6 +2341,30 @@ "char_set": 63, "max_size": 19 } + }, + { + "ordinal": 18, + "name": "user_deleted_at", + "type_info": { + "type": "Timestamp", + "flags": { + "bits": 136 + }, + "char_set": 63, + "max_size": 19 + } + }, + { + "ordinal": 19, + "name": "mod_deleted_at", + "type_info": { + "type": "Timestamp", + "flags": { + "bits": 136 + }, + "char_set": 63, + "max_size": 19 + } } ], "parameters": { @@ -4881,6 +2372,10 @@ }, "nullable": [ false, + false, + false, + true, + true, true, true, true, @@ -4890,6 +2385,72 @@ true, false, false, + false, + false, + false, + false, + true, + true + ] + } + }, + "53d77ee58e9b1f7fb900914895c25bcccb9297378ff018c1e553b187d1956e92": { + "query": "\nSELECT token, username, email_address, password_hash\nFROM users\nWHERE username = ?\nLIMIT 1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "token", + "type_info": { + "type": "VarString", + "flags": { + "bits": 4229 + }, + "char_set": 224, + "max_size": 128 + } + }, + { + "ordinal": 1, + "name": "username", + "type_info": { + "type": "VarString", + "flags": { + "bits": 4229 + }, + "char_set": 224, + "max_size": 80 + } + }, + { + "ordinal": 2, + "name": "email_address", + "type_info": { + "type": "VarString", + "flags": { + "bits": 4229 + }, + "char_set": 224, + "max_size": 1020 + } + }, + { + "ordinal": 3, + "name": "password_hash", + "type_info": { + "type": "String", + "flags": { + "bits": 4225 + }, + "char_set": 63, + "max_size": 60 + } + } + ], + "parameters": { + "Right": 1 + }, + "nullable": [ false, false, false, @@ -4897,8 +2458,18 @@ ] } }, - "ab4913d3a45a2ee16110021823a0786a22aa561a55aafaee27851da1e0a67e12": { - "query": "\nSELECT\n jobs.token as job_token,\n\n jobs.status,\n jobs.on_success_result_token as maybe_result_token,\n results.public_bucket_wav_audio_path as maybe_public_bucket_wav_audio_path,\n\n jobs.model_token,\n tts.tts_model_type,\n tts.title,\n\n jobs.created_at,\n jobs.updated_at\n\nFROM tts_inference_jobs as jobs\nJOIN tts_models as tts\n ON tts.token = jobs.model_token\nLEFT OUTER JOIN tts_results as results\n ON jobs.on_success_result_token = results.token\n\nWHERE jobs.token = ?\n ", + "55a75db2d060bd49951db22f6b4ffd1545777b61c256030d59662543adc06ab2": { + "query": "\nUPDATE users\nSET\n profile_markdown = ?,\n profile_rendered_html = ?,\n discord_username = ?,\n twitter_username = ?,\n twitch_username = ?,\n github_username = ?,\n cashapp_username = ?,\n website_url = ?,\n ip_address_last_update = ?,\n version = version + 1\n\nWHERE users.token = ?\nLIMIT 1\n ", + "describe": { + "columns": [], + "parameters": { + "Right": 10 + }, + "nullable": [] + } + }, + "56a0a2bfc3c73d6845ca9cf1d285b175a40b50a250b7effb9ce6474e58113d6e": { + "query": "\nSELECT\n jobs.token as job_token,\n\n jobs.status,\n jobs.attempt_count,\n jobs.on_success_result_token as maybe_model_token,\n\n jobs.created_at,\n jobs.updated_at\n\nFROM tts_model_upload_jobs as jobs\n\nWHERE jobs.token = ?\n ", "describe": { "columns": [ { @@ -4927,6 +2498,108 @@ }, { "ordinal": 2, + "name": "attempt_count", + "type_info": { + "type": "Long", + "flags": { + "bits": 1 + }, + "char_set": 63, + "max_size": 3 + } + }, + { + "ordinal": 3, + "name": "maybe_model_token", + "type_info": { + "type": "VarString", + "flags": { + "bits": 136 + }, + "char_set": 224, + "max_size": 128 + } + }, + { + "ordinal": 4, + "name": "created_at", + "type_info": { + "type": "Timestamp", + "flags": { + "bits": 1153 + }, + "char_set": 63, + "max_size": 19 + } + }, + { + "ordinal": 5, + "name": "updated_at", + "type_info": { + "type": "Timestamp", + "flags": { + "bits": 9345 + }, + "char_set": 63, + "max_size": 19 + } + } + ], + "parameters": { + "Right": 1 + }, + "nullable": [ + false, + false, + false, + true, + false, + false + ] + } + }, + "57928b1001a10a88ac5a07f43b1dd30f6dee6edbc0808be99fe1233f9e276c56": { + "query": "\nSELECT\n jobs.token as job_token,\n\n jobs.status,\n jobs.attempt_count,\n jobs.on_success_result_token as maybe_result_token,\n results.public_bucket_video_path as maybe_public_bucket_video_path,\n\n jobs.maybe_w2l_template_token,\n w2l.template_type as w2l_template_type,\n w2l.title,\n\n jobs.created_at,\n jobs.updated_at\n\nFROM w2l_inference_jobs as jobs\nJOIN w2l_templates as w2l\n ON w2l.token = jobs.maybe_w2l_template_token\nLEFT OUTER JOIN w2l_results as results\n ON jobs.on_success_result_token = results.token\n\nWHERE jobs.token = ?\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "job_token", + "type_info": { + "type": "VarString", + "flags": { + "bits": 4229 + }, + "char_set": 224, + "max_size": 128 + } + }, + { + "ordinal": 1, + "name": "status", + "type_info": { + "type": "String", + "flags": { + "bits": 393 + }, + "char_set": 224, + "max_size": 64 + } + }, + { + "ordinal": 2, + "name": "attempt_count", + "type_info": { + "type": "Long", + "flags": { + "bits": 1 + }, + "char_set": 63, + "max_size": 3 + } + }, + { + "ordinal": 3, "name": "maybe_result_token", "type_info": { "type": "VarString", @@ -4938,8 +2611,8 @@ } }, { - "ordinal": 3, - "name": "maybe_public_bucket_wav_audio_path", + "ordinal": 4, + "name": "maybe_public_bucket_video_path", "type_info": { "type": "VarString", "flags": { @@ -4949,9 +2622,424 @@ "max_size": 1020 } }, + { + "ordinal": 5, + "name": "maybe_w2l_template_token", + "type_info": { + "type": "VarString", + "flags": { + "bits": 136 + }, + "char_set": 224, + "max_size": 128 + } + }, + { + "ordinal": 6, + "name": "w2l_template_type", + "type_info": { + "type": "String", + "flags": { + "bits": 393 + }, + "char_set": 224, + "max_size": 28 + } + }, + { + "ordinal": 7, + "name": "title", + "type_info": { + "type": "String", + "flags": { + "bits": 4225 + }, + "char_set": 224, + "max_size": 1020 + } + }, + { + "ordinal": 8, + "name": "created_at", + "type_info": { + "type": "Timestamp", + "flags": { + "bits": 1153 + }, + "char_set": 63, + "max_size": 19 + } + }, + { + "ordinal": 9, + "name": "updated_at", + "type_info": { + "type": "Timestamp", + "flags": { + "bits": 9345 + }, + "char_set": 63, + "max_size": 19 + } + } + ], + "parameters": { + "Right": 1 + }, + "nullable": [ + false, + false, + false, + true, + true, + true, + false, + false, + false, + false + ] + } + }, + "5c13a3969006332b5910fcfd4cd58eecbcd5866059b76afff610a2ad3900d094": { + "query": "\nSELECT\n jobs.token as job_token,\n\n jobs.status,\n jobs.attempt_count,\n jobs.on_success_result_token as maybe_template_token,\n\n jobs.created_at,\n jobs.updated_at\n\nFROM w2l_template_upload_jobs as jobs\n\nWHERE jobs.token = ?\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "job_token", + "type_info": { + "type": "VarString", + "flags": { + "bits": 4229 + }, + "char_set": 224, + "max_size": 128 + } + }, + { + "ordinal": 1, + "name": "status", + "type_info": { + "type": "String", + "flags": { + "bits": 393 + }, + "char_set": 224, + "max_size": 64 + } + }, + { + "ordinal": 2, + "name": "attempt_count", + "type_info": { + "type": "Long", + "flags": { + "bits": 1 + }, + "char_set": 63, + "max_size": 3 + } + }, + { + "ordinal": 3, + "name": "maybe_template_token", + "type_info": { + "type": "VarString", + "flags": { + "bits": 136 + }, + "char_set": 224, + "max_size": 128 + } + }, { "ordinal": 4, + "name": "created_at", + "type_info": { + "type": "Timestamp", + "flags": { + "bits": 1153 + }, + "char_set": 63, + "max_size": 19 + } + }, + { + "ordinal": 5, + "name": "updated_at", + "type_info": { + "type": "Timestamp", + "flags": { + "bits": 9345 + }, + "char_set": 63, + "max_size": 19 + } + } + ], + "parameters": { + "Right": 1 + }, + "nullable": [ + false, + false, + false, + true, + false, + false + ] + } + }, + "5e54fd8569b2d6d3a0d11acee6bd03b75400b6325952eb16c8dac68a7933b13a": { + "query": "\nSELECT\n users.token as user_token,\n username,\n display_name,\n email_gravatar_hash,\n profile_markdown,\n profile_rendered_html,\n user_role_slug,\n is_banned,\n disable_gravatar,\n discord_username,\n twitch_username,\n twitter_username,\n patreon_username,\n github_username,\n created_at\nFROM users\nWHERE\n users.username = ?\n AND users.user_deleted_at IS NULL\n AND users.mod_deleted_at IS NULL\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "user_token", + "type_info": { + "type": "VarString", + "flags": { + "bits": 4229 + }, + "char_set": 224, + "max_size": 128 + } + }, + { + "ordinal": 1, + "name": "username", + "type_info": { + "type": "VarString", + "flags": { + "bits": 4229 + }, + "char_set": 224, + "max_size": 80 + } + }, + { + "ordinal": 2, + "name": "display_name", + "type_info": { + "type": "VarString", + "flags": { + "bits": 4225 + }, + "char_set": 224, + "max_size": 80 + } + }, + { + "ordinal": 3, + "name": "email_gravatar_hash", + "type_info": { + "type": "String", + "flags": { + "bits": 4225 + }, + "char_set": 224, + "max_size": 128 + } + }, + { + "ordinal": 4, + "name": "profile_markdown", + "type_info": { + "type": "Blob", + "flags": { + "bits": 4241 + }, + "char_set": 224, + "max_size": 262140 + } + }, + { + "ordinal": 5, + "name": "profile_rendered_html", + "type_info": { + "type": "Blob", + "flags": { + "bits": 4241 + }, + "char_set": 224, + "max_size": 262140 + } + }, + { + "ordinal": 6, + "name": "user_role_slug", + "type_info": { + "type": "VarString", + "flags": { + "bits": 4233 + }, + "char_set": 224, + "max_size": 64 + } + }, + { + "ordinal": 7, + "name": "is_banned", + "type_info": { + "type": "Tiny", + "flags": { + "bits": 1 + }, + "char_set": 63, + "max_size": 1 + } + }, + { + "ordinal": 8, + "name": "disable_gravatar", + "type_info": { + "type": "Tiny", + "flags": { + "bits": 1 + }, + "char_set": 63, + "max_size": 1 + } + }, + { + "ordinal": 9, + "name": "discord_username", + "type_info": { + "type": "VarString", + "flags": { + "bits": 128 + }, + "char_set": 224, + "max_size": 144 + } + }, + { + "ordinal": 10, + "name": "twitch_username", + "type_info": { + "type": "VarString", + "flags": { + "bits": 128 + }, + "char_set": 224, + "max_size": 144 + } + }, + { + "ordinal": 11, + "name": "twitter_username", + "type_info": { + "type": "VarString", + "flags": { + "bits": 128 + }, + "char_set": 224, + "max_size": 144 + } + }, + { + "ordinal": 12, + "name": "patreon_username", + "type_info": { + "type": "VarString", + "flags": { + "bits": 128 + }, + "char_set": 224, + "max_size": 144 + } + }, + { + "ordinal": 13, + "name": "github_username", + "type_info": { + "type": "VarString", + "flags": { + "bits": 128 + }, + "char_set": 224, + "max_size": 144 + } + }, + { + "ordinal": 14, + "name": "created_at", + "type_info": { + "type": "Timestamp", + "flags": { + "bits": 1153 + }, + "char_set": 63, + "max_size": 19 + } + } + ], + "parameters": { + "Right": 1 + }, + "nullable": [ + false, + false, + false, + false, + false, + false, + false, + false, + false, + true, + true, + true, + true, + true, + false + ] + } + }, + "6105a7fd1cf7a4d61d1b00c262c44f0370f7a9b8827354b2e3161d78493a0f5b": { + "query": "\nSELECT\n tts.token as model_token,\n tts.tts_model_type,\n tts.text_preprocessing_algorithm,\n\n tts.creator_user_token,\n users.username as creator_username,\n users.display_name as creator_display_name,\n\n tts.title,\n\n tts.created_at,\n tts.updated_at\nFROM tts_models as tts\nJOIN users\nON users.token = tts.creator_user_token\nWHERE\n tts.token = ?\n AND tts.user_deleted_at IS NULL\n AND tts.mod_deleted_at IS NULL\n ", + "describe": { + "columns": [ + { + "ordinal": 0, "name": "model_token", + "type_info": { + "type": "VarString", + "flags": { + "bits": 4229 + }, + "char_set": 224, + "max_size": 128 + } + }, + { + "ordinal": 1, + "name": "tts_model_type", + "type_info": { + "type": "String", + "flags": { + "bits": 385 + }, + "char_set": 224, + "max_size": 60 + } + }, + { + "ordinal": 2, + "name": "text_preprocessing_algorithm", + "type_info": { + "type": "String", + "flags": { + "bits": 385 + }, + "char_set": 224, + "max_size": 28 + } + }, + { + "ordinal": 3, + "name": "creator_user_token", "type_info": { "type": "VarString", "flags": { @@ -4962,15 +3050,27 @@ } }, { - "ordinal": 5, - "name": "tts_model_type", + "ordinal": 4, + "name": "creator_username", "type_info": { - "type": "String", + "type": "VarString", "flags": { - "bits": 385 + "bits": 4229 }, "char_set": 224, - "max_size": 60 + "max_size": 80 + } + }, + { + "ordinal": 5, + "name": "creator_display_name", + "type_info": { + "type": "VarString", + "flags": { + "bits": 4225 + }, + "char_set": 224, + "max_size": 80 } }, { @@ -5016,8 +3116,8 @@ "nullable": [ false, false, - true, - true, + false, + false, false, false, false, @@ -5026,23 +3126,43 @@ ] } }, - "ab78a81f85310750668e2c7de920c067290f2b004561ab706a5edfd893fd06fe": { - "query": "\nINSERT INTO w2l_templates\nSET\n token = ?,\n template_type = ?,\n updatable_slug = ?,\n title = ?,\n description_markdown = '',\n description_rendered_html = '',\n creator_user_token = ?,\n creator_ip_address = ?,\n original_download_url = ?,\n private_bucket_hash = ?,\n private_bucket_object_name = ?,\n private_bucket_cached_faces_object_name = ?,\n maybe_public_bucket_preview_image_object_name = ?,\n maybe_public_bucket_preview_video_object_name = ?,\n file_size_bytes = ?,\n mime_type = ?,\n frame_width = ?,\n frame_height = ?,\n frame_count = ?,\n fps = ?,\n duration_millis = ?\n ", + "641253d4c621f75037877651bba044a21033f50a5e3f8fed9b06ec967a508853": { + "query": "\nUPDATE w2l_template_upload_jobs\nSET\n status = 'started',\n attempt_count = attempt_count + 1,\n retry_at = NOW() + interval 2 minute\nWHERE id = ?\n ", "describe": { "columns": [], "parameters": { - "Right": 19 + "Right": 1 }, "nullable": [] } }, - "ae2c639b0b9d4efd8734c23d5fd52178df985b4258ba7f3786fd609bfd647761": { - "query": "\nSELECT\n tts_results.token as tts_result_token,\n\n tts_results.model_token as tts_model_token,\n tts_results.inference_text as inference_text,\n\n users.token as maybe_creator_user_token,\n users.username as maybe_creator_username,\n users.display_name as maybe_creator_display_name,\n\n tts_results.file_size_bytes,\n tts_results.duration_millis,\n tts_results.created_at,\n tts_results.updated_at\n\nFROM tts_results\nLEFT OUTER JOIN tts_models\n ON tts_results.model_token = tts_models.token\nLEFT OUTER JOIN users\n ON tts_results.maybe_creator_user_token = users.token\nWHERE\n tts_results.deleted_at IS NULL\n AND users.username = ?\n ", + "65ce50a3aafe979e77a541d576228d7fcfe76e33400427d01382da36c1585edb": { + "query": "\nUPDATE tts_inference_jobs\nSET\n status = ?,\n on_success_result_token = ?,\n failure_reason = NULL,\n retry_at = NULL\nWHERE id = ?\n ", + "describe": { + "columns": [], + "parameters": { + "Right": 3 + }, + "nullable": [] + } + }, + "663506988f146de6f559e5df4f4a2b607e9421a69bb57db1f656774bf8b375db": { + "query": "\nUPDATE w2l_results\nSET\n mod_deleted_at = CURRENT_TIMESTAMP,\n maybe_mod_user_token = ?\nWHERE\n token = ?\nLIMIT 1\n ", + "describe": { + "columns": [], + "parameters": { + "Right": 2 + }, + "nullable": [] + } + }, + "66442f357c878d55cf99a388861c6d7434f4e543f76088a8d70d73b489b11784": { + "query": "\nSELECT\n w2l_results.token as w2l_result_token,\n w2l_results.maybe_tts_inference_result_token,\n\n w2l_results.public_bucket_video_path,\n\n w2l_templates.token as maybe_w2l_template_token,\n w2l_templates.template_type,\n w2l_templates.title as template_title,\n\n users.token as maybe_creator_user_token,\n users.username as maybe_creator_username,\n users.display_name as maybe_creator_display_name,\n users.email_gravatar_hash as maybe_creator_gravatar_hash,\n\n template_users.token as maybe_template_creator_user_token,\n template_users.username as maybe_template_creator_username,\n template_users.display_name as maybe_template_creator_display_name,\n template_users.email_gravatar_hash as maybe_template_creator_gravatar_hash,\n\n w2l_results.file_size_bytes,\n w2l_results.frame_width,\n w2l_results.frame_height,\n w2l_results.duration_millis,\n w2l_results.created_at,\n w2l_results.updated_at,\n w2l_results.user_deleted_at,\n w2l_results.mod_deleted_at\n\nFROM w2l_results\nLEFT OUTER JOIN w2l_templates\n ON w2l_results.maybe_w2l_template_token = w2l_templates.token\nLEFT OUTER JOIN users\n ON w2l_results.maybe_creator_user_token = users.token\nLEFT OUTER JOIN users as template_users\n ON w2l_templates.creator_user_token = template_users.token\nWHERE\n w2l_results.token = ?\n ", "describe": { "columns": [ { "ordinal": 0, - "name": "tts_result_token", + "name": "w2l_result_token", "type_info": { "type": "VarString", "flags": { @@ -5054,11 +3174,11 @@ }, { "ordinal": 1, - "name": "tts_model_token", + "name": "maybe_tts_inference_result_token", "type_info": { "type": "VarString", "flags": { - "bits": 4233 + "bits": 136 }, "char_set": 224, "max_size": 128 @@ -5066,19 +3186,19 @@ }, { "ordinal": 2, - "name": "inference_text", + "name": "public_bucket_video_path", "type_info": { - "type": "Blob", + "type": "VarString", "flags": { - "bits": 4241 + "bits": 4225 }, "char_set": 224, - "max_size": 262140 + "max_size": 1020 } }, { "ordinal": 3, - "name": "maybe_creator_user_token", + "name": "maybe_w2l_template_token", "type_info": { "type": "VarString", "flags": { @@ -5090,6 +3210,42 @@ }, { "ordinal": 4, + "name": "template_type", + "type_info": { + "type": "String", + "flags": { + "bits": 392 + }, + "char_set": 224, + "max_size": 28 + } + }, + { + "ordinal": 5, + "name": "template_title", + "type_info": { + "type": "String", + "flags": { + "bits": 4224 + }, + "char_set": 224, + "max_size": 1020 + } + }, + { + "ordinal": 6, + "name": "maybe_creator_user_token", + "type_info": { + "type": "VarString", + "flags": { + "bits": 4228 + }, + "char_set": 224, + "max_size": 128 + } + }, + { + "ordinal": 7, "name": "maybe_creator_username", "type_info": { "type": "VarString", @@ -5101,7 +3257,7 @@ } }, { - "ordinal": 5, + "ordinal": 8, "name": "maybe_creator_display_name", "type_info": { "type": "VarString", @@ -5113,7 +3269,67 @@ } }, { - "ordinal": 6, + "ordinal": 9, + "name": "maybe_creator_gravatar_hash", + "type_info": { + "type": "String", + "flags": { + "bits": 4224 + }, + "char_set": 224, + "max_size": 128 + } + }, + { + "ordinal": 10, + "name": "maybe_template_creator_user_token", + "type_info": { + "type": "VarString", + "flags": { + "bits": 4228 + }, + "char_set": 224, + "max_size": 128 + } + }, + { + "ordinal": 11, + "name": "maybe_template_creator_username", + "type_info": { + "type": "VarString", + "flags": { + "bits": 4228 + }, + "char_set": 224, + "max_size": 80 + } + }, + { + "ordinal": 12, + "name": "maybe_template_creator_display_name", + "type_info": { + "type": "VarString", + "flags": { + "bits": 4224 + }, + "char_set": 224, + "max_size": 80 + } + }, + { + "ordinal": 13, + "name": "maybe_template_creator_gravatar_hash", + "type_info": { + "type": "String", + "flags": { + "bits": 4224 + }, + "char_set": 224, + "max_size": 128 + } + }, + { + "ordinal": 14, "name": "file_size_bytes", "type_info": { "type": "Long", @@ -5125,7 +3341,31 @@ } }, { - "ordinal": 7, + "ordinal": 15, + "name": "frame_width", + "type_info": { + "type": "Long", + "flags": { + "bits": 1 + }, + "char_set": 63, + "max_size": 10 + } + }, + { + "ordinal": 16, + "name": "frame_height", + "type_info": { + "type": "Long", + "flags": { + "bits": 1 + }, + "char_set": 63, + "max_size": 10 + } + }, + { + "ordinal": 17, "name": "duration_millis", "type_info": { "type": "Long", @@ -5137,7 +3377,7 @@ } }, { - "ordinal": 8, + "ordinal": 18, "name": "created_at", "type_info": { "type": "Timestamp", @@ -5149,7 +3389,7 @@ } }, { - "ordinal": 9, + "ordinal": 19, "name": "updated_at", "type_info": { "type": "Timestamp", @@ -5159,6 +3399,30 @@ "char_set": 63, "max_size": 19 } + }, + { + "ordinal": 20, + "name": "user_deleted_at", + "type_info": { + "type": "Timestamp", + "flags": { + "bits": 136 + }, + "char_set": 63, + "max_size": 19 + } + }, + { + "ordinal": 21, + "name": "mod_deleted_at", + "type_info": { + "type": "Timestamp", + "flags": { + "bits": 136 + }, + "char_set": 63, + "max_size": 19 + } } ], "parameters": { @@ -5166,20 +3430,52 @@ }, "nullable": [ false, - false, + true, false, true, true, true, + true, + true, + true, + true, + true, + true, + true, + true, false, false, false, - false + false, + false, + false, + true, + true ] } }, - "b1ad806aa93f66cab358d7cdb405d57c643e2ff131cfec9f1ced55c2e6ca9511": { - "query": "\nUPDATE tts_model_upload_jobs\nSET\n status = ?,\n on_success_result_token = ?,\n failure_reason = NULL,\n retry_at = NULL\nWHERE id = ?\n ", + "68376f750b8421c10d319fa1045a2f3ce8fb1d35a5fe6ec92b2022babafbde80": { + "query": "\nUPDATE users\nSET\n user_role_slug = ?\nWHERE\n token = ?\nLIMIT 1\n ", + "describe": { + "columns": [], + "parameters": { + "Right": 2 + }, + "nullable": [] + } + }, + "6b66db376952ff4cfcea6ffe1f9ecd4462722843a3d19fcd4df16f0fb993decc": { + "query": "\nUPDATE tts_model_upload_jobs\nSET\n status = 'started',\n attempt_count = attempt_count + 1,\n retry_at = NOW() + interval 2 minute\nWHERE id = ?\n ", + "describe": { + "columns": [], + "parameters": { + "Right": 1 + }, + "nullable": [] + } + }, + "73558104936aab6add2d9c789b368b5f155f1fe01d32e7314f2f120422866f54": { + "query": "\nUPDATE w2l_template_upload_jobs\nSET\n status = ?,\n on_success_result_token = ?,\n failure_reason = NULL,\n retry_at = NULL\nWHERE id = ?\n ", "describe": { "columns": [], "parameters": { @@ -5188,8 +3484,8 @@ "nullable": [] } }, - "b3f987707efca036012cb6cbdc3a2e104ccf8d41f2e1608bcca6e05b308b5696": { - "query": "\nSELECT\n w2l.token as template_token,\n w2l.template_type,\n w2l.creator_user_token,\n users.username as creator_username,\n users.display_name as creator_display_name,\n w2l.updatable_slug,\n w2l.title,\n w2l.frame_width,\n w2l.frame_height,\n w2l.duration_millis,\n w2l.maybe_public_bucket_preview_image_object_name,\n w2l.maybe_public_bucket_preview_video_object_name,\n w2l.is_mod_public_listing_approved,\n w2l.created_at,\n w2l.updated_at\nFROM w2l_templates as w2l\nJOIN users\nON users.token = w2l.creator_user_token\nWHERE\n w2l.deleted_at IS NULL\n AND w2l.is_mod_public_listing_approved IS TRUE\n ", + "7622292c05fe1b5832136762042780a12a02048166bb1b4492dfd627c48c8968": { + "query": "\nSELECT\n token as template_token\nFROM w2l_templates\nWHERE\n token = ?\n AND user_deleted_at IS NULL\n AND mod_deleted_at IS NULL\n ", "describe": { "columns": [ { @@ -5203,146 +3499,171 @@ "char_set": 224, "max_size": 128 } - }, + } + ], + "parameters": { + "Right": 1 + }, + "nullable": [ + false + ] + } + }, + "78006a7a9388557d53c9a9cc8aeec84496e87355501c5b412f788a2291077473": { + "query": "\nSELECT\n slug,\n name,\n\n can_use_tts,\n can_use_w2l,\n can_delete_own_tts_results,\n can_delete_own_w2l_results,\n can_delete_own_account,\n\n can_upload_tts_models,\n can_upload_w2l_templates,\n can_delete_own_tts_models,\n can_delete_own_w2l_templates,\n\n can_approve_w2l_templates,\n can_edit_other_users_profiles,\n can_edit_other_users_tts_models,\n can_edit_other_users_w2l_templates,\n can_delete_other_users_tts_models,\n can_delete_other_users_tts_results,\n can_delete_other_users_w2l_templates,\n can_delete_other_users_w2l_results,\n can_ban_users,\n can_delete_users,\n\n created_at,\n updated_at\n\nFROM user_roles\n ", + "describe": { + "columns": [ { - "ordinal": 1, - "name": "template_type", + "ordinal": 0, + "name": "slug", "type_info": { "type": "String", "flags": { - "bits": 393 + "bits": 4229 }, "char_set": 224, - "max_size": 28 + "max_size": 64 + } + }, + { + "ordinal": 1, + "name": "name", + "type_info": { + "type": "VarString", + "flags": { + "bits": 4225 + }, + "char_set": 224, + "max_size": 1020 } }, { "ordinal": 2, - "name": "creator_user_token", + "name": "can_use_tts", "type_info": { - "type": "VarString", + "type": "Tiny", "flags": { - "bits": 4233 + "bits": 1 }, - "char_set": 224, - "max_size": 128 + "char_set": 63, + "max_size": 1 } }, { "ordinal": 3, - "name": "creator_username", + "name": "can_use_w2l", "type_info": { - "type": "VarString", + "type": "Tiny", "flags": { - "bits": 4229 + "bits": 1 }, - "char_set": 224, - "max_size": 80 + "char_set": 63, + "max_size": 1 } }, { "ordinal": 4, - "name": "creator_display_name", + "name": "can_delete_own_tts_results", "type_info": { - "type": "VarString", + "type": "Tiny", "flags": { - "bits": 4225 + "bits": 1 }, - "char_set": 224, - "max_size": 80 + "char_set": 63, + "max_size": 1 } }, { "ordinal": 5, - "name": "updatable_slug", + "name": "can_delete_own_w2l_results", "type_info": { - "type": "VarString", + "type": "Tiny", "flags": { - "bits": 4229 + "bits": 1 }, - "char_set": 224, - "max_size": 256 + "char_set": 63, + "max_size": 1 } }, { "ordinal": 6, - "name": "title", + "name": "can_delete_own_account", "type_info": { - "type": "String", + "type": "Tiny", "flags": { - "bits": 4225 + "bits": 1 }, - "char_set": 224, - "max_size": 1020 + "char_set": 63, + "max_size": 1 } }, { "ordinal": 7, - "name": "frame_width", + "name": "can_upload_tts_models", "type_info": { - "type": "Long", + "type": "Tiny", "flags": { "bits": 1 }, "char_set": 63, - "max_size": 10 + "max_size": 1 } }, { "ordinal": 8, - "name": "frame_height", + "name": "can_upload_w2l_templates", "type_info": { - "type": "Long", + "type": "Tiny", "flags": { "bits": 1 }, "char_set": 63, - "max_size": 10 + "max_size": 1 } }, { "ordinal": 9, - "name": "duration_millis", + "name": "can_delete_own_tts_models", "type_info": { - "type": "Long", + "type": "Tiny", "flags": { "bits": 1 }, "char_set": 63, - "max_size": 10 + "max_size": 1 } }, { "ordinal": 10, - "name": "maybe_public_bucket_preview_image_object_name", + "name": "can_delete_own_w2l_templates", "type_info": { - "type": "VarString", + "type": "Tiny", "flags": { - "bits": 128 + "bits": 1 }, - "char_set": 224, - "max_size": 1020 + "char_set": 63, + "max_size": 1 } }, { "ordinal": 11, - "name": "maybe_public_bucket_preview_video_object_name", + "name": "can_approve_w2l_templates", "type_info": { - "type": "VarString", + "type": "Tiny", "flags": { - "bits": 128 + "bits": 1 }, - "char_set": 224, - "max_size": 1020 + "char_set": 63, + "max_size": 1 } }, { "ordinal": 12, - "name": "is_mod_public_listing_approved", + "name": "can_edit_other_users_profiles", "type_info": { "type": "Tiny", "flags": { - "bits": 0 + "bits": 1 }, "char_set": 63, "max_size": 1 @@ -5350,6 +3671,102 @@ }, { "ordinal": 13, + "name": "can_edit_other_users_tts_models", + "type_info": { + "type": "Tiny", + "flags": { + "bits": 1 + }, + "char_set": 63, + "max_size": 1 + } + }, + { + "ordinal": 14, + "name": "can_edit_other_users_w2l_templates", + "type_info": { + "type": "Tiny", + "flags": { + "bits": 1 + }, + "char_set": 63, + "max_size": 1 + } + }, + { + "ordinal": 15, + "name": "can_delete_other_users_tts_models", + "type_info": { + "type": "Tiny", + "flags": { + "bits": 1 + }, + "char_set": 63, + "max_size": 1 + } + }, + { + "ordinal": 16, + "name": "can_delete_other_users_tts_results", + "type_info": { + "type": "Tiny", + "flags": { + "bits": 1 + }, + "char_set": 63, + "max_size": 1 + } + }, + { + "ordinal": 17, + "name": "can_delete_other_users_w2l_templates", + "type_info": { + "type": "Tiny", + "flags": { + "bits": 1 + }, + "char_set": 63, + "max_size": 1 + } + }, + { + "ordinal": 18, + "name": "can_delete_other_users_w2l_results", + "type_info": { + "type": "Tiny", + "flags": { + "bits": 1 + }, + "char_set": 63, + "max_size": 1 + } + }, + { + "ordinal": 19, + "name": "can_ban_users", + "type_info": { + "type": "Tiny", + "flags": { + "bits": 1 + }, + "char_set": 63, + "max_size": 1 + } + }, + { + "ordinal": 20, + "name": "can_delete_users", + "type_info": { + "type": "Tiny", + "flags": { + "bits": 1 + }, + "char_set": 63, + "max_size": 1 + } + }, + { + "ordinal": 21, "name": "created_at", "type_info": { "type": "Timestamp", @@ -5361,7 +3778,7 @@ } }, { - "ordinal": 14, + "ordinal": 22, "name": "updated_at", "type_info": { "type": "Timestamp", @@ -5387,26 +3804,244 @@ false, false, false, - true, - true, - true, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, false, false ] } }, - "b4582bc4d8865cc82bf1e0fe15209db07d1922a29c274b872cd5f5eaee4b261d": { - "query": "\nUPDATE w2l_template_upload_jobs\nSET\n status = 'started',\n retry_at = NOW() + interval 2 minute\nWHERE id = ?\n ", + "7ab54466ca3021d90e0feb234acba56bf53d415dde69bc1c35120ed0c8dd1858": { + "query": "\nSELECT *\nFROM tts_model_upload_jobs\nWHERE\n (\n status IN (\"pending\", \"attempt_failed\")\n )\n AND\n (\n retry_at IS NULL\n OR\n retry_at < CURRENT_TIMESTAMP\n )\n LIMIT ?\n ", "describe": { - "columns": [], + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": { + "type": "LongLong", + "flags": { + "bits": 515 + }, + "char_set": 63, + "max_size": 20 + } + }, + { + "ordinal": 1, + "name": "token", + "type_info": { + "type": "VarString", + "flags": { + "bits": 4229 + }, + "char_set": 224, + "max_size": 128 + } + }, + { + "ordinal": 2, + "name": "uuid_idempotency_token", + "type_info": { + "type": "VarString", + "flags": { + "bits": 4229 + }, + "char_set": 224, + "max_size": 144 + } + }, + { + "ordinal": 3, + "name": "on_success_result_token", + "type_info": { + "type": "VarString", + "flags": { + "bits": 136 + }, + "char_set": 224, + "max_size": 128 + } + }, + { + "ordinal": 4, + "name": "title", + "type_info": { + "type": "VarString", + "flags": { + "bits": 4225 + }, + "char_set": 224, + "max_size": 1020 + } + }, + { + "ordinal": 5, + "name": "tts_model_type", + "type_info": { + "type": "String", + "flags": { + "bits": 385 + }, + "char_set": 224, + "max_size": 60 + } + }, + { + "ordinal": 6, + "name": "download_url", + "type_info": { + "type": "VarString", + "flags": { + "bits": 128 + }, + "char_set": 224, + "max_size": 2048 + } + }, + { + "ordinal": 7, + "name": "creator_user_token", + "type_info": { + "type": "VarString", + "flags": { + "bits": 4233 + }, + "char_set": 224, + "max_size": 128 + } + }, + { + "ordinal": 8, + "name": "creator_ip_address", + "type_info": { + "type": "VarString", + "flags": { + "bits": 4233 + }, + "char_set": 224, + "max_size": 160 + } + }, + { + "ordinal": 9, + "name": "creator_set_visibility", + "type_info": { + "type": "String", + "flags": { + "bits": 385 + }, + "char_set": 224, + "max_size": 28 + } + }, + { + "ordinal": 10, + "name": "status", + "type_info": { + "type": "String", + "flags": { + "bits": 393 + }, + "char_set": 224, + "max_size": 64 + } + }, + { + "ordinal": 11, + "name": "attempt_count", + "type_info": { + "type": "Long", + "flags": { + "bits": 1 + }, + "char_set": 63, + "max_size": 3 + } + }, + { + "ordinal": 12, + "name": "failure_reason", + "type_info": { + "type": "VarString", + "flags": { + "bits": 128 + }, + "char_set": 224, + "max_size": 2048 + } + }, + { + "ordinal": 13, + "name": "created_at", + "type_info": { + "type": "Timestamp", + "flags": { + "bits": 1153 + }, + "char_set": 63, + "max_size": 19 + } + }, + { + "ordinal": 14, + "name": "updated_at", + "type_info": { + "type": "Timestamp", + "flags": { + "bits": 9345 + }, + "char_set": 63, + "max_size": 19 + } + }, + { + "ordinal": 15, + "name": "retry_at", + "type_info": { + "type": "Timestamp", + "flags": { + "bits": 128 + }, + "char_set": 63, + "max_size": 19 + } + } + ], "parameters": { "Right": 1 }, - "nullable": [] + "nullable": [ + false, + false, + false, + true, + false, + false, + true, + false, + false, + false, + false, + false, + true, + false, + false, + true + ] } }, - "b62d4ca915206b8f956a2664c72e02832d38ab34fb3be50d9a77cf8145297689": { - "query": "\nSELECT\n w2l.token as template_token,\n w2l.template_type,\n w2l.creator_user_token,\n users.username as creator_username,\n users.display_name as creator_display_name,\n w2l.updatable_slug,\n w2l.title,\n w2l.frame_width,\n w2l.frame_height,\n w2l.duration_millis,\n w2l.maybe_public_bucket_preview_image_object_name,\n w2l.maybe_public_bucket_preview_video_object_name,\n w2l.is_mod_public_listing_approved,\n w2l.created_at,\n w2l.updated_at\nFROM w2l_templates as w2l\nJOIN users\nON\n users.token = w2l.creator_user_token\nWHERE\n w2l.deleted_at IS NULL\n AND w2l.is_mod_public_listing_approved IS TRUE\n AND users.username = ?\n ", + "7cd0ad5d7b9a2c393f799beadc1e0a6bc85d952e07a1b82a52115b99be40ff6d": { + "query": "\nSELECT\n w2l.token as template_token,\n w2l.template_type,\n w2l.creator_user_token,\n users.username as creator_username,\n users.display_name as creator_display_name,\n w2l.title,\n w2l.frame_width,\n w2l.frame_height,\n w2l.duration_millis,\n w2l.maybe_public_bucket_preview_image_object_name,\n w2l.maybe_public_bucket_preview_video_object_name,\n w2l.is_public_listing_approved,\n w2l.created_at,\n w2l.updated_at\nFROM w2l_templates as w2l\nJOIN users\n ON users.token = w2l.creator_user_token\nWHERE\n w2l.user_deleted_at IS NULL\n AND w2l.mod_deleted_at IS NULL\n ", "describe": { "columns": [ { @@ -5471,18 +4106,6 @@ }, { "ordinal": 5, - "name": "updatable_slug", - "type_info": { - "type": "VarString", - "flags": { - "bits": 4229 - }, - "char_set": 224, - "max_size": 256 - } - }, - { - "ordinal": 6, "name": "title", "type_info": { "type": "String", @@ -5494,7 +4117,7 @@ } }, { - "ordinal": 7, + "ordinal": 6, "name": "frame_width", "type_info": { "type": "Long", @@ -5506,7 +4129,7 @@ } }, { - "ordinal": 8, + "ordinal": 7, "name": "frame_height", "type_info": { "type": "Long", @@ -5518,7 +4141,7 @@ } }, { - "ordinal": 9, + "ordinal": 8, "name": "duration_millis", "type_info": { "type": "Long", @@ -5530,7 +4153,7 @@ } }, { - "ordinal": 10, + "ordinal": 9, "name": "maybe_public_bucket_preview_image_object_name", "type_info": { "type": "VarString", @@ -5542,7 +4165,7 @@ } }, { - "ordinal": 11, + "ordinal": 10, "name": "maybe_public_bucket_preview_video_object_name", "type_info": { "type": "VarString", @@ -5554,19 +4177,19 @@ } }, { - "ordinal": 12, - "name": "is_mod_public_listing_approved", + "ordinal": 11, + "name": "is_public_listing_approved", "type_info": { "type": "Tiny", "flags": { - "bits": 0 + "bits": 8 }, "char_set": 63, "max_size": 1 } }, { - "ordinal": 13, + "ordinal": 12, "name": "created_at", "type_info": { "type": "Timestamp", @@ -5578,7 +4201,394 @@ } }, { - "ordinal": 14, + "ordinal": 13, + "name": "updated_at", + "type_info": { + "type": "Timestamp", + "flags": { + "bits": 9345 + }, + "char_set": 63, + "max_size": 19 + } + } + ], + "parameters": { + "Right": 0 + }, + "nullable": [ + false, + false, + false, + false, + false, + false, + false, + false, + false, + true, + true, + true, + false, + false + ] + } + }, + "8347b64356502ae32979d48680e6b2097e7f8c4cdc492b7285044856b58ba017": { + "query": "\nINSERT INTO w2l_inference_jobs\nSET\n token = ?,\n uuid_idempotency_token = ?,\n\n maybe_w2l_template_token = ?,\n maybe_public_audio_bucket_hash = ?,\n maybe_public_audio_bucket_location = ?,\n\n maybe_original_audio_filename = ?,\n maybe_audio_mime_type = ?,\n\n maybe_creator_user_token = ?,\n creator_ip_address = ?,\n disable_end_bump = false,\n creator_set_visibility = \"public\",\n status = \"pending\"\n ", + "describe": { + "columns": [], + "parameters": { + "Right": 9 + }, + "nullable": [] + } + }, + "865ce236444a36d597939660b14eb4b0cee05c70fdb73f31c2fb8cddddfef42c": { + "query": "\nINSERT INTO firehose_entries\nSET\n token = ?,\n event_type = ?,\n maybe_target_user_token = ?,\n maybe_target_entity_token = ?,\n maybe_created_entity_token = ?\n ", + "describe": { + "columns": [], + "parameters": { + "Right": 5 + }, + "nullable": [] + } + }, + "88328e04ce947d3f541951aada9cee25135aa950ab478cf0dc6de453bb079e17": { + "query": "\nSELECT\n events.token as event_token,\n events.event_type,\n events.maybe_target_user_token,\n users.username as maybe_target_username,\n users.display_name as maybe_target_display_name,\n users.email_gravatar_hash as maybe_target_user_gravatar_hash,\n events.maybe_target_entity_token,\n events.created_at,\n events.updated_at\nFROM firehose_entries as events\nLEFT OUTER JOIN users\nON events.maybe_target_user_token = users.token\nORDER BY events.id DESC\nLIMIT 25\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "event_token", + "type_info": { + "type": "VarString", + "flags": { + "bits": 4229 + }, + "char_set": 224, + "max_size": 128 + } + }, + { + "ordinal": 1, + "name": "event_type", + "type_info": { + "type": "VarString", + "flags": { + "bits": 4233 + }, + "char_set": 224, + "max_size": 128 + } + }, + { + "ordinal": 2, + "name": "maybe_target_user_token", + "type_info": { + "type": "VarString", + "flags": { + "bits": 136 + }, + "char_set": 224, + "max_size": 128 + } + }, + { + "ordinal": 3, + "name": "maybe_target_username", + "type_info": { + "type": "VarString", + "flags": { + "bits": 4228 + }, + "char_set": 224, + "max_size": 80 + } + }, + { + "ordinal": 4, + "name": "maybe_target_display_name", + "type_info": { + "type": "VarString", + "flags": { + "bits": 4224 + }, + "char_set": 224, + "max_size": 80 + } + }, + { + "ordinal": 5, + "name": "maybe_target_user_gravatar_hash", + "type_info": { + "type": "String", + "flags": { + "bits": 4224 + }, + "char_set": 224, + "max_size": 128 + } + }, + { + "ordinal": 6, + "name": "maybe_target_entity_token", + "type_info": { + "type": "VarString", + "flags": { + "bits": 136 + }, + "char_set": 224, + "max_size": 128 + } + }, + { + "ordinal": 7, + "name": "created_at", + "type_info": { + "type": "Timestamp", + "flags": { + "bits": 1153 + }, + "char_set": 63, + "max_size": 19 + } + }, + { + "ordinal": 8, + "name": "updated_at", + "type_info": { + "type": "Timestamp", + "flags": { + "bits": 9345 + }, + "char_set": 63, + "max_size": 19 + } + } + ], + "parameters": { + "Right": 0 + }, + "nullable": [ + false, + false, + true, + true, + true, + true, + true, + false, + false + ] + } + }, + "886861e91c7e8af53eb856c949389a172b8d9e079f1c2070d115423907c47c50": { + "query": "\nINSERT INTO tts_model_upload_jobs\nSET\n token = ?,\n uuid_idempotency_token = ?,\n creator_user_token = ?,\n creator_ip_address = ?,\n creator_set_visibility = ?,\n title = ?,\n tts_model_type = ?,\n download_url = ?,\n status = \"pending\"\n ", + "describe": { + "columns": [], + "parameters": { + "Right": 8 + }, + "nullable": [] + } + }, + "8ba1925f85324f4bc73f809a825453196a95b07008d23b0ee66e8a73f73a3510": { + "query": "\nUPDATE w2l_templates\nSET\n user_deleted_at = CURRENT_TIMESTAMP,\n maybe_mod_user_token = ?\nWHERE\n token = ?\nLIMIT 1\n ", + "describe": { + "columns": [], + "parameters": { + "Right": 2 + }, + "nullable": [] + } + }, + "8c0c0ad0fafef712bb2eb269bcef8658efcd84154d6f6eeda26b0399abd641c4": { + "query": "\nUPDATE w2l_templates\nSET\n user_deleted_at = NULL,\n maybe_mod_user_token = ?\nWHERE\n token = ?\nLIMIT 1\n ", + "describe": { + "columns": [], + "parameters": { + "Right": 2 + }, + "nullable": [] + } + }, + "8d61bb77449a78044135a3d6e5009a3a27b4671b7e40501d318b05ae401f02a8": { + "query": "\nSELECT token, username, email_address, password_hash\nFROM users\nWHERE email_address = ?\nLIMIT 1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "token", + "type_info": { + "type": "VarString", + "flags": { + "bits": 4229 + }, + "char_set": 224, + "max_size": 128 + } + }, + { + "ordinal": 1, + "name": "username", + "type_info": { + "type": "VarString", + "flags": { + "bits": 4229 + }, + "char_set": 224, + "max_size": 80 + } + }, + { + "ordinal": 2, + "name": "email_address", + "type_info": { + "type": "VarString", + "flags": { + "bits": 4229 + }, + "char_set": 224, + "max_size": 1020 + } + }, + { + "ordinal": 3, + "name": "password_hash", + "type_info": { + "type": "String", + "flags": { + "bits": 4225 + }, + "char_set": 63, + "max_size": 60 + } + } + ], + "parameters": { + "Right": 1 + }, + "nullable": [ + false, + false, + false, + false + ] + } + }, + "961f792c24bee6009e3e8a215561db932871a53c48839b8cb80292de00e7b2e1": { + "query": "\nUPDATE tts_results\nSET\n user_deleted_at = CURRENT_TIMESTAMP\nWHERE\n token = ?\nLIMIT 1\n ", + "describe": { + "columns": [], + "parameters": { + "Right": 1 + }, + "nullable": [] + } + }, + "99f1869443b8331b3099af44c53d6db4573fdfb2df5af56668f3256bf446b096": { + "query": "\nSELECT\n tts.token as model_token,\n tts.tts_model_type,\n tts.creator_user_token,\n users.username as creator_username,\n users.display_name as creator_display_name,\n tts.title,\n tts.is_locked_from_use,\n tts.created_at,\n tts.updated_at\nFROM tts_models as tts\nJOIN users\nON\n users.token = tts.creator_user_token\nWHERE\n users.username = ?\n AND tts.is_locked_from_use IS FALSE\n AND tts.user_deleted_at IS NULL\n AND tts.mod_deleted_at IS NULL\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "model_token", + "type_info": { + "type": "VarString", + "flags": { + "bits": 4229 + }, + "char_set": 224, + "max_size": 128 + } + }, + { + "ordinal": 1, + "name": "tts_model_type", + "type_info": { + "type": "String", + "flags": { + "bits": 385 + }, + "char_set": 224, + "max_size": 60 + } + }, + { + "ordinal": 2, + "name": "creator_user_token", + "type_info": { + "type": "VarString", + "flags": { + "bits": 4233 + }, + "char_set": 224, + "max_size": 128 + } + }, + { + "ordinal": 3, + "name": "creator_username", + "type_info": { + "type": "VarString", + "flags": { + "bits": 4229 + }, + "char_set": 224, + "max_size": 80 + } + }, + { + "ordinal": 4, + "name": "creator_display_name", + "type_info": { + "type": "VarString", + "flags": { + "bits": 4225 + }, + "char_set": 224, + "max_size": 80 + } + }, + { + "ordinal": 5, + "name": "title", + "type_info": { + "type": "VarString", + "flags": { + "bits": 4225 + }, + "char_set": 224, + "max_size": 1020 + } + }, + { + "ordinal": 6, + "name": "is_locked_from_use", + "type_info": { + "type": "Tiny", + "flags": { + "bits": 9 + }, + "char_set": 63, + "max_size": 1 + } + }, + { + "ordinal": 7, + "name": "created_at", + "type_info": { + "type": "Timestamp", + "flags": { + "bits": 1153 + }, + "char_set": 63, + "max_size": 19 + } + }, + { + "ordinal": 8, "name": "updated_at", "type_info": { "type": "Timestamp", @@ -5602,16 +4612,1156 @@ false, false, false, + false + ] + } + }, + "9a879f76345ef5682b995f99026fac8b2f4c64c8ec4bb078187d1e53effcfbaf": { + "query": "\nINSERT INTO w2l_templates\nSET\n token = ?,\n template_type = ?,\n title = ?,\n description_markdown = '',\n description_rendered_html = '',\n creator_user_token = ?,\n creator_ip_address_creation = ?,\n creator_ip_address_last_update = ?,\n original_download_url = ?,\n private_bucket_hash = ?,\n private_bucket_object_name = ?,\n private_bucket_cached_faces_object_name = ?,\n maybe_public_bucket_preview_image_object_name = ?,\n maybe_public_bucket_preview_video_object_name = ?,\n file_size_bytes = ?,\n mime_type = ?,\n frame_width = ?,\n frame_height = ?,\n frame_count = ?,\n fps = ?,\n duration_millis = ?\n ", + "describe": { + "columns": [], + "parameters": { + "Right": 19 + }, + "nullable": [] + } + }, + "9aded23dc849b7b416458afc8976207553e864690e36a8ee7066569ff489dc17": { + "query": "\nSELECT\n users.token as user_token,\n users.username,\n users.display_name,\n\n users.email_address,\n users.email_confirmed,\n users.email_gravatar_hash,\n\n users.disable_gravatar,\n users.auto_play_audio_preference,\n users.auto_play_video_preference,\n\n users.user_role_slug,\n users.is_banned,\n\n user_roles.can_use_tts,\n user_roles.can_use_w2l,\n user_roles.can_delete_own_tts_results,\n user_roles.can_delete_own_w2l_results,\n user_roles.can_delete_own_account,\n\n user_roles.can_upload_tts_models,\n user_roles.can_upload_w2l_templates,\n user_roles.can_delete_own_tts_models,\n user_roles.can_delete_own_w2l_templates,\n\n user_roles.can_approve_w2l_templates,\n user_roles.can_edit_other_users_profiles,\n user_roles.can_edit_other_users_tts_models,\n user_roles.can_edit_other_users_w2l_templates,\n user_roles.can_delete_other_users_tts_models,\n user_roles.can_delete_other_users_tts_results,\n user_roles.can_delete_other_users_w2l_templates,\n user_roles.can_delete_other_users_w2l_results,\n user_roles.can_ban_users,\n user_roles.can_delete_users\n\nFROM users\nLEFT OUTER JOIN user_sessions\n ON users.token = user_sessions.user_token\nLEFT OUTER JOIN user_roles\n ON users.user_role_slug = user_roles.slug\nWHERE user_sessions.token = ?\n AND user_sessions.deleted_at IS NULL\n AND users.user_deleted_at IS NULL\n AND users.mod_deleted_at IS NULL\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "user_token", + "type_info": { + "type": "VarString", + "flags": { + "bits": 4229 + }, + "char_set": 224, + "max_size": 128 + } + }, + { + "ordinal": 1, + "name": "username", + "type_info": { + "type": "VarString", + "flags": { + "bits": 4229 + }, + "char_set": 224, + "max_size": 80 + } + }, + { + "ordinal": 2, + "name": "display_name", + "type_info": { + "type": "VarString", + "flags": { + "bits": 4225 + }, + "char_set": 224, + "max_size": 80 + } + }, + { + "ordinal": 3, + "name": "email_address", + "type_info": { + "type": "VarString", + "flags": { + "bits": 4229 + }, + "char_set": 224, + "max_size": 1020 + } + }, + { + "ordinal": 4, + "name": "email_confirmed", + "type_info": { + "type": "Tiny", + "flags": { + "bits": 1 + }, + "char_set": 63, + "max_size": 1 + } + }, + { + "ordinal": 5, + "name": "email_gravatar_hash", + "type_info": { + "type": "String", + "flags": { + "bits": 4225 + }, + "char_set": 224, + "max_size": 128 + } + }, + { + "ordinal": 6, + "name": "disable_gravatar", + "type_info": { + "type": "Tiny", + "flags": { + "bits": 1 + }, + "char_set": 63, + "max_size": 1 + } + }, + { + "ordinal": 7, + "name": "auto_play_audio_preference", + "type_info": { + "type": "Tiny", + "flags": { + "bits": 0 + }, + "char_set": 63, + "max_size": 1 + } + }, + { + "ordinal": 8, + "name": "auto_play_video_preference", + "type_info": { + "type": "Tiny", + "flags": { + "bits": 0 + }, + "char_set": 63, + "max_size": 1 + } + }, + { + "ordinal": 9, + "name": "user_role_slug", + "type_info": { + "type": "VarString", + "flags": { + "bits": 4233 + }, + "char_set": 224, + "max_size": 64 + } + }, + { + "ordinal": 10, + "name": "is_banned", + "type_info": { + "type": "Tiny", + "flags": { + "bits": 1 + }, + "char_set": 63, + "max_size": 1 + } + }, + { + "ordinal": 11, + "name": "can_use_tts", + "type_info": { + "type": "Tiny", + "flags": { + "bits": 0 + }, + "char_set": 63, + "max_size": 1 + } + }, + { + "ordinal": 12, + "name": "can_use_w2l", + "type_info": { + "type": "Tiny", + "flags": { + "bits": 0 + }, + "char_set": 63, + "max_size": 1 + } + }, + { + "ordinal": 13, + "name": "can_delete_own_tts_results", + "type_info": { + "type": "Tiny", + "flags": { + "bits": 0 + }, + "char_set": 63, + "max_size": 1 + } + }, + { + "ordinal": 14, + "name": "can_delete_own_w2l_results", + "type_info": { + "type": "Tiny", + "flags": { + "bits": 0 + }, + "char_set": 63, + "max_size": 1 + } + }, + { + "ordinal": 15, + "name": "can_delete_own_account", + "type_info": { + "type": "Tiny", + "flags": { + "bits": 0 + }, + "char_set": 63, + "max_size": 1 + } + }, + { + "ordinal": 16, + "name": "can_upload_tts_models", + "type_info": { + "type": "Tiny", + "flags": { + "bits": 0 + }, + "char_set": 63, + "max_size": 1 + } + }, + { + "ordinal": 17, + "name": "can_upload_w2l_templates", + "type_info": { + "type": "Tiny", + "flags": { + "bits": 0 + }, + "char_set": 63, + "max_size": 1 + } + }, + { + "ordinal": 18, + "name": "can_delete_own_tts_models", + "type_info": { + "type": "Tiny", + "flags": { + "bits": 0 + }, + "char_set": 63, + "max_size": 1 + } + }, + { + "ordinal": 19, + "name": "can_delete_own_w2l_templates", + "type_info": { + "type": "Tiny", + "flags": { + "bits": 0 + }, + "char_set": 63, + "max_size": 1 + } + }, + { + "ordinal": 20, + "name": "can_approve_w2l_templates", + "type_info": { + "type": "Tiny", + "flags": { + "bits": 0 + }, + "char_set": 63, + "max_size": 1 + } + }, + { + "ordinal": 21, + "name": "can_edit_other_users_profiles", + "type_info": { + "type": "Tiny", + "flags": { + "bits": 0 + }, + "char_set": 63, + "max_size": 1 + } + }, + { + "ordinal": 22, + "name": "can_edit_other_users_tts_models", + "type_info": { + "type": "Tiny", + "flags": { + "bits": 0 + }, + "char_set": 63, + "max_size": 1 + } + }, + { + "ordinal": 23, + "name": "can_edit_other_users_w2l_templates", + "type_info": { + "type": "Tiny", + "flags": { + "bits": 0 + }, + "char_set": 63, + "max_size": 1 + } + }, + { + "ordinal": 24, + "name": "can_delete_other_users_tts_models", + "type_info": { + "type": "Tiny", + "flags": { + "bits": 0 + }, + "char_set": 63, + "max_size": 1 + } + }, + { + "ordinal": 25, + "name": "can_delete_other_users_tts_results", + "type_info": { + "type": "Tiny", + "flags": { + "bits": 0 + }, + "char_set": 63, + "max_size": 1 + } + }, + { + "ordinal": 26, + "name": "can_delete_other_users_w2l_templates", + "type_info": { + "type": "Tiny", + "flags": { + "bits": 0 + }, + "char_set": 63, + "max_size": 1 + } + }, + { + "ordinal": 27, + "name": "can_delete_other_users_w2l_results", + "type_info": { + "type": "Tiny", + "flags": { + "bits": 0 + }, + "char_set": 63, + "max_size": 1 + } + }, + { + "ordinal": 28, + "name": "can_ban_users", + "type_info": { + "type": "Tiny", + "flags": { + "bits": 0 + }, + "char_set": 63, + "max_size": 1 + } + }, + { + "ordinal": 29, + "name": "can_delete_users", + "type_info": { + "type": "Tiny", + "flags": { + "bits": 0 + }, + "char_set": 63, + "max_size": 1 + } + } + ], + "parameters": { + "Right": 1 + }, + "nullable": [ + false, + false, + false, + false, + false, + false, + false, + true, + true, false, false, true, true, true, + true, + true, + true, + true, + true, + true, + true, + true, + true, + true, + true, + true, + true, + true, + true, + true + ] + } + }, + "9b607b814cd7c445c2c46ec5c13dc23f3a6a771a3469a786ed46ec099577d95e": { + "query": "\nUPDATE\n ip_address_bans\nSET\n mod_user_token = ?,\n deleted_at = CURRENT_TIMESTAMP\nWHERE\n ip_address = ?\nLIMIT 1\n ", + "describe": { + "columns": [], + "parameters": { + "Right": 2 + }, + "nullable": [] + } + }, + "9cef4989671fb55d8e732f6f3d5c16aea7a9b3e01fc6a3bc7a56d0b066f07730": { + "query": "\nINSERT INTO tts_models\nSET\n token = ?,\n tts_model_type = \"tacotron2\",\n title = ?,\n description_markdown = '',\n description_rendered_html = '',\n creator_user_token = ?,\n creator_ip_address_creation = ?,\n creator_ip_address_last_update = ?,\n original_download_url = ?,\n private_bucket_hash = ?,\n private_bucket_object_name = ?,\n file_size_bytes = ?\n ", + "describe": { + "columns": [], + "parameters": { + "Right": 9 + }, + "nullable": [] + } + }, + "9d4932baa4023accc2d28af98b58a47149d37c4937cd0171e6b955c09855c5f8": { + "query": "\nINSERT INTO w2l_inference_jobs\nSET\n maybe_w2l_template_token = ?,\n maybe_tts_inference_result_token = ?,\n maybe_public_audio_bucket_location = NULL,\n maybe_public_image_bucket_location = NULL,\n maybe_creator_user_token = ?,\n creator_ip_address = ?,\n creator_set_visibility = ?,\n status = \"pending\"\n ", + "describe": { + "columns": [], + "parameters": { + "Right": 5 + }, + "nullable": [] + } + }, + "a125f183f7ae5627fc2118e7302cea73d967200ba1cbb12550f5880187b7db5e": { + "query": "\nUPDATE w2l_inference_jobs\nSET\n status = ?,\n on_success_result_token = ?,\n failure_reason = NULL,\n retry_at = NULL\nWHERE id = ?\n ", + "describe": { + "columns": [], + "parameters": { + "Right": 3 + }, + "nullable": [] + } + }, + "a22a487d4651ec72b04fad3747dc1c25e47382e5481223a6a4fcf8172a737fb3": { + "query": "\nINSERT INTO w2l_results\nSET\n token = ?,\n maybe_w2l_template_token = ?,\n maybe_creator_user_token = ?,\n creator_ip_address = ?,\n creator_set_visibility = 'public',\n\n maybe_creator_synthetic_id = ?,\n\n public_bucket_video_path = ?,\n\n file_size_bytes = ?,\n mime_type = ?,\n frame_width = ?,\n frame_height = ?,\n duration_millis = ?\n ", + "describe": { + "columns": [], + "parameters": { + "Right": 11 + }, + "nullable": [] + } + }, + "a88f0e74e4d30a8defdcafeed432451f1e4b32b2f8fbfa55d815b0c7cef40761": { + "query": "\nSELECT\n users.token as user_token,\n username,\n display_name,\n email_gravatar_hash,\n profile_markdown,\n profile_rendered_html,\n user_role_slug,\n is_banned,\n disable_gravatar,\n discord_username,\n twitch_username,\n twitter_username,\n patreon_username,\n github_username,\n cashapp_username,\n website_url,\n created_at\nFROM users\nWHERE\n users.username = ?\n AND users.user_deleted_at IS NULL\n AND users.mod_deleted_at IS NULL\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "user_token", + "type_info": { + "type": "VarString", + "flags": { + "bits": 4229 + }, + "char_set": 224, + "max_size": 128 + } + }, + { + "ordinal": 1, + "name": "username", + "type_info": { + "type": "VarString", + "flags": { + "bits": 4229 + }, + "char_set": 224, + "max_size": 80 + } + }, + { + "ordinal": 2, + "name": "display_name", + "type_info": { + "type": "VarString", + "flags": { + "bits": 4225 + }, + "char_set": 224, + "max_size": 80 + } + }, + { + "ordinal": 3, + "name": "email_gravatar_hash", + "type_info": { + "type": "String", + "flags": { + "bits": 4225 + }, + "char_set": 224, + "max_size": 128 + } + }, + { + "ordinal": 4, + "name": "profile_markdown", + "type_info": { + "type": "Blob", + "flags": { + "bits": 4241 + }, + "char_set": 224, + "max_size": 262140 + } + }, + { + "ordinal": 5, + "name": "profile_rendered_html", + "type_info": { + "type": "Blob", + "flags": { + "bits": 4241 + }, + "char_set": 224, + "max_size": 262140 + } + }, + { + "ordinal": 6, + "name": "user_role_slug", + "type_info": { + "type": "VarString", + "flags": { + "bits": 4233 + }, + "char_set": 224, + "max_size": 64 + } + }, + { + "ordinal": 7, + "name": "is_banned", + "type_info": { + "type": "Tiny", + "flags": { + "bits": 1 + }, + "char_set": 63, + "max_size": 1 + } + }, + { + "ordinal": 8, + "name": "disable_gravatar", + "type_info": { + "type": "Tiny", + "flags": { + "bits": 1 + }, + "char_set": 63, + "max_size": 1 + } + }, + { + "ordinal": 9, + "name": "discord_username", + "type_info": { + "type": "VarString", + "flags": { + "bits": 128 + }, + "char_set": 224, + "max_size": 144 + } + }, + { + "ordinal": 10, + "name": "twitch_username", + "type_info": { + "type": "VarString", + "flags": { + "bits": 128 + }, + "char_set": 224, + "max_size": 144 + } + }, + { + "ordinal": 11, + "name": "twitter_username", + "type_info": { + "type": "VarString", + "flags": { + "bits": 128 + }, + "char_set": 224, + "max_size": 144 + } + }, + { + "ordinal": 12, + "name": "patreon_username", + "type_info": { + "type": "VarString", + "flags": { + "bits": 128 + }, + "char_set": 224, + "max_size": 144 + } + }, + { + "ordinal": 13, + "name": "github_username", + "type_info": { + "type": "VarString", + "flags": { + "bits": 128 + }, + "char_set": 224, + "max_size": 144 + } + }, + { + "ordinal": 14, + "name": "cashapp_username", + "type_info": { + "type": "VarString", + "flags": { + "bits": 128 + }, + "char_set": 224, + "max_size": 144 + } + }, + { + "ordinal": 15, + "name": "website_url", + "type_info": { + "type": "VarString", + "flags": { + "bits": 128 + }, + "char_set": 224, + "max_size": 1020 + } + }, + { + "ordinal": 16, + "name": "created_at", + "type_info": { + "type": "Timestamp", + "flags": { + "bits": 1153 + }, + "char_set": 63, + "max_size": 19 + } + } + ], + "parameters": { + "Right": 1 + }, + "nullable": [ + false, + false, + false, + false, + false, + false, + false, + false, + false, + true, + true, + true, + true, + true, + true, + true, + false + ] + } + }, + "ab6f25eb0f6340d49aa705835ed428434d8b6ab14b0740f6a5ebe7841b9ece20": { + "query": "\nUPDATE tts_inference_jobs\nSET\n status = 'started',\n attempt_count = attempt_count + 1,\n retry_at = NOW() + interval 2 minute\nWHERE id = ?\n ", + "describe": { + "columns": [], + "parameters": { + "Right": 1 + }, + "nullable": [] + } + }, + "adf2d5eb967fa2bc00fad1c8fcc2e1bf4384d39dc54e8240d78bb4ca6fcc3409": { + "query": "\nUPDATE w2l_results\nSET\n mod_deleted_at = NULL,\n maybe_mod_user_token = ?\nWHERE\n token = ?\nLIMIT 1\n ", + "describe": { + "columns": [], + "parameters": { + "Right": 2 + }, + "nullable": [] + } + }, + "af6e3f4b8b29a9e26ae422bee2e24e1d926990c5111149d26dbe4ea97dceb87f": { + "query": "\nSELECT\n ip_bans.ip_address,\n ip_bans.maybe_target_user_token,\n users.username as maybe_target_username,\n ip_bans.mod_user_token,\n ip_bans.mod_notes,\n ip_bans.created_at,\n ip_bans.updated_at\nFROM\n ip_address_bans AS ip_bans\nLEFT OUTER JOIN users\n ON ip_bans.maybe_target_user_token = users.token\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "ip_address", + "type_info": { + "type": "VarString", + "flags": { + "bits": 4229 + }, + "char_set": 224, + "max_size": 160 + } + }, + { + "ordinal": 1, + "name": "maybe_target_user_token", + "type_info": { + "type": "VarString", + "flags": { + "bits": 136 + }, + "char_set": 224, + "max_size": 128 + } + }, + { + "ordinal": 2, + "name": "maybe_target_username", + "type_info": { + "type": "VarString", + "flags": { + "bits": 4228 + }, + "char_set": 224, + "max_size": 80 + } + }, + { + "ordinal": 3, + "name": "mod_user_token", + "type_info": { + "type": "VarString", + "flags": { + "bits": 4233 + }, + "char_set": 224, + "max_size": 128 + } + }, + { + "ordinal": 4, + "name": "mod_notes", + "type_info": { + "type": "Blob", + "flags": { + "bits": 4241 + }, + "char_set": 224, + "max_size": 262140 + } + }, + { + "ordinal": 5, + "name": "created_at", + "type_info": { + "type": "Timestamp", + "flags": { + "bits": 1153 + }, + "char_set": 63, + "max_size": 19 + } + }, + { + "ordinal": 6, + "name": "updated_at", + "type_info": { + "type": "Timestamp", + "flags": { + "bits": 9345 + }, + "char_set": 63, + "max_size": 19 + } + } + ], + "parameters": { + "Right": 0 + }, + "nullable": [ + false, + true, + true, + false, + false, false, false ] } }, + "b1ad806aa93f66cab358d7cdb405d57c643e2ff131cfec9f1ced55c2e6ca9511": { + "query": "\nUPDATE tts_model_upload_jobs\nSET\n status = ?,\n on_success_result_token = ?,\n failure_reason = NULL,\n retry_at = NULL\nWHERE id = ?\n ", + "describe": { + "columns": [], + "parameters": { + "Right": 3 + }, + "nullable": [] + } + }, + "b1d7e1c405a33c391954167a3527580ec7fefac0055297150108a92f3945941f": { + "query": "\nSELECT\n w2l_results.token as w2l_result_token,\n w2l_results.maybe_tts_inference_result_token,\n\n w2l_results.public_bucket_video_path,\n\n w2l_templates.token as maybe_w2l_template_token,\n w2l_templates.template_type,\n w2l_templates.title as template_title,\n\n users.token as maybe_creator_user_token,\n users.username as maybe_creator_username,\n users.display_name as maybe_creator_display_name,\n users.email_gravatar_hash as maybe_creator_gravatar_hash,\n\n template_users.token as maybe_template_creator_user_token,\n template_users.username as maybe_template_creator_username,\n template_users.display_name as maybe_template_creator_display_name,\n template_users.email_gravatar_hash as maybe_template_creator_gravatar_hash,\n\n w2l_results.file_size_bytes,\n w2l_results.frame_width,\n w2l_results.frame_height,\n w2l_results.duration_millis,\n w2l_results.created_at,\n w2l_results.updated_at,\n w2l_results.user_deleted_at,\n w2l_results.mod_deleted_at\n\nFROM w2l_results\nLEFT OUTER JOIN w2l_templates\n ON w2l_results.maybe_w2l_template_token = w2l_templates.token\nLEFT OUTER JOIN users\n ON w2l_results.maybe_creator_user_token = users.token\nLEFT OUTER JOIN users as template_users\n ON w2l_templates.creator_user_token = template_users.token\nWHERE\n w2l_results.token = ?\n AND w2l_results.user_deleted_at IS NULL\n AND w2l_results.mod_deleted_at IS NULL\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "w2l_result_token", + "type_info": { + "type": "VarString", + "flags": { + "bits": 4229 + }, + "char_set": 224, + "max_size": 128 + } + }, + { + "ordinal": 1, + "name": "maybe_tts_inference_result_token", + "type_info": { + "type": "VarString", + "flags": { + "bits": 136 + }, + "char_set": 224, + "max_size": 128 + } + }, + { + "ordinal": 2, + "name": "public_bucket_video_path", + "type_info": { + "type": "VarString", + "flags": { + "bits": 4225 + }, + "char_set": 224, + "max_size": 1020 + } + }, + { + "ordinal": 3, + "name": "maybe_w2l_template_token", + "type_info": { + "type": "VarString", + "flags": { + "bits": 4228 + }, + "char_set": 224, + "max_size": 128 + } + }, + { + "ordinal": 4, + "name": "template_type", + "type_info": { + "type": "String", + "flags": { + "bits": 392 + }, + "char_set": 224, + "max_size": 28 + } + }, + { + "ordinal": 5, + "name": "template_title", + "type_info": { + "type": "String", + "flags": { + "bits": 4224 + }, + "char_set": 224, + "max_size": 1020 + } + }, + { + "ordinal": 6, + "name": "maybe_creator_user_token", + "type_info": { + "type": "VarString", + "flags": { + "bits": 4228 + }, + "char_set": 224, + "max_size": 128 + } + }, + { + "ordinal": 7, + "name": "maybe_creator_username", + "type_info": { + "type": "VarString", + "flags": { + "bits": 4228 + }, + "char_set": 224, + "max_size": 80 + } + }, + { + "ordinal": 8, + "name": "maybe_creator_display_name", + "type_info": { + "type": "VarString", + "flags": { + "bits": 4224 + }, + "char_set": 224, + "max_size": 80 + } + }, + { + "ordinal": 9, + "name": "maybe_creator_gravatar_hash", + "type_info": { + "type": "String", + "flags": { + "bits": 4224 + }, + "char_set": 224, + "max_size": 128 + } + }, + { + "ordinal": 10, + "name": "maybe_template_creator_user_token", + "type_info": { + "type": "VarString", + "flags": { + "bits": 4228 + }, + "char_set": 224, + "max_size": 128 + } + }, + { + "ordinal": 11, + "name": "maybe_template_creator_username", + "type_info": { + "type": "VarString", + "flags": { + "bits": 4228 + }, + "char_set": 224, + "max_size": 80 + } + }, + { + "ordinal": 12, + "name": "maybe_template_creator_display_name", + "type_info": { + "type": "VarString", + "flags": { + "bits": 4224 + }, + "char_set": 224, + "max_size": 80 + } + }, + { + "ordinal": 13, + "name": "maybe_template_creator_gravatar_hash", + "type_info": { + "type": "String", + "flags": { + "bits": 4224 + }, + "char_set": 224, + "max_size": 128 + } + }, + { + "ordinal": 14, + "name": "file_size_bytes", + "type_info": { + "type": "Long", + "flags": { + "bits": 1 + }, + "char_set": 63, + "max_size": 10 + } + }, + { + "ordinal": 15, + "name": "frame_width", + "type_info": { + "type": "Long", + "flags": { + "bits": 1 + }, + "char_set": 63, + "max_size": 10 + } + }, + { + "ordinal": 16, + "name": "frame_height", + "type_info": { + "type": "Long", + "flags": { + "bits": 1 + }, + "char_set": 63, + "max_size": 10 + } + }, + { + "ordinal": 17, + "name": "duration_millis", + "type_info": { + "type": "Long", + "flags": { + "bits": 1 + }, + "char_set": 63, + "max_size": 10 + } + }, + { + "ordinal": 18, + "name": "created_at", + "type_info": { + "type": "Timestamp", + "flags": { + "bits": 1153 + }, + "char_set": 63, + "max_size": 19 + } + }, + { + "ordinal": 19, + "name": "updated_at", + "type_info": { + "type": "Timestamp", + "flags": { + "bits": 9345 + }, + "char_set": 63, + "max_size": 19 + } + }, + { + "ordinal": 20, + "name": "user_deleted_at", + "type_info": { + "type": "Timestamp", + "flags": { + "bits": 136 + }, + "char_set": 63, + "max_size": 19 + } + }, + { + "ordinal": 21, + "name": "mod_deleted_at", + "type_info": { + "type": "Timestamp", + "flags": { + "bits": 136 + }, + "char_set": 63, + "max_size": 19 + } + } + ], + "parameters": { + "Right": 1 + }, + "nullable": [ + false, + true, + false, + true, + true, + true, + true, + true, + true, + true, + true, + true, + true, + true, + false, + false, + false, + false, + false, + false, + true, + true + ] + } + }, + "b257c267dfe063995374786d3004f215e77e8a32843c024645da6fa435507dce": { + "query": "\nINSERT INTO\n ip_address_bans\nSET\n ip_address = ?,\n maybe_target_user_token = ?,\n mod_user_token = ?,\n mod_notes = ?\nON DUPLICATE KEY UPDATE\n expires_at = NULL,\n deleted_at = NULL,\n ip_address = ?,\n maybe_target_user_token = ?,\n mod_user_token = ?,\n mod_notes = ?\n ", + "describe": { + "columns": [], + "parameters": { + "Right": 8 + }, + "nullable": [] + } + }, + "b6a53361eda0f0f0517cc39b9bc5b7ab867cc8a1bcc7bc81c7d29c51193e3bbf": { + "query": "\nUPDATE tts_models\nSET\n is_public_listing_approved = ?,\n is_locked_from_user_modification = ?,\n is_locked_from_use = ?,\n maybe_mod_comments = ?,\n maybe_mod_user_token = ?,\n version = version + 1\nWHERE token = ?\nLIMIT 1\n ", + "describe": { + "columns": [], + "parameters": { + "Right": 6 + }, + "nullable": [] + } + }, "b7535ecf2e63b7f02b5b96f833fd8cd28285b24473df6f89795ff360c1723215": { "query": "\nSELECT *\nFROM w2l_template_upload_jobs\nWHERE\n (\n status IN (\"pending\", \"attempt_failed\")\n )\n AND\n (\n retry_at IS NULL\n OR\n retry_at < CURRENT_TIMESTAMP\n )\n LIMIT ?\n ", "describe": { @@ -5690,30 +5840,6 @@ }, { "ordinal": 6, - "name": "maybe_subject_token", - "type_info": { - "type": "VarString", - "flags": { - "bits": 136 - }, - "char_set": 224, - "max_size": 128 - } - }, - { - "ordinal": 7, - "name": "maybe_actor_subject_token", - "type_info": { - "type": "VarString", - "flags": { - "bits": 136 - }, - "char_set": 224, - "max_size": 128 - } - }, - { - "ordinal": 8, "name": "download_url", "type_info": { "type": "VarString", @@ -5725,19 +5851,7 @@ } }, { - "ordinal": 9, - "name": "download_url_type", - "type_info": { - "type": "String", - "flags": { - "bits": 385 - }, - "char_set": 224, - "max_size": 48 - } - }, - { - "ordinal": 10, + "ordinal": 7, "name": "creator_user_token", "type_info": { "type": "VarString", @@ -5749,7 +5863,7 @@ } }, { - "ordinal": 11, + "ordinal": 8, "name": "creator_ip_address", "type_info": { "type": "VarString", @@ -5761,7 +5875,7 @@ } }, { - "ordinal": 12, + "ordinal": 9, "name": "creator_set_visibility", "type_info": { "type": "String", @@ -5773,7 +5887,7 @@ } }, { - "ordinal": 13, + "ordinal": 10, "name": "status", "type_info": { "type": "String", @@ -5785,7 +5899,7 @@ } }, { - "ordinal": 14, + "ordinal": 11, "name": "attempt_count", "type_info": { "type": "Long", @@ -5797,7 +5911,7 @@ } }, { - "ordinal": 15, + "ordinal": 12, "name": "failure_reason", "type_info": { "type": "VarString", @@ -5809,7 +5923,7 @@ } }, { - "ordinal": 16, + "ordinal": 13, "name": "created_at", "type_info": { "type": "Timestamp", @@ -5821,7 +5935,7 @@ } }, { - "ordinal": 17, + "ordinal": 14, "name": "updated_at", "type_info": { "type": "Timestamp", @@ -5833,7 +5947,7 @@ } }, { - "ordinal": 18, + "ordinal": 15, "name": "retry_at", "type_info": { "type": "Timestamp", @@ -5856,9 +5970,6 @@ false, false, true, - true, - true, - false, false, false, false, @@ -5871,12 +5982,216 @@ ] } }, - "bd151e17d1dd65c25ebc689a1d321ac14b8d5d8f1c9e8426c0c92ed278595de2": { - "query": "\nINSERT INTO tts_models\nSET\n token = ?,\n tts_model_type = \"tacotron2\",\n updatable_slug = ?,\n title = ?,\n description_markdown = '',\n description_rendered_html = '',\n creator_user_token = ?,\n creator_ip_address = ?,\n original_download_url = ?,\n private_bucket_hash = ?,\n private_bucket_object_name = ?,\n file_size_bytes = ?\n ", + "baf058c93336325a642ab07a617c69eae9d2c7467bf3a8248e814063a6c36001": { + "query": "\nUPDATE w2l_templates\nSET\n mod_deleted_at = NULL,\n maybe_mod_user_token = ?\nWHERE\n token = ?\nLIMIT 1\n ", "describe": { "columns": [], "parameters": { - "Right": 9 + "Right": 2 + }, + "nullable": [] + } + }, + "bc9c6b57b2578b8163956d11a5f6a9a77ddab6098d2c4207e1a70502db30c9d1": { + "query": "\nSELECT\n w2l.token as template_token,\n w2l.template_type,\n w2l.creator_user_token,\n users.username as creator_username,\n users.display_name as creator_display_name,\n w2l.title,\n w2l.frame_width,\n w2l.frame_height,\n w2l.duration_millis,\n w2l.private_bucket_hash,\n w2l.maybe_public_bucket_preview_image_object_name,\n w2l.maybe_public_bucket_preview_video_object_name,\n w2l.created_at,\n w2l.updated_at\nFROM w2l_templates as w2l\nJOIN users\nON users.token = w2l.creator_user_token\nWHERE w2l.token = ?\nAND w2l.user_deleted_at IS NULL\nAND w2l.mod_deleted_at IS NULL\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "template_token", + "type_info": { + "type": "VarString", + "flags": { + "bits": 4229 + }, + "char_set": 224, + "max_size": 128 + } + }, + { + "ordinal": 1, + "name": "template_type", + "type_info": { + "type": "String", + "flags": { + "bits": 393 + }, + "char_set": 224, + "max_size": 28 + } + }, + { + "ordinal": 2, + "name": "creator_user_token", + "type_info": { + "type": "VarString", + "flags": { + "bits": 4233 + }, + "char_set": 224, + "max_size": 128 + } + }, + { + "ordinal": 3, + "name": "creator_username", + "type_info": { + "type": "VarString", + "flags": { + "bits": 4229 + }, + "char_set": 224, + "max_size": 80 + } + }, + { + "ordinal": 4, + "name": "creator_display_name", + "type_info": { + "type": "VarString", + "flags": { + "bits": 4225 + }, + "char_set": 224, + "max_size": 80 + } + }, + { + "ordinal": 5, + "name": "title", + "type_info": { + "type": "String", + "flags": { + "bits": 4225 + }, + "char_set": 224, + "max_size": 1020 + } + }, + { + "ordinal": 6, + "name": "frame_width", + "type_info": { + "type": "Long", + "flags": { + "bits": 1 + }, + "char_set": 63, + "max_size": 10 + } + }, + { + "ordinal": 7, + "name": "frame_height", + "type_info": { + "type": "Long", + "flags": { + "bits": 1 + }, + "char_set": 63, + "max_size": 10 + } + }, + { + "ordinal": 8, + "name": "duration_millis", + "type_info": { + "type": "Long", + "flags": { + "bits": 1 + }, + "char_set": 63, + "max_size": 10 + } + }, + { + "ordinal": 9, + "name": "private_bucket_hash", + "type_info": { + "type": "String", + "flags": { + "bits": 4233 + }, + "char_set": 224, + "max_size": 256 + } + }, + { + "ordinal": 10, + "name": "maybe_public_bucket_preview_image_object_name", + "type_info": { + "type": "VarString", + "flags": { + "bits": 128 + }, + "char_set": 224, + "max_size": 1020 + } + }, + { + "ordinal": 11, + "name": "maybe_public_bucket_preview_video_object_name", + "type_info": { + "type": "VarString", + "flags": { + "bits": 128 + }, + "char_set": 224, + "max_size": 1020 + } + }, + { + "ordinal": 12, + "name": "created_at", + "type_info": { + "type": "Timestamp", + "flags": { + "bits": 1153 + }, + "char_set": 63, + "max_size": 19 + } + }, + { + "ordinal": 13, + "name": "updated_at", + "type_info": { + "type": "Timestamp", + "flags": { + "bits": 9345 + }, + "char_set": 63, + "max_size": 19 + } + } + ], + "parameters": { + "Right": 1 + }, + "nullable": [ + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + true, + true, + false, + false + ] + } + }, + "bee13160674414391587f56e8fb0aa3629e3dfcead0afa5759bff1e161f1bb6e": { + "query": "\nUPDATE w2l_templates\nSET\n is_public_listing_approved = ?,\n maybe_mod_user_token = ?\nWHERE\n token = ?\nLIMIT 1\n ", + "describe": { + "columns": [], + "parameters": { + "Right": 3 }, "nullable": [] } @@ -5891,8 +6206,38 @@ "nullable": [] } }, - "c1a4f3667de265a6f501b141cc35c44ce7b3703627c7d8336d0ef8445962ed34": { - "query": "\nSELECT\n tts.token as model_token,\n tts.tts_model_type,\n tts.text_preprocessing_algorithm,\n\n tts.creator_user_token,\n users.username as creator_username,\n users.display_name as creator_display_name,\n\n tts.updatable_slug,\n tts.title,\n\n tts.created_at,\n tts.updated_at\nFROM tts_models as tts\nJOIN users\nON users.token = tts.creator_user_token\nWHERE tts.updatable_slug = ?\nAND tts.deleted_at IS NULL\n ", + "c63726afcf8d53a24597aad18bb44285eae8f5d056011811b066226f7db0198a": { + "query": "\nUPDATE w2l_templates\nSET\n title = ?,\n description_markdown = ?,\n description_rendered_html = ?,\n maybe_mod_user_token = ?,\n version = version + 1\nWHERE token = ?\nLIMIT 1\n ", + "describe": { + "columns": [], + "parameters": { + "Right": 5 + }, + "nullable": [] + } + }, + "ca5efc3be0f09649df2add5270c06544133288a95ffcb9a0589efd4fe345efe7": { + "query": "\nINSERT INTO badges ( slug, title, description, image_url )\nVALUES ( ?, ?, ?, ? )\n ", + "describe": { + "columns": [], + "parameters": { + "Right": 4 + }, + "nullable": [] + } + }, + "cae002e97a3309e0e8361d2a08158c5a1dc1e5b5123c9c5e2c5f8e5e93d07387": { + "query": "\nUPDATE w2l_templates\nSET\n mod_deleted_at = CURRENT_TIMESTAMP,\n maybe_mod_user_token = ?\nWHERE\n token = ?\nLIMIT 1\n ", + "describe": { + "columns": [], + "parameters": { + "Right": 2 + }, + "nullable": [] + } + }, + "cc51b77e88c2ee5c046ea2f2287b9e9770743d50b0db90481662e5c1118885c5": { + "query": "\nSELECT\n tts.token as model_token,\n tts.tts_model_type,\n tts.creator_user_token,\n users.username as creator_username,\n users.display_name as creator_display_name,\n tts.title,\n tts.is_locked_from_use,\n tts.created_at,\n tts.updated_at\nFROM tts_models as tts\nJOIN users\nON\n users.token = tts.creator_user_token\nWHERE\n users.username = ?\n AND tts.user_deleted_at IS NULL\n AND tts.mod_deleted_at IS NULL\n ", "describe": { "columns": [ { @@ -5921,18 +6266,6 @@ }, { "ordinal": 2, - "name": "text_preprocessing_algorithm", - "type_info": { - "type": "String", - "flags": { - "bits": 385 - }, - "char_set": 224, - "max_size": 72 - } - }, - { - "ordinal": 3, "name": "creator_user_token", "type_info": { "type": "VarString", @@ -5944,7 +6277,7 @@ } }, { - "ordinal": 4, + "ordinal": 3, "name": "creator_username", "type_info": { "type": "VarString", @@ -5956,7 +6289,7 @@ } }, { - "ordinal": 5, + "ordinal": 4, "name": "creator_display_name", "type_info": { "type": "VarString", @@ -5968,19 +6301,7 @@ } }, { - "ordinal": 6, - "name": "updatable_slug", - "type_info": { - "type": "VarString", - "flags": { - "bits": 4229 - }, - "char_set": 224, - "max_size": 256 - } - }, - { - "ordinal": 7, + "ordinal": 5, "name": "title", "type_info": { "type": "VarString", @@ -5992,7 +6313,19 @@ } }, { - "ordinal": 8, + "ordinal": 6, + "name": "is_locked_from_use", + "type_info": { + "type": "Tiny", + "flags": { + "bits": 9 + }, + "char_set": 63, + "max_size": 1 + } + }, + { + "ordinal": 7, "name": "created_at", "type_info": { "type": "Timestamp", @@ -6004,7 +6337,7 @@ } }, { - "ordinal": 9, + "ordinal": 8, "name": "updated_at", "type_info": { "type": "Timestamp", @@ -6028,28 +6361,29 @@ false, false, false, - false, false ] } }, - "ca5efc3be0f09649df2add5270c06544133288a95ffcb9a0589efd4fe345efe7": { - "query": "\nINSERT INTO badges ( slug, title, description, image_url )\nVALUES ( ?, ?, ?, ? )\n ", - "describe": { - "columns": [], - "parameters": { - "Right": 4 - }, - "nullable": [] - } - }, - "caa1b771bc360614445df502055125051fed57e758ea2bd81cf303bfb03c2c9f": { - "query": "\nSELECT\n w2l_results.token as w2l_result_token,\n w2l_results.maybe_tts_inference_result_token,\n\n w2l_templates.token as maybe_w2l_template_token,\n w2l_templates.template_type,\n w2l_templates.title as template_title,\n\n users.token as maybe_creator_user_token,\n users.username as maybe_creator_username,\n users.display_name as maybe_creator_display_name,\n\n w2l_results.file_size_bytes,\n w2l_results.frame_width,\n w2l_results.frame_height,\n w2l_results.duration_millis,\n w2l_results.created_at,\n w2l_results.updated_at\n\nFROM w2l_results\nLEFT OUTER JOIN w2l_templates\n ON w2l_results.maybe_w2l_template_token = w2l_templates.token\nLEFT OUTER JOIN users\n ON w2l_results.maybe_creator_user_token = users.token\nWHERE\n w2l_results.deleted_at IS NULL\n AND w2l_results.is_mod_hidden_from_public IS FALSE\n AND w2l_templates.is_mod_public_listing_approved IS TRUE\n ", + "ccd9df6bff43a6c7554e18b4866bccd56a464117477edfa30bb0fc58309eed93": { + "query": "\nSELECT\n id,\n token AS inference_job_token,\n uuid_idempotency_token,\n\n model_token,\n raw_inference_text,\n\n creator_ip_address,\n maybe_creator_user_token,\n creator_set_visibility,\n\n status,\n attempt_count,\n failure_reason,\n created_at,\n updated_at,\n retry_at\nFROM tts_inference_jobs\nWHERE\n (\n status IN (\"pending\", \"attempt_failed\")\n )\n AND\n (\n retry_at IS NULL\n OR\n retry_at < CURRENT_TIMESTAMP\n )\n LIMIT ?\n ", "describe": { "columns": [ { "ordinal": 0, - "name": "w2l_result_token", + "name": "id", + "type_info": { + "type": "LongLong", + "flags": { + "bits": 515 + }, + "char_set": 63, + "max_size": 20 + } + }, + { + "ordinal": 1, + "name": "inference_job_token", "type_info": { "type": "VarString", "flags": { @@ -6060,8 +6394,56 @@ } }, { - "ordinal": 1, - "name": "maybe_tts_inference_result_token", + "ordinal": 2, + "name": "uuid_idempotency_token", + "type_info": { + "type": "VarString", + "flags": { + "bits": 4229 + }, + "char_set": 224, + "max_size": 144 + } + }, + { + "ordinal": 3, + "name": "model_token", + "type_info": { + "type": "VarString", + "flags": { + "bits": 4233 + }, + "char_set": 224, + "max_size": 128 + } + }, + { + "ordinal": 4, + "name": "raw_inference_text", + "type_info": { + "type": "Blob", + "flags": { + "bits": 4241 + }, + "char_set": 224, + "max_size": 262140 + } + }, + { + "ordinal": 5, + "name": "creator_ip_address", + "type_info": { + "type": "VarString", + "flags": { + "bits": 4233 + }, + "char_set": 224, + "max_size": 160 + } + }, + { + "ordinal": 6, + "name": "maybe_creator_user_token", "type_info": { "type": "VarString", "flags": { @@ -6072,127 +6454,55 @@ } }, { - "ordinal": 2, - "name": "maybe_w2l_template_token", - "type_info": { - "type": "VarString", - "flags": { - "bits": 4228 - }, - "char_set": 224, - "max_size": 128 - } - }, - { - "ordinal": 3, - "name": "template_type", + "ordinal": 7, + "name": "creator_set_visibility", "type_info": { "type": "String", "flags": { - "bits": 392 + "bits": 385 }, "char_set": 224, "max_size": 28 } }, { - "ordinal": 4, - "name": "template_title", + "ordinal": 8, + "name": "status", "type_info": { "type": "String", "flags": { - "bits": 4224 + "bits": 393 }, "char_set": 224, - "max_size": 1020 - } - }, - { - "ordinal": 5, - "name": "maybe_creator_user_token", - "type_info": { - "type": "VarString", - "flags": { - "bits": 4228 - }, - "char_set": 224, - "max_size": 128 - } - }, - { - "ordinal": 6, - "name": "maybe_creator_username", - "type_info": { - "type": "VarString", - "flags": { - "bits": 4228 - }, - "char_set": 224, - "max_size": 80 - } - }, - { - "ordinal": 7, - "name": "maybe_creator_display_name", - "type_info": { - "type": "VarString", - "flags": { - "bits": 4224 - }, - "char_set": 224, - "max_size": 80 - } - }, - { - "ordinal": 8, - "name": "file_size_bytes", - "type_info": { - "type": "Long", - "flags": { - "bits": 1 - }, - "char_set": 63, - "max_size": 10 + "max_size": 64 } }, { "ordinal": 9, - "name": "frame_width", + "name": "attempt_count", "type_info": { "type": "Long", "flags": { "bits": 1 }, "char_set": 63, - "max_size": 10 + "max_size": 3 } }, { "ordinal": 10, - "name": "frame_height", + "name": "failure_reason", "type_info": { - "type": "Long", + "type": "VarString", "flags": { - "bits": 1 + "bits": 128 }, - "char_set": 63, - "max_size": 10 + "char_set": 224, + "max_size": 2048 } }, { "ordinal": 11, - "name": "duration_millis", - "type_info": { - "type": "Long", - "flags": { - "bits": 1 - }, - "char_set": 63, - "max_size": 10 - } - }, - { - "ordinal": 12, "name": "created_at", "type_info": { "type": "Timestamp", @@ -6204,7 +6514,7 @@ } }, { - "ordinal": 13, + "ordinal": 12, "name": "updated_at", "type_info": { "type": "Timestamp", @@ -6214,29 +6524,51 @@ "char_set": 63, "max_size": 19 } + }, + { + "ordinal": 13, + "name": "retry_at", + "type_info": { + "type": "Timestamp", + "flags": { + "bits": 128 + }, + "char_set": 63, + "max_size": 19 + } } ], "parameters": { - "Right": 0 + "Right": 1 }, "nullable": [ false, - true, - true, - true, - true, - true, - true, - true, false, false, false, false, false, - false + true, + false, + false, + false, + true, + false, + false, + true ] } }, + "cf0b037e789ee09022b25f3381b0263c5cc6b59f3f328de4aa211bdb23a62629": { + "query": "\nUPDATE tts_models\nSET\n title = ?,\n description_markdown = ?,\n description_rendered_html = ?,\n creator_ip_address_last_update = ?,\n version = version + 1\nWHERE token = ?\nLIMIT 1\n ", + "describe": { + "columns": [], + "parameters": { + "Right": 5 + }, + "nullable": [] + } + }, "d12757abef811cd6951e0e1427fdb496a8931b547519d320f5ade56007d3eb5d": { "query": "\nSELECT\n id,\n status\nFROM w2l_template_upload_jobs\nWHERE id = ?\nFOR UPDATE\n ", "describe": { @@ -6573,8 +6905,95 @@ ] } }, - "d15d602c1089dd5aaa75bc0f97697e9a51a058496efbcaa1a59ffef72dfcd2fa": { - "query": "\nSELECT\n tts.token as model_token,\n tts.tts_model_type,\n tts.creator_user_token,\n users.username as creator_username,\n users.display_name as creator_display_name,\n tts.updatable_slug,\n tts.title,\n tts.created_at,\n tts.updated_at\nFROM tts_models as tts\nJOIN users\nON users.token = tts.creator_user_token\nWHERE tts.deleted_at IS NULL\n ", + "dbce51eb1c80dded902c9509e50713483c7131f115e8ec10646e99e88110278b": { + "query": "\nUPDATE tts_results\nSET\n user_deleted_at = NULL\nWHERE\n token = ?\nLIMIT 1\n ", + "describe": { + "columns": [], + "parameters": { + "Right": 1 + }, + "nullable": [] + } + }, + "de2d38b505ecff7b8b73996888ff6a904c5a0fab38e1c0b6156929c812b94302": { + "query": "\nSELECT\n users.token as user_token,\n users.username,\n users.display_name,\n user_roles.slug as user_role_slug,\n user_roles.name as user_role_name\nFROM\n users\nJOIN user_roles\n ON users.user_role_slug = user_roles.slug\nWHERE\n user_roles.slug != 'user'\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "user_token", + "type_info": { + "type": "VarString", + "flags": { + "bits": 4229 + }, + "char_set": 224, + "max_size": 128 + } + }, + { + "ordinal": 1, + "name": "username", + "type_info": { + "type": "VarString", + "flags": { + "bits": 4229 + }, + "char_set": 224, + "max_size": 80 + } + }, + { + "ordinal": 2, + "name": "display_name", + "type_info": { + "type": "VarString", + "flags": { + "bits": 4225 + }, + "char_set": 224, + "max_size": 80 + } + }, + { + "ordinal": 3, + "name": "user_role_slug", + "type_info": { + "type": "String", + "flags": { + "bits": 4229 + }, + "char_set": 224, + "max_size": 64 + } + }, + { + "ordinal": 4, + "name": "user_role_name", + "type_info": { + "type": "VarString", + "flags": { + "bits": 4225 + }, + "char_set": 224, + "max_size": 1020 + } + } + ], + "parameters": { + "Right": 0 + }, + "nullable": [ + false, + false, + false, + false, + false + ] + } + }, + "dfc7d0ff70e135e1c4d50c7655b6064e5034f16eacd9bb94070933a68815d270": { + "query": "\nSELECT\n tts.token as model_token,\n tts.tts_model_type,\n tts.creator_user_token,\n users.username as creator_username,\n users.display_name as creator_display_name,\n tts.title,\n tts.is_locked_from_use,\n tts.created_at,\n tts.updated_at\nFROM tts_models as tts\nJOIN users\n ON users.token = tts.creator_user_token\nWHERE\n tts.is_locked_from_use IS FALSE\n AND tts.user_deleted_at IS NULL\n AND tts.mod_deleted_at IS NULL\n ", "describe": { "columns": [ { @@ -6639,18 +7058,6 @@ }, { "ordinal": 5, - "name": "updatable_slug", - "type_info": { - "type": "VarString", - "flags": { - "bits": 4229 - }, - "char_set": 224, - "max_size": 256 - } - }, - { - "ordinal": 6, "name": "title", "type_info": { "type": "VarString", @@ -6661,6 +7068,18 @@ "max_size": 1020 } }, + { + "ordinal": 6, + "name": "is_locked_from_use", + "type_info": { + "type": "Tiny", + "flags": { + "bits": 9 + }, + "char_set": 63, + "max_size": 1 + } + }, { "ordinal": 7, "name": "created_at", @@ -6702,14 +7121,198 @@ ] } }, - "d5d3e1bd935d32639ad7398936f4c8ee9f3caff6c0789db29b45a81555d1bdce": { - "query": "\nUPDATE tts_model_upload_jobs\nSET\n status = 'started',\n retry_at = NOW() + interval 2 minute\nWHERE id = ?\n ", + "e3a0bd8073c3c0d84b9ab0e2e1ad8371f14b10801b7e4658b73c42ce1b27fa0b": { + "query": "\nSELECT\n w2l.token as template_token,\n w2l.template_type,\n w2l.creator_user_token,\n users.username as creator_username,\n users.display_name as creator_display_name,\n w2l.title,\n w2l.frame_width,\n w2l.frame_height,\n w2l.duration_millis,\n w2l.maybe_public_bucket_preview_image_object_name,\n w2l.maybe_public_bucket_preview_video_object_name,\n w2l.is_public_listing_approved,\n w2l.created_at,\n w2l.updated_at\nFROM w2l_templates as w2l\nJOIN users\nON\n users.token = w2l.creator_user_token\nWHERE\n users.username = ?\n AND w2l.is_public_listing_approved IS TRUE\n AND w2l.user_deleted_at IS NULL\n AND w2l.mod_deleted_at IS NULL\n ", "describe": { - "columns": [], + "columns": [ + { + "ordinal": 0, + "name": "template_token", + "type_info": { + "type": "VarString", + "flags": { + "bits": 4229 + }, + "char_set": 224, + "max_size": 128 + } + }, + { + "ordinal": 1, + "name": "template_type", + "type_info": { + "type": "String", + "flags": { + "bits": 393 + }, + "char_set": 224, + "max_size": 28 + } + }, + { + "ordinal": 2, + "name": "creator_user_token", + "type_info": { + "type": "VarString", + "flags": { + "bits": 4233 + }, + "char_set": 224, + "max_size": 128 + } + }, + { + "ordinal": 3, + "name": "creator_username", + "type_info": { + "type": "VarString", + "flags": { + "bits": 4229 + }, + "char_set": 224, + "max_size": 80 + } + }, + { + "ordinal": 4, + "name": "creator_display_name", + "type_info": { + "type": "VarString", + "flags": { + "bits": 4225 + }, + "char_set": 224, + "max_size": 80 + } + }, + { + "ordinal": 5, + "name": "title", + "type_info": { + "type": "String", + "flags": { + "bits": 4225 + }, + "char_set": 224, + "max_size": 1020 + } + }, + { + "ordinal": 6, + "name": "frame_width", + "type_info": { + "type": "Long", + "flags": { + "bits": 1 + }, + "char_set": 63, + "max_size": 10 + } + }, + { + "ordinal": 7, + "name": "frame_height", + "type_info": { + "type": "Long", + "flags": { + "bits": 1 + }, + "char_set": 63, + "max_size": 10 + } + }, + { + "ordinal": 8, + "name": "duration_millis", + "type_info": { + "type": "Long", + "flags": { + "bits": 1 + }, + "char_set": 63, + "max_size": 10 + } + }, + { + "ordinal": 9, + "name": "maybe_public_bucket_preview_image_object_name", + "type_info": { + "type": "VarString", + "flags": { + "bits": 128 + }, + "char_set": 224, + "max_size": 1020 + } + }, + { + "ordinal": 10, + "name": "maybe_public_bucket_preview_video_object_name", + "type_info": { + "type": "VarString", + "flags": { + "bits": 128 + }, + "char_set": 224, + "max_size": 1020 + } + }, + { + "ordinal": 11, + "name": "is_public_listing_approved", + "type_info": { + "type": "Tiny", + "flags": { + "bits": 8 + }, + "char_set": 63, + "max_size": 1 + } + }, + { + "ordinal": 12, + "name": "created_at", + "type_info": { + "type": "Timestamp", + "flags": { + "bits": 1153 + }, + "char_set": 63, + "max_size": 19 + } + }, + { + "ordinal": 13, + "name": "updated_at", + "type_info": { + "type": "Timestamp", + "flags": { + "bits": 9345 + }, + "char_set": 63, + "max_size": 19 + } + } + ], "parameters": { "Right": 1 }, - "nullable": [] + "nullable": [ + false, + false, + false, + false, + false, + false, + false, + false, + false, + true, + true, + true, + false, + false + ] } }, "e73192a3e763a287d5737821443c5a81649f17e39978497b99c52e1e896a75f6": { @@ -6750,259 +7353,33 @@ ] } }, - "e76b9212a263b286e5a012bcf725c33580f9c4a8da800f0da124a1ceff3086b0": { - "query": "\nSELECT\n users.token as user_token,\n username,\n display_name,\n email_gravatar_hash,\n profile_markdown,\n profile_rendered_html,\n user_role_slug,\n banned,\n avatar_public_bucket_hash,\n disable_gravatar,\n maybe_preferred_tts_model_token,\n maybe_preferred_w2l_template_token,\n discord_username,\n twitch_username,\n twitter_username,\n patreon_username,\n github_username,\n created_at\nFROM users\nWHERE users.username = ?\nAND users.deleted_at IS NULL\n ", + "e9b73703961516622f748fa597b62af6b991a7a36acf9901ca6d315ed2440674": { + "query": "\nUPDATE tts_models\nSET\n title = ?,\n description_markdown = ?,\n description_rendered_html = ?,\n maybe_mod_user_token = ?,\n version = version + 1\nWHERE token = ?\nLIMIT 1\n ", "describe": { - "columns": [ - { - "ordinal": 0, - "name": "user_token", - "type_info": { - "type": "VarString", - "flags": { - "bits": 4229 - }, - "char_set": 224, - "max_size": 128 - } - }, - { - "ordinal": 1, - "name": "username", - "type_info": { - "type": "VarString", - "flags": { - "bits": 4229 - }, - "char_set": 224, - "max_size": 80 - } - }, - { - "ordinal": 2, - "name": "display_name", - "type_info": { - "type": "VarString", - "flags": { - "bits": 4225 - }, - "char_set": 224, - "max_size": 80 - } - }, - { - "ordinal": 3, - "name": "email_gravatar_hash", - "type_info": { - "type": "String", - "flags": { - "bits": 4225 - }, - "char_set": 224, - "max_size": 128 - } - }, - { - "ordinal": 4, - "name": "profile_markdown", - "type_info": { - "type": "Blob", - "flags": { - "bits": 4241 - }, - "char_set": 224, - "max_size": 262140 - } - }, - { - "ordinal": 5, - "name": "profile_rendered_html", - "type_info": { - "type": "Blob", - "flags": { - "bits": 4241 - }, - "char_set": 224, - "max_size": 262140 - } - }, - { - "ordinal": 6, - "name": "user_role_slug", - "type_info": { - "type": "VarString", - "flags": { - "bits": 4233 - }, - "char_set": 224, - "max_size": 64 - } - }, - { - "ordinal": 7, - "name": "banned", - "type_info": { - "type": "Tiny", - "flags": { - "bits": 1 - }, - "char_set": 63, - "max_size": 1 - } - }, - { - "ordinal": 8, - "name": "avatar_public_bucket_hash", - "type_info": { - "type": "String", - "flags": { - "bits": 128 - }, - "char_set": 224, - "max_size": 128 - } - }, - { - "ordinal": 9, - "name": "disable_gravatar", - "type_info": { - "type": "Tiny", - "flags": { - "bits": 1 - }, - "char_set": 63, - "max_size": 1 - } - }, - { - "ordinal": 10, - "name": "maybe_preferred_tts_model_token", - "type_info": { - "type": "VarString", - "flags": { - "bits": 128 - }, - "char_set": 224, - "max_size": 128 - } - }, - { - "ordinal": 11, - "name": "maybe_preferred_w2l_template_token", - "type_info": { - "type": "VarString", - "flags": { - "bits": 128 - }, - "char_set": 224, - "max_size": 128 - } - }, - { - "ordinal": 12, - "name": "discord_username", - "type_info": { - "type": "VarString", - "flags": { - "bits": 128 - }, - "char_set": 224, - "max_size": 144 - } - }, - { - "ordinal": 13, - "name": "twitch_username", - "type_info": { - "type": "VarString", - "flags": { - "bits": 128 - }, - "char_set": 224, - "max_size": 144 - } - }, - { - "ordinal": 14, - "name": "twitter_username", - "type_info": { - "type": "VarString", - "flags": { - "bits": 128 - }, - "char_set": 224, - "max_size": 144 - } - }, - { - "ordinal": 15, - "name": "patreon_username", - "type_info": { - "type": "VarString", - "flags": { - "bits": 128 - }, - "char_set": 224, - "max_size": 144 - } - }, - { - "ordinal": 16, - "name": "github_username", - "type_info": { - "type": "VarString", - "flags": { - "bits": 128 - }, - "char_set": 224, - "max_size": 144 - } - }, - { - "ordinal": 17, - "name": "created_at", - "type_info": { - "type": "Timestamp", - "flags": { - "bits": 1153 - }, - "char_set": 63, - "max_size": 19 - } - } - ], + "columns": [], + "parameters": { + "Right": 5 + }, + "nullable": [] + } + }, + "e9ec861d6eb135370f9baf3a866282ec5686d4b299fc4ec10900ab32ea8577d8": { + "query": "\nUPDATE w2l_results\nSET\n user_deleted_at = NULL\nWHERE\n token = ?\nLIMIT 1\n ", + "describe": { + "columns": [], "parameters": { "Right": 1 }, - "nullable": [ - false, - false, - false, - false, - false, - false, - false, - false, - true, - false, - true, - true, - true, - true, - true, - true, - true, - false - ] + "nullable": [] } }, - "ee3925235a4f3b0a5d6ec0053b15fb9a2d6af28ca1039e2563d7d53430078986": { - "query": "\nSELECT\n tts_results.token as tts_result_token,\n\n tts_results.model_token as tts_model_token,\n tts_results.inference_text as inference_text,\n\n users.token as maybe_creator_user_token,\n users.username as maybe_creator_username,\n users.display_name as maybe_creator_display_name,\n\n tts_results.file_size_bytes,\n tts_results.duration_millis,\n tts_results.created_at,\n tts_results.updated_at\n\nFROM tts_results\nLEFT OUTER JOIN tts_models\n ON tts_results.model_token = tts_models.token\nLEFT OUTER JOIN users\n ON tts_results.maybe_creator_user_token = users.token\nWHERE\n tts_results.deleted_at IS NULL\n AND tts_results.is_mod_hidden_from_public IS FALSE\n AND tts_models.is_mod_disabled IS FALSE\n AND users.username = ?\n ", + "ed67238afe48c159443d215cd1fe2f0264ad840768f789d068527ae542b08194": { + "query": "\nSELECT\n tts.token as model_token,\n tts.tts_model_type,\n tts.creator_user_token,\n users.username as creator_username,\n users.display_name as creator_display_name,\n tts.title,\n tts.created_at,\n tts.updated_at\nFROM tts_models as tts\nJOIN users\n ON users.token = tts.creator_user_token\nWHERE\n tts.user_deleted_at IS NULL\n AND tts.mod_deleted_at IS NULL\n ", "describe": { "columns": [ { "ordinal": 0, - "name": "tts_result_token", + "name": "model_token", "type_info": { "type": "VarString", "flags": { @@ -7014,7 +7391,19 @@ }, { "ordinal": 1, - "name": "tts_model_token", + "name": "tts_model_type", + "type_info": { + "type": "String", + "flags": { + "bits": 385 + }, + "char_set": 224, + "max_size": 60 + } + }, + { + "ordinal": 2, + "name": "creator_user_token", "type_info": { "type": "VarString", "flags": { @@ -7024,37 +7413,25 @@ "max_size": 128 } }, - { - "ordinal": 2, - "name": "inference_text", - "type_info": { - "type": "Blob", - "flags": { - "bits": 4241 - }, - "char_set": 224, - "max_size": 262140 - } - }, { "ordinal": 3, - "name": "maybe_creator_user_token", + "name": "creator_username", "type_info": { "type": "VarString", "flags": { - "bits": 4228 + "bits": 4229 }, "char_set": 224, - "max_size": 128 + "max_size": 80 } }, { "ordinal": 4, - "name": "maybe_creator_username", + "name": "creator_display_name", "type_info": { "type": "VarString", "flags": { - "bits": 4228 + "bits": 4225 }, "char_set": 224, "max_size": 80 @@ -7062,42 +7439,18 @@ }, { "ordinal": 5, - "name": "maybe_creator_display_name", + "name": "title", "type_info": { "type": "VarString", "flags": { - "bits": 4224 + "bits": 4225 }, "char_set": 224, - "max_size": 80 + "max_size": 1020 } }, { "ordinal": 6, - "name": "file_size_bytes", - "type_info": { - "type": "Long", - "flags": { - "bits": 1 - }, - "char_set": 63, - "max_size": 10 - } - }, - { - "ordinal": 7, - "name": "duration_millis", - "type_info": { - "type": "Long", - "flags": { - "bits": 1 - }, - "char_set": 63, - "max_size": 10 - } - }, - { - "ordinal": 8, "name": "created_at", "type_info": { "type": "Timestamp", @@ -7109,7 +7462,7 @@ } }, { - "ordinal": 9, + "ordinal": 7, "name": "updated_at", "type_info": { "type": "Timestamp", @@ -7122,15 +7475,13 @@ } ], "parameters": { - "Right": 1 + "Right": 0 }, "nullable": [ false, false, false, - true, - true, - true, + false, false, false, false, @@ -7138,276 +7489,14 @@ ] } }, - "f00402e757b7f5d8ded60e78ac47d93ccf4c71a2acba9dddcedfed0ac4d2e3a5": { - "query": "\nSELECT\n w2l_results.token as w2l_result_token,\n w2l_results.maybe_tts_inference_result_token,\n\n w2l_results.public_bucket_video_path,\n\n w2l_templates.token as maybe_w2l_template_token,\n w2l_templates.template_type,\n w2l_templates.title as template_title,\n\n users.token as maybe_creator_user_token,\n users.username as maybe_creator_username,\n users.display_name as maybe_creator_display_name,\n users.email_gravatar_hash as maybe_creator_gravatar_hash,\n\n template_users.token as maybe_template_creator_user_token,\n template_users.username as maybe_template_creator_username,\n template_users.display_name as maybe_template_creator_display_name,\n template_users.email_gravatar_hash as maybe_template_creator_gravatar_hash,\n\n w2l_results.file_size_bytes,\n w2l_results.frame_width,\n w2l_results.frame_height,\n w2l_results.duration_millis,\n w2l_results.created_at,\n w2l_results.updated_at\n\nFROM w2l_results\nLEFT OUTER JOIN w2l_templates\n ON w2l_results.maybe_w2l_template_token = w2l_templates.token\nLEFT OUTER JOIN users\n ON w2l_results.maybe_creator_user_token = users.token\nLEFT OUTER JOIN users as template_users\n ON w2l_templates.creator_user_token = template_users.token\nWHERE\n w2l_results.deleted_at IS NULL\n AND w2l_results.token = ?\n ", + "ee05f95e45f7aaa5811d70b1f00d3f40a361536dfc6451affcad97586dc3338f": { + "query": "\nUPDATE w2l_inference_jobs\nSET\n status = 'started',\n attempt_count = attempt_count + 1,\n retry_at = NOW() + interval 2 minute\nWHERE id = ?\n ", "describe": { - "columns": [ - { - "ordinal": 0, - "name": "w2l_result_token", - "type_info": { - "type": "VarString", - "flags": { - "bits": 4229 - }, - "char_set": 224, - "max_size": 128 - } - }, - { - "ordinal": 1, - "name": "maybe_tts_inference_result_token", - "type_info": { - "type": "VarString", - "flags": { - "bits": 136 - }, - "char_set": 224, - "max_size": 128 - } - }, - { - "ordinal": 2, - "name": "public_bucket_video_path", - "type_info": { - "type": "VarString", - "flags": { - "bits": 4225 - }, - "char_set": 224, - "max_size": 1020 - } - }, - { - "ordinal": 3, - "name": "maybe_w2l_template_token", - "type_info": { - "type": "VarString", - "flags": { - "bits": 4228 - }, - "char_set": 224, - "max_size": 128 - } - }, - { - "ordinal": 4, - "name": "template_type", - "type_info": { - "type": "String", - "flags": { - "bits": 392 - }, - "char_set": 224, - "max_size": 28 - } - }, - { - "ordinal": 5, - "name": "template_title", - "type_info": { - "type": "String", - "flags": { - "bits": 4224 - }, - "char_set": 224, - "max_size": 1020 - } - }, - { - "ordinal": 6, - "name": "maybe_creator_user_token", - "type_info": { - "type": "VarString", - "flags": { - "bits": 4228 - }, - "char_set": 224, - "max_size": 128 - } - }, - { - "ordinal": 7, - "name": "maybe_creator_username", - "type_info": { - "type": "VarString", - "flags": { - "bits": 4228 - }, - "char_set": 224, - "max_size": 80 - } - }, - { - "ordinal": 8, - "name": "maybe_creator_display_name", - "type_info": { - "type": "VarString", - "flags": { - "bits": 4224 - }, - "char_set": 224, - "max_size": 80 - } - }, - { - "ordinal": 9, - "name": "maybe_creator_gravatar_hash", - "type_info": { - "type": "String", - "flags": { - "bits": 4224 - }, - "char_set": 224, - "max_size": 128 - } - }, - { - "ordinal": 10, - "name": "maybe_template_creator_user_token", - "type_info": { - "type": "VarString", - "flags": { - "bits": 4228 - }, - "char_set": 224, - "max_size": 128 - } - }, - { - "ordinal": 11, - "name": "maybe_template_creator_username", - "type_info": { - "type": "VarString", - "flags": { - "bits": 4228 - }, - "char_set": 224, - "max_size": 80 - } - }, - { - "ordinal": 12, - "name": "maybe_template_creator_display_name", - "type_info": { - "type": "VarString", - "flags": { - "bits": 4224 - }, - "char_set": 224, - "max_size": 80 - } - }, - { - "ordinal": 13, - "name": "maybe_template_creator_gravatar_hash", - "type_info": { - "type": "String", - "flags": { - "bits": 4224 - }, - "char_set": 224, - "max_size": 128 - } - }, - { - "ordinal": 14, - "name": "file_size_bytes", - "type_info": { - "type": "Long", - "flags": { - "bits": 1 - }, - "char_set": 63, - "max_size": 10 - } - }, - { - "ordinal": 15, - "name": "frame_width", - "type_info": { - "type": "Long", - "flags": { - "bits": 1 - }, - "char_set": 63, - "max_size": 10 - } - }, - { - "ordinal": 16, - "name": "frame_height", - "type_info": { - "type": "Long", - "flags": { - "bits": 1 - }, - "char_set": 63, - "max_size": 10 - } - }, - { - "ordinal": 17, - "name": "duration_millis", - "type_info": { - "type": "Long", - "flags": { - "bits": 1 - }, - "char_set": 63, - "max_size": 10 - } - }, - { - "ordinal": 18, - "name": "created_at", - "type_info": { - "type": "Timestamp", - "flags": { - "bits": 1153 - }, - "char_set": 63, - "max_size": 19 - } - }, - { - "ordinal": 19, - "name": "updated_at", - "type_info": { - "type": "Timestamp", - "flags": { - "bits": 9345 - }, - "char_set": 63, - "max_size": 19 - } - } - ], + "columns": [], "parameters": { "Right": 1 }, - "nullable": [ - false, - true, - false, - true, - true, - true, - true, - true, - true, - true, - true, - true, - true, - true, - false, - false, - false, - false, - false, - false - ] + "nullable": [] } }, "f19300f4e8434c2669dac062e5a79c5ca71767c7380aab0ab40b51be8ff449d8": { @@ -7420,13 +7509,13 @@ "nullable": [] } }, - "f6e625dde66da14091591f321eb65b0137fceb7168305bf17806f1876a644954": { - "query": "\nSELECT\n token as template_token\nFROM w2l_templates\nWHERE token = ?\nAND deleted_at IS NULL\n ", + "fc0045b6fe338a903fa9f35307457d8dbb32c5838a4783fddf0c9beef7fdb4a5": { + "query": "\nSELECT\n jobs.token as job_token,\n\n jobs.status,\n jobs.attempt_count,\n jobs.on_success_result_token as maybe_result_token,\n results.public_bucket_wav_audio_path as maybe_public_bucket_wav_audio_path,\n\n jobs.model_token,\n tts.tts_model_type,\n tts.title,\n\n jobs.created_at,\n jobs.updated_at\n\nFROM tts_inference_jobs as jobs\nJOIN tts_models as tts\n ON tts.token = jobs.model_token\nLEFT OUTER JOIN tts_results as results\n ON jobs.on_success_result_token = results.token\n\nWHERE jobs.token = ?\n ", "describe": { "columns": [ { "ordinal": 0, - "name": "template_token", + "name": "job_token", "type_info": { "type": "VarString", "flags": { @@ -7435,22 +7524,139 @@ "char_set": 224, "max_size": 128 } + }, + { + "ordinal": 1, + "name": "status", + "type_info": { + "type": "String", + "flags": { + "bits": 393 + }, + "char_set": 224, + "max_size": 64 + } + }, + { + "ordinal": 2, + "name": "attempt_count", + "type_info": { + "type": "Long", + "flags": { + "bits": 1 + }, + "char_set": 63, + "max_size": 3 + } + }, + { + "ordinal": 3, + "name": "maybe_result_token", + "type_info": { + "type": "VarString", + "flags": { + "bits": 136 + }, + "char_set": 224, + "max_size": 128 + } + }, + { + "ordinal": 4, + "name": "maybe_public_bucket_wav_audio_path", + "type_info": { + "type": "VarString", + "flags": { + "bits": 4224 + }, + "char_set": 224, + "max_size": 1020 + } + }, + { + "ordinal": 5, + "name": "model_token", + "type_info": { + "type": "VarString", + "flags": { + "bits": 4233 + }, + "char_set": 224, + "max_size": 128 + } + }, + { + "ordinal": 6, + "name": "tts_model_type", + "type_info": { + "type": "String", + "flags": { + "bits": 385 + }, + "char_set": 224, + "max_size": 60 + } + }, + { + "ordinal": 7, + "name": "title", + "type_info": { + "type": "VarString", + "flags": { + "bits": 4225 + }, + "char_set": 224, + "max_size": 1020 + } + }, + { + "ordinal": 8, + "name": "created_at", + "type_info": { + "type": "Timestamp", + "flags": { + "bits": 1153 + }, + "char_set": 63, + "max_size": 19 + } + }, + { + "ordinal": 9, + "name": "updated_at", + "type_info": { + "type": "Timestamp", + "flags": { + "bits": 9345 + }, + "char_set": 63, + "max_size": 19 + } } ], "parameters": { "Right": 1 }, "nullable": [ + false, + false, + false, + true, + true, + false, + false, + false, + false, false ] } }, - "fc8641968fc13589daceebeded8a8d0446309f8c2961066450f913c87156bbc6": { - "query": "\nUPDATE w2l_templates\nSET\n is_mod_public_listing_approved = ?,\n maybe_mod_user_token = ?\nWHERE\n token = ?\nLIMIT 1\n ", + "ffa85f7c65101a43653c724479ee080e0a74577d2ae37863b039f3a452493d1e": { + "query": "\nUPDATE w2l_results\nSET\n user_deleted_at = CURRENT_TIMESTAMP\nWHERE\n token = ?\nLIMIT 1\n ", "describe": { "columns": [], "parameters": { - "Right": 3 + "Right": 1 }, "nullable": [] }