eorzea-votes/server/.sqlx/query-c4a663a3d0d0b17668f93...

42 lines
1.1 KiB
JSON

{
"db_name": "PostgreSQL",
"query": "\n select\n answers,\n publish_date,\n exists(select 1 from responses where question_id = $1 and user_id = $2) as \"voted!\",\n current_timestamp <= publish_date + interval '1 day' and current_timestamp > publish_date as \"active!\"\n from questions\n where id = $1",
"describe": {
"columns": [
{
"ordinal": 0,
"name": "answers",
"type_info": "TextArray"
},
{
"ordinal": 1,
"name": "publish_date",
"type_info": "Timestamptz"
},
{
"ordinal": 2,
"name": "voted!",
"type_info": "Bool"
},
{
"ordinal": 3,
"name": "active!",
"type_info": "Bool"
}
],
"parameters": {
"Left": [
"Uuid",
"Uuid"
]
},
"nullable": [
false,
false,
null,
null
]
},
"hash": "c4a663a3d0d0b17668f93f29c86d58d3353ac33a6edc115d929edbc52dc13dc3"
}