mirror of
https://codeberg.org/likwid/likwid.git
synced 2026-02-10 05:23:09 +00:00
- 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
90 lines
2.1 KiB
JSON
90 lines
2.1 KiB
JSON
{
|
|
"db_name": "PostgreSQL",
|
|
"query": "SELECT d.id, d.delegator_id, d.delegate_id, u.username as delegate_username,\n d.scope as \"scope: DelegationScope\", d.community_id, d.topic_id, \n d.proposal_id, d.is_active, d.created_at\n FROM delegations d\n JOIN users u ON d.delegate_id = u.id\n WHERE d.delegator_id = $1\n AND ($2 = FALSE OR d.is_active = TRUE)\n AND ($3::uuid IS NULL OR d.community_id = $3)\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": "delegate_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": "is_active",
|
|
"type_info": "Bool"
|
|
},
|
|
{
|
|
"ordinal": 9,
|
|
"name": "created_at",
|
|
"type_info": "Timestamptz"
|
|
}
|
|
],
|
|
"parameters": {
|
|
"Left": [
|
|
"Uuid",
|
|
"Bool",
|
|
"Uuid"
|
|
]
|
|
},
|
|
"nullable": [
|
|
false,
|
|
false,
|
|
false,
|
|
false,
|
|
false,
|
|
true,
|
|
true,
|
|
true,
|
|
false,
|
|
false
|
|
]
|
|
},
|
|
"hash": "ce7f978d16864a568b49c47eaa68edcaafb0d293f6d08f5a945bd456c91fd417"
|
|
}
|