likwid/backend/.sqlx/query-e078bd7e0e60f80321173ea5383e3c89f5b07036b7f6c3be6a66e25dd64d8790.json

60 lines
1.3 KiB
JSON
Raw Normal View History

{
"db_name": "PostgreSQL",
"query": "UPDATE delegations \n SET is_active = FALSE, revoked_at = NOW()\n WHERE id = $1 AND delegator_id = $2 AND is_active = TRUE\n RETURNING delegate_id, scope as \"scope: DelegationScope\", community_id, topic_id, proposal_id",
"describe": {
"columns": [
{
"ordinal": 0,
"name": "delegate_id",
"type_info": "Uuid"
},
{
"ordinal": 1,
"name": "scope: DelegationScope",
"type_info": {
"Custom": {
"name": "delegation_scope",
"kind": {
"Enum": [
"global",
"community",
"topic",
"proposal"
]
}
}
}
},
{
"ordinal": 2,
"name": "community_id",
"type_info": "Uuid"
},
{
"ordinal": 3,
"name": "topic_id",
"type_info": "Uuid"
},
{
"ordinal": 4,
"name": "proposal_id",
"type_info": "Uuid"
}
],
"parameters": {
"Left": [
"Uuid",
"Uuid"
]
},
"nullable": [
false,
false,
true,
true,
true
]
},
"hash": "e078bd7e0e60f80321173ea5383e3c89f5b07036b7f6c3be6a66e25dd64d8790"
}