From 8bfd7c34566c13ebd4ea8ae4203d3cbfb0e10f9c Mon Sep 17 00:00:00 2001 From: Pierre-Nicolas Watin-Augouard Date: Tue, 9 Apr 2024 21:31:54 +0200 Subject: [PATCH] chore: sqlx prepare --- ...5a8489dfa37fb49bc0f3800fe0ec1cfb5b5db.json | 14 ++++++++++++- ...2ecdaca769fba1283b659547d836bdd0e3050.json | 21 +++++++++++++++++++ ...d5cb88a3269d17ed2276c32f03a694ee161af.json | 19 ----------------- ...04498dae1d01d7e369761d93570209f3678ad.json | 14 ++++++++++++- 4 files changed, 47 insertions(+), 21 deletions(-) create mode 100644 .sqlx/query-5b7a632d6198f544f1cdc5c91882ecdaca769fba1283b659547d836bdd0e3050.json delete mode 100644 .sqlx/query-6c3658fc09b215727fbd49b9fa1d5cb88a3269d17ed2276c32f03a694ee161af.json diff --git a/.sqlx/query-2b3dc5906bd805a17a8fb2355b35a8489dfa37fb49bc0f3800fe0ec1cfb5b5db.json b/.sqlx/query-2b3dc5906bd805a17a8fb2355b35a8489dfa37fb49bc0f3800fe0ec1cfb5b5db.json index e1ab6cd..5f8de01 100644 --- a/.sqlx/query-2b3dc5906bd805a17a8fb2355b35a8489dfa37fb49bc0f3800fe0ec1cfb5b5db.json +++ b/.sqlx/query-2b3dc5906bd805a17a8fb2355b35a8489dfa37fb49bc0f3800fe0ec1cfb5b5db.json @@ -25,11 +25,21 @@ }, { "ordinal": 4, + "name": "user_agent", + "type_info": "Text" + }, + { + "ordinal": 5, + "name": "ip_address", + "type_info": "Text" + }, + { + "ordinal": 6, "name": "expires_at", "type_info": "Timestamptz" }, { - "ordinal": 5, + "ordinal": 7, "name": "created_at", "type_info": "Timestamptz" } @@ -42,6 +52,8 @@ false, false, false, + true, + true, false, false ] diff --git a/.sqlx/query-5b7a632d6198f544f1cdc5c91882ecdaca769fba1283b659547d836bdd0e3050.json b/.sqlx/query-5b7a632d6198f544f1cdc5c91882ecdaca769fba1283b659547d836bdd0e3050.json new file mode 100644 index 0000000..0f00619 --- /dev/null +++ b/.sqlx/query-5b7a632d6198f544f1cdc5c91882ecdaca769fba1283b659547d836bdd0e3050.json @@ -0,0 +1,21 @@ +{ + "db_name": "PostgreSQL", + "query": "\n INSERT INTO refresh_tokens (id, user_id, jit, family, ip_address, user_agent, expires_at, created_at)\n VALUES ($1, $2, $3, $4, $5, $6, $7, $8)\n ON CONFLICT (family) DO UPDATE\n SET id = EXCLUDED.id,\n jit = EXCLUDED.jit,\n ip_address = EXCLUDED.ip_address,\n user_agent = EXCLUDED.user_agent,\n expires_at = EXCLUDED.expires_at,\n created_at = EXCLUDED.created_at;\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Uuid", + "Uuid", + "Uuid", + "Uuid", + "Text", + "Text", + "Timestamptz", + "Timestamptz" + ] + }, + "nullable": [] + }, + "hash": "5b7a632d6198f544f1cdc5c91882ecdaca769fba1283b659547d836bdd0e3050" +} diff --git a/.sqlx/query-6c3658fc09b215727fbd49b9fa1d5cb88a3269d17ed2276c32f03a694ee161af.json b/.sqlx/query-6c3658fc09b215727fbd49b9fa1d5cb88a3269d17ed2276c32f03a694ee161af.json deleted file mode 100644 index e78cecb..0000000 --- a/.sqlx/query-6c3658fc09b215727fbd49b9fa1d5cb88a3269d17ed2276c32f03a694ee161af.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n INSERT INTO refresh_tokens (id, user_id, jit, family, expires_at, created_at)\n VALUES ($1, $2, $3, $4, $5, $6)\n ON CONFLICT (family) DO UPDATE\n SET id = EXCLUDED.id,\n jit = EXCLUDED.jit,\n expires_at = EXCLUDED.expires_at,\n created_at = EXCLUDED.created_at;\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Uuid", - "Uuid", - "Uuid", - "Uuid", - "Timestamptz", - "Timestamptz" - ] - }, - "nullable": [] - }, - "hash": "6c3658fc09b215727fbd49b9fa1d5cb88a3269d17ed2276c32f03a694ee161af" -} diff --git a/.sqlx/query-86c71200745b29c913dde48645604498dae1d01d7e369761d93570209f3678ad.json b/.sqlx/query-86c71200745b29c913dde48645604498dae1d01d7e369761d93570209f3678ad.json index 55492fe..d5303af 100644 --- a/.sqlx/query-86c71200745b29c913dde48645604498dae1d01d7e369761d93570209f3678ad.json +++ b/.sqlx/query-86c71200745b29c913dde48645604498dae1d01d7e369761d93570209f3678ad.json @@ -25,11 +25,21 @@ }, { "ordinal": 4, + "name": "user_agent", + "type_info": "Text" + }, + { + "ordinal": 5, + "name": "ip_address", + "type_info": "Text" + }, + { + "ordinal": 6, "name": "expires_at", "type_info": "Timestamptz" }, { - "ordinal": 5, + "ordinal": 7, "name": "created_at", "type_info": "Timestamptz" } @@ -44,6 +54,8 @@ false, false, false, + true, + true, false, false ]