likwid/backend/.sqlx/query-3316c52a6ddc9891f4482e6f5df622147b1be87d0723bf709d6d7def94eb1a0c.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

30 lines
993 B
JSON

{
"db_name": "PostgreSQL",
"query": "UPDATE delegations \n SET is_active = FALSE, revoked_at = NOW()\n WHERE delegator_id = $1 \n AND scope = $2::delegation_scope\n AND is_active = TRUE\n AND (community_id = $3 OR ($3 IS NULL AND community_id IS NULL))\n AND (topic_id = $4 OR ($4 IS NULL AND topic_id IS NULL))\n AND (proposal_id = $5 OR ($5 IS NULL AND proposal_id IS NULL))",
"describe": {
"columns": [],
"parameters": {
"Left": [
"Uuid",
{
"Custom": {
"name": "delegation_scope",
"kind": {
"Enum": [
"global",
"community",
"topic",
"proposal"
]
}
}
},
"Uuid",
"Uuid",
"Uuid"
]
},
"nullable": []
},
"hash": "3316c52a6ddc9891f4482e6f5df622147b1be87d0723bf709d6d7def94eb1a0c"
}