nxtgauge-backend-rust/.sqlx/query-316d3bc96ca73c75b0e34b79f41590b1a3443a30a8d89a971f77996801450c55.json

126 lines
2.5 KiB
JSON

{
"db_name": "PostgreSQL",
"query": "\n SELECT * FROM requirements \n WHERE profession_key = $1 AND status = 'OPEN' AND (expires_at IS NULL OR expires_at > NOW())\n ORDER BY created_at DESC\n LIMIT $2 OFFSET $3\n ",
"describe": {
"columns": [
{
"ordinal": 0,
"name": "id",
"type_info": "Uuid"
},
{
"ordinal": 1,
"name": "customer_id",
"type_info": "Uuid"
},
{
"ordinal": 2,
"name": "profession_key",
"type_info": "Varchar"
},
{
"ordinal": 3,
"name": "title",
"type_info": "Varchar"
},
{
"ordinal": 4,
"name": "description",
"type_info": "Text"
},
{
"ordinal": 5,
"name": "location",
"type_info": "Varchar"
},
{
"ordinal": 6,
"name": "budget",
"type_info": "Int4"
},
{
"ordinal": 7,
"name": "preferred_date",
"type_info": "Date"
},
{
"ordinal": 8,
"name": "extra_data_json",
"type_info": "Jsonb"
},
{
"ordinal": 9,
"name": "status",
"type_info": "Varchar"
},
{
"ordinal": 10,
"name": "rejection_reason",
"type_info": "Text"
},
{
"ordinal": 11,
"name": "request_count",
"type_info": "Int4"
},
{
"ordinal": 12,
"name": "accepted_count",
"type_info": "Int4"
},
{
"ordinal": 13,
"name": "expires_at",
"type_info": "Timestamptz"
},
{
"ordinal": 14,
"name": "approved_at",
"type_info": "Timestamptz"
},
{
"ordinal": 15,
"name": "approved_by",
"type_info": "Uuid"
},
{
"ordinal": 16,
"name": "created_at",
"type_info": "Timestamptz"
},
{
"ordinal": 17,
"name": "updated_at",
"type_info": "Timestamptz"
}
],
"parameters": {
"Left": [
"Text",
"Int8",
"Int8"
]
},
"nullable": [
false,
false,
false,
false,
false,
false,
true,
true,
true,
false,
true,
false,
false,
true,
true,
true,
false,
false
]
},
"hash": "316d3bc96ca73c75b0e34b79f41590b1a3443a30a8d89a971f77996801450c55"
}