Files
expenses/server/.sqlx/query-e5c0bc537264fb01e0eaca622ccac4f7b0ee2940954d7e902e6952488b9cb18a.json

89 lines
2.0 KiB
JSON

{
"db_name": "PostgreSQL",
"query": "\n SELECT\n a.id,\n a.user_id,\n a.user_app_id,\n a.secret_hash,\n a.expires_at,\n a.issued_at\n FROM access_tokens a\n JOIN refresh_tokens r ON r.access_token_id = a.id\n WHERE r.secret_hash = $1\n AND r.expires_at > now()\n ",
"describe": {
"columns": [
{
"ordinal": 0,
"name": "id",
"type_info": "Uuid",
"origin": {
"Table": {
"table": "access_tokens",
"name": "id"
}
}
},
{
"ordinal": 1,
"name": "user_id",
"type_info": "Uuid",
"origin": {
"Table": {
"table": "access_tokens",
"name": "user_id"
}
}
},
{
"ordinal": 2,
"name": "user_app_id",
"type_info": "Uuid",
"origin": {
"Table": {
"table": "access_tokens",
"name": "user_app_id"
}
}
},
{
"ordinal": 3,
"name": "secret_hash",
"type_info": "Bytea",
"origin": {
"Table": {
"table": "access_tokens",
"name": "secret_hash"
}
}
},
{
"ordinal": 4,
"name": "expires_at",
"type_info": "Timestamptz",
"origin": {
"Table": {
"table": "access_tokens",
"name": "expires_at"
}
}
},
{
"ordinal": 5,
"name": "issued_at",
"type_info": "Timestamptz",
"origin": {
"Table": {
"table": "access_tokens",
"name": "issued_at"
}
}
}
],
"parameters": {
"Left": [
"Bytea"
]
},
"nullable": [
false,
false,
true,
false,
false,
false
]
},
"hash": "e5c0bc537264fb01e0eaca622ccac4f7b0ee2940954d7e902e6952488b9cb18a"
}