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
68 lines
1.7 KiB
JSON
68 lines
1.7 KiB
JSON
{
|
|
"db_name": "PostgreSQL",
|
|
"query": "SELECT r.id, r.name, r.display_name, r.description, r.color,\n r.is_system, r.is_default, r.priority,\n ARRAY_AGG(p.name) FILTER (WHERE p.name IS NOT NULL) as permissions\n FROM roles r\n LEFT JOIN role_permissions rp ON r.id = rp.role_id AND rp.granted = TRUE\n LEFT JOIN permissions p ON rp.permission_id = p.id\n WHERE r.community_id IS NULL\n GROUP BY r.id\n ORDER BY r.priority DESC",
|
|
"describe": {
|
|
"columns": [
|
|
{
|
|
"ordinal": 0,
|
|
"name": "id",
|
|
"type_info": "Uuid"
|
|
},
|
|
{
|
|
"ordinal": 1,
|
|
"name": "name",
|
|
"type_info": "Varchar"
|
|
},
|
|
{
|
|
"ordinal": 2,
|
|
"name": "display_name",
|
|
"type_info": "Varchar"
|
|
},
|
|
{
|
|
"ordinal": 3,
|
|
"name": "description",
|
|
"type_info": "Text"
|
|
},
|
|
{
|
|
"ordinal": 4,
|
|
"name": "color",
|
|
"type_info": "Varchar"
|
|
},
|
|
{
|
|
"ordinal": 5,
|
|
"name": "is_system",
|
|
"type_info": "Bool"
|
|
},
|
|
{
|
|
"ordinal": 6,
|
|
"name": "is_default",
|
|
"type_info": "Bool"
|
|
},
|
|
{
|
|
"ordinal": 7,
|
|
"name": "priority",
|
|
"type_info": "Int4"
|
|
},
|
|
{
|
|
"ordinal": 8,
|
|
"name": "permissions",
|
|
"type_info": "VarcharArray"
|
|
}
|
|
],
|
|
"parameters": {
|
|
"Left": []
|
|
},
|
|
"nullable": [
|
|
false,
|
|
false,
|
|
false,
|
|
true,
|
|
true,
|
|
false,
|
|
false,
|
|
false,
|
|
null
|
|
]
|
|
},
|
|
"hash": "d00ba1f23877ca15a8ac8b09d55fc86a37d40c9a0ea63afdbfa2f725fa39d255"
|
|
}
|