2026-01-27 16:21:58 +00:00
|
|
|
{
|
|
|
|
|
"db_name": "PostgreSQL",
|
2026-01-28 23:30:56 +00:00
|
|
|
"query": "INSERT INTO delegations (delegator_id, delegate_id, scope, community_id, topic_id, proposal_id, weight)\n VALUES ($1, $2, $3::delegation_scope, $4, $5, $6, ($7::float8)::numeric)\n RETURNING id, delegator_id, delegate_id, scope as \"scope: DelegationScope\", \n community_id, topic_id, proposal_id, weight::float8 as \"weight!\", is_active, created_at",
|
2026-01-27 16:21:58 +00:00
|
|
|
"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": "scope: DelegationScope",
|
|
|
|
|
"type_info": {
|
|
|
|
|
"Custom": {
|
|
|
|
|
"name": "delegation_scope",
|
|
|
|
|
"kind": {
|
|
|
|
|
"Enum": [
|
|
|
|
|
"global",
|
|
|
|
|
"community",
|
|
|
|
|
"topic",
|
|
|
|
|
"proposal"
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"ordinal": 4,
|
|
|
|
|
"name": "community_id",
|
|
|
|
|
"type_info": "Uuid"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"ordinal": 5,
|
|
|
|
|
"name": "topic_id",
|
|
|
|
|
"type_info": "Uuid"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"ordinal": 6,
|
|
|
|
|
"name": "proposal_id",
|
|
|
|
|
"type_info": "Uuid"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"ordinal": 7,
|
2026-01-28 23:30:56 +00:00
|
|
|
"name": "weight!",
|
|
|
|
|
"type_info": "Float8"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"ordinal": 8,
|
2026-01-27 16:21:58 +00:00
|
|
|
"name": "is_active",
|
|
|
|
|
"type_info": "Bool"
|
|
|
|
|
},
|
|
|
|
|
{
|
2026-01-28 23:30:56 +00:00
|
|
|
"ordinal": 9,
|
2026-01-27 16:21:58 +00:00
|
|
|
"name": "created_at",
|
|
|
|
|
"type_info": "Timestamptz"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"parameters": {
|
|
|
|
|
"Left": [
|
|
|
|
|
"Uuid",
|
|
|
|
|
"Uuid",
|
|
|
|
|
{
|
|
|
|
|
"Custom": {
|
|
|
|
|
"name": "delegation_scope",
|
|
|
|
|
"kind": {
|
|
|
|
|
"Enum": [
|
|
|
|
|
"global",
|
|
|
|
|
"community",
|
|
|
|
|
"topic",
|
|
|
|
|
"proposal"
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"Uuid",
|
|
|
|
|
"Uuid",
|
2026-01-28 23:30:56 +00:00
|
|
|
"Uuid",
|
|
|
|
|
"Float8"
|
2026-01-27 16:21:58 +00:00
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
"nullable": [
|
|
|
|
|
false,
|
|
|
|
|
false,
|
|
|
|
|
false,
|
|
|
|
|
false,
|
|
|
|
|
true,
|
|
|
|
|
true,
|
|
|
|
|
true,
|
2026-01-28 23:30:56 +00:00
|
|
|
null,
|
2026-01-27 16:21:58 +00:00
|
|
|
false,
|
|
|
|
|
false
|
|
|
|
|
]
|
|
|
|
|
},
|
2026-01-28 23:30:56 +00:00
|
|
|
"hash": "b5c36e2f70e6c7d5f501373d11b52254cb3c898866401e2e757071d81bfe53b0"
|
2026-01-27 16:21:58 +00:00
|
|
|
}
|