likwid/backend/.sqlx/query-e078bd7e0e60f80321173ea5383e3c89f5b07036b7f6c3be6a66e25dd64d8790.json
Marco Allegretti 910a6465f2 Initial commit: Likwid governance platform
- Backend: Rust/Axum with PostgreSQL, plugin architecture
- Frontend: Astro with polished UI
- Voting methods: Approval, Ranked Choice, Schulze, STAR, Quadratic
- Features: Liquid delegation, transparent moderation, structured deliberation
- Documentation: User and admin guides in /docs
- Deployment: Docker/Podman compose files for production and demo
- Demo: Seeded data with 3 communities, 13 users, 7 proposals

License: AGPLv3
2026-01-27 17:21:58 +01:00

59 lines
1.3 KiB
JSON

{
"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"
}