likwid/backend/.sqlx/query-5ae8c8c64a800b7735ab381b7ff73988ec35b8839beb5f108400e1e85295aaa8.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

84 lines
2.1 KiB
JSON

{
"db_name": "PostgreSQL",
"query": "\n SELECT p.id, p.title, p.description, p.status as \"status: String\", p.created_at,\n c.name as community_name, c.slug as community_slug,\n COALESCE((SELECT COUNT(*) FROM votes v JOIN proposal_options po ON v.option_id = po.id WHERE po.proposal_id = p.id), 0) as vote_count,\n COALESCE((SELECT COUNT(*) FROM comments WHERE proposal_id = p.id), 0) as comment_count\n FROM proposals p\n JOIN communities c ON p.community_id = c.id\n WHERE p.author_id = $1 AND c.is_active = true\n ORDER BY p.created_at DESC\n ",
"describe": {
"columns": [
{
"ordinal": 0,
"name": "id",
"type_info": "Uuid"
},
{
"ordinal": 1,
"name": "title",
"type_info": "Varchar"
},
{
"ordinal": 2,
"name": "description",
"type_info": "Text"
},
{
"ordinal": 3,
"name": "status: String",
"type_info": {
"Custom": {
"name": "proposal_status",
"kind": {
"Enum": [
"draft",
"discussion",
"voting",
"closed",
"archived",
"calculating"
]
}
}
}
},
{
"ordinal": 4,
"name": "created_at",
"type_info": "Timestamptz"
},
{
"ordinal": 5,
"name": "community_name",
"type_info": "Varchar"
},
{
"ordinal": 6,
"name": "community_slug",
"type_info": "Varchar"
},
{
"ordinal": 7,
"name": "vote_count",
"type_info": "Int8"
},
{
"ordinal": 8,
"name": "comment_count",
"type_info": "Int8"
}
],
"parameters": {
"Left": [
"Uuid"
]
},
"nullable": [
false,
false,
false,
false,
false,
false,
false,
null,
null
]
},
"hash": "5ae8c8c64a800b7735ab381b7ff73988ec35b8839beb5f108400e1e85295aaa8"
}