mirror of
https://codeberg.org/likwid/likwid.git
synced 2026-02-09 21:13:09 +00:00
94 lines
2.1 KiB
JSON
94 lines
2.1 KiB
JSON
{
|
|
"db_name": "PostgreSQL",
|
|
"query": "SELECT d.id, d.delegator_id, d.delegate_id, u.username as delegator_username,\n d.scope as \"scope: DelegationScope\", d.community_id, d.topic_id, \n d.proposal_id, d.weight::float8 as \"weight!\", d.is_active, d.created_at\n FROM delegations d\n JOIN users u ON d.delegator_id = u.id\n WHERE d.delegate_id = $1 AND d.is_active = TRUE\n ORDER BY d.created_at DESC",
|
|
"describe": {
|
|
"columns": [
|
|
{
|
|
"ordinal": 0,
|
|
"name": "id",
|
|
"type_info": "Uuid"
|
|
},
|
|
{
|
|
"ordinal": 1,
|
|
"name": "delegator_id",
|
|
"type_info": "Uuid"
|
|
},
|
|
{
|
|
"ordinal": 2,
|
|
"name": "delegate_id",
|
|
"type_info": "Uuid"
|
|
},
|
|
{
|
|
"ordinal": 3,
|
|
"name": "delegator_username",
|
|
"type_info": "Varchar"
|
|
},
|
|
{
|
|
"ordinal": 4,
|
|
"name": "scope: DelegationScope",
|
|
"type_info": {
|
|
"Custom": {
|
|
"name": "delegation_scope",
|
|
"kind": {
|
|
"Enum": [
|
|
"global",
|
|
"community",
|
|
"topic",
|
|
"proposal"
|
|
]
|
|
}
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"ordinal": 5,
|
|
"name": "community_id",
|
|
"type_info": "Uuid"
|
|
},
|
|
{
|
|
"ordinal": 6,
|
|
"name": "topic_id",
|
|
"type_info": "Uuid"
|
|
},
|
|
{
|
|
"ordinal": 7,
|
|
"name": "proposal_id",
|
|
"type_info": "Uuid"
|
|
},
|
|
{
|
|
"ordinal": 8,
|
|
"name": "weight!",
|
|
"type_info": "Float8"
|
|
},
|
|
{
|
|
"ordinal": 9,
|
|
"name": "is_active",
|
|
"type_info": "Bool"
|
|
},
|
|
{
|
|
"ordinal": 10,
|
|
"name": "created_at",
|
|
"type_info": "Timestamptz"
|
|
}
|
|
],
|
|
"parameters": {
|
|
"Left": [
|
|
"Uuid"
|
|
]
|
|
},
|
|
"nullable": [
|
|
false,
|
|
false,
|
|
false,
|
|
false,
|
|
false,
|
|
true,
|
|
true,
|
|
true,
|
|
null,
|
|
false,
|
|
false
|
|
]
|
|
},
|
|
"hash": "e19f4b2d1eea5b4072b35ed1bb8203903a956d66a987d7f2164f3c93b43cfa8b"
|
|
}
|