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
76 lines
2.1 KiB
JSON
76 lines
2.1 KiB
JSON
{
|
|
"db_name": "PostgreSQL",
|
|
"query": "SELECT \n rv.id, cr.code AS rule_code, cr.title AS rule_title,\n cr.severity::text AS \"severity!\",\n rv.target_user_id, tu.username AS target_username,\n rv.reported_by, rv.status::text AS \"status!\",\n rv.reported_at, rv.report_reason\n FROM rule_violations rv\n JOIN community_rules cr ON cr.id = rv.rule_id\n JOIN users tu ON tu.id = rv.target_user_id\n WHERE rv.community_id = $1 \n AND rv.status IN ('reported', 'under_review')\n ORDER BY \n CASE cr.severity \n WHEN 'critical' THEN 1 \n WHEN 'major' THEN 2 \n ELSE 3 \n END,\n rv.reported_at",
|
|
"describe": {
|
|
"columns": [
|
|
{
|
|
"ordinal": 0,
|
|
"name": "id",
|
|
"type_info": "Uuid"
|
|
},
|
|
{
|
|
"ordinal": 1,
|
|
"name": "rule_code",
|
|
"type_info": "Varchar"
|
|
},
|
|
{
|
|
"ordinal": 2,
|
|
"name": "rule_title",
|
|
"type_info": "Varchar"
|
|
},
|
|
{
|
|
"ordinal": 3,
|
|
"name": "severity!",
|
|
"type_info": "Text"
|
|
},
|
|
{
|
|
"ordinal": 4,
|
|
"name": "target_user_id",
|
|
"type_info": "Uuid"
|
|
},
|
|
{
|
|
"ordinal": 5,
|
|
"name": "target_username",
|
|
"type_info": "Varchar"
|
|
},
|
|
{
|
|
"ordinal": 6,
|
|
"name": "reported_by",
|
|
"type_info": "Uuid"
|
|
},
|
|
{
|
|
"ordinal": 7,
|
|
"name": "status!",
|
|
"type_info": "Text"
|
|
},
|
|
{
|
|
"ordinal": 8,
|
|
"name": "reported_at",
|
|
"type_info": "Timestamptz"
|
|
},
|
|
{
|
|
"ordinal": 9,
|
|
"name": "report_reason",
|
|
"type_info": "Text"
|
|
}
|
|
],
|
|
"parameters": {
|
|
"Left": [
|
|
"Uuid"
|
|
]
|
|
},
|
|
"nullable": [
|
|
false,
|
|
false,
|
|
false,
|
|
null,
|
|
false,
|
|
false,
|
|
true,
|
|
null,
|
|
false,
|
|
true
|
|
]
|
|
},
|
|
"hash": "cbb4acc6eb730ec886b1af23e6389a0e68d7a672d8643101f6680e42df944711"
|
|
}
|