diff --git a/server/.sqlx/query-014c78e959cdc5d0dc059f6a6b37d664ee6d4f7586627ea7189b72e2cc43b906.json b/server/.sqlx/query-014c78e959cdc5d0dc059f6a6b37d664ee6d4f7586627ea7189b72e2cc43b906.json new file mode 100644 index 0000000..60a5459 --- /dev/null +++ b/server/.sqlx/query-014c78e959cdc5d0dc059f6a6b37d664ee6d4f7586627ea7189b72e2cc43b906.json @@ -0,0 +1,15 @@ +{ + "db_name": "PostgreSQL", + "query": "INSERT INTO comments (author_user_id, parent_post_id, content) VALUES (1, $1, $2)", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Int8", + "Text" + ] + }, + "nullable": [] + }, + "hash": "014c78e959cdc5d0dc059f6a6b37d664ee6d4f7586627ea7189b72e2cc43b906" +} diff --git a/server/.sqlx/query-2f0b854d9111ccd0d186cbbbd9ae74bcb33fb665db0784aedf520e2dafc8d65a.json b/server/.sqlx/query-2f0b854d9111ccd0d186cbbbd9ae74bcb33fb665db0784aedf520e2dafc8d65a.json new file mode 100644 index 0000000..0eefa52 --- /dev/null +++ b/server/.sqlx/query-2f0b854d9111ccd0d186cbbbd9ae74bcb33fb665db0784aedf520e2dafc8d65a.json @@ -0,0 +1,16 @@ +{ + "db_name": "PostgreSQL", + "query": "INSERT INTO comments (parent_post_id, author_user_id, content) VALUES ($1, $2, $3)", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Int8", + "Int8", + "Text" + ] + }, + "nullable": [] + }, + "hash": "2f0b854d9111ccd0d186cbbbd9ae74bcb33fb665db0784aedf520e2dafc8d65a" +} diff --git a/server/.sqlx/query-361a0590e46d138eba4973962c5f527ea86dc3c8640a5dc556523ff336be470e.json b/server/.sqlx/query-3560895233b2af755be5c55ce01337fffccc32dc87a17a40c67c3c1c7e163e63.json similarity index 69% rename from server/.sqlx/query-361a0590e46d138eba4973962c5f527ea86dc3c8640a5dc556523ff336be470e.json rename to server/.sqlx/query-3560895233b2af755be5c55ce01337fffccc32dc87a17a40c67c3c1c7e163e63.json index 13fe83a..d269c15 100644 --- a/server/.sqlx/query-361a0590e46d138eba4973962c5f527ea86dc3c8640a5dc556523ff336be470e.json +++ b/server/.sqlx/query-3560895233b2af755be5c55ce01337fffccc32dc87a17a40c67c3c1c7e163e63.json @@ -1,12 +1,12 @@ { "db_name": "PostgreSQL", - "query": "SELECT id, parent_post_id, parent_comment_id, upvotes, downvotes, content, created_at, updated_at FROM comments WHERE parent_post_id = $1 ORDER BY created_at DESC LIMIT $2 OFFSET $3", + "query": "SELECT id, parent_post_id, upvotes, downvotes, content, created_at, updated_at\n FROM comments WHERE parent_post_id = $1 ORDER BY created_at DESC LIMIT $2 OFFSET $3", "describe": { "columns": [ { "ordinal": 0, "name": "id", - "type_info": "Int8" + "type_info": "Int4" }, { "ordinal": 1, @@ -15,31 +15,26 @@ }, { "ordinal": 2, - "name": "parent_comment_id", - "type_info": "Int8" - }, - { - "ordinal": 3, "name": "upvotes", "type_info": "Int4" }, { - "ordinal": 4, + "ordinal": 3, "name": "downvotes", "type_info": "Int4" }, { - "ordinal": 5, + "ordinal": 4, "name": "content", "type_info": "Text" }, { - "ordinal": 6, + "ordinal": 5, "name": "created_at", "type_info": "Timestamp" }, { - "ordinal": 7, + "ordinal": 6, "name": "updated_at", "type_info": "Timestamp" } @@ -54,7 +49,6 @@ "nullable": [ false, false, - true, false, false, false, @@ -62,5 +56,5 @@ false ] }, - "hash": "361a0590e46d138eba4973962c5f527ea86dc3c8640a5dc556523ff336be470e" + "hash": "3560895233b2af755be5c55ce01337fffccc32dc87a17a40c67c3c1c7e163e63" } diff --git a/server/.sqlx/query-fe72509852c87463cea9775d9606e89a9851b372b39d68a10c16961acd968eef.json b/server/.sqlx/query-fe72509852c87463cea9775d9606e89a9851b372b39d68a10c16961acd968eef.json deleted file mode 100644 index c95db9c..0000000 --- a/server/.sqlx/query-fe72509852c87463cea9775d9606e89a9851b372b39d68a10c16961acd968eef.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "INSERT INTO comments (parent_post_id, parent_comment_id, author_user_id, content) VALUES ($1, $2, $3, $4)", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Int8", - "Int8", - "Int8", - "Text" - ] - }, - "nullable": [] - }, - "hash": "fe72509852c87463cea9775d9606e89a9851b372b39d68a10c16961acd968eef" -}