eorzea-votes/server/.sqlx/query-3c76d2fecf7f6dcc8ba6a...

59 lines
1.4 KiB
JSON

{
"db_name": "PostgreSQL",
"query": "\n select\n q.*,\n current_timestamp <= q.publish_date + interval '1 day' and current_timestamp > q.publish_date as \"active!\",\n (select answer from responses r where r.question_id = q.id and r.user_id = $1) as response\n from questions q\n where q.publish_date <= current_timestamp\n order by q.publish_date desc\n ",
"describe": {
"columns": [
{
"ordinal": 0,
"name": "id",
"type_info": "Uuid"
},
{
"ordinal": 1,
"name": "publish_date",
"type_info": "Timestamptz"
},
{
"ordinal": 2,
"name": "question_text",
"type_info": "Text"
},
{
"ordinal": 3,
"name": "answers",
"type_info": "TextArray"
},
{
"ordinal": 4,
"name": "suggester",
"type_info": "Text"
},
{
"ordinal": 5,
"name": "active!",
"type_info": "Bool"
},
{
"ordinal": 6,
"name": "response",
"type_info": "Int2"
}
],
"parameters": {
"Left": [
"Uuid"
]
},
"nullable": [
false,
false,
false,
false,
true,
null,
null
]
},
"hash": "3c76d2fecf7f6dcc8ba6ac1c0a1ee558415e032c330ed8fc65c0de1cd4f2c705"
}