mirror of
https://codeberg.org/likwid/likwid.git
synced 2026-02-09 21:13: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
142 lines
3.3 KiB
JSON
142 lines
3.3 KiB
JSON
{
|
|
"db_name": "PostgreSQL",
|
|
"query": "SELECT \n ml.id,\n ml.sequence_number,\n ml.community_id,\n ml.actor_user_id,\n u.username AS \"actor_username?\",\n ml.actor_role,\n ml.action_type::text AS \"action_type!\",\n ml.target_type,\n ml.target_id,\n ml.target_snapshot,\n ml.reason,\n ml.rule_reference,\n ml.evidence,\n ml.duration_hours,\n ml.expires_at,\n ml.decision_type,\n ml.vote_proposal_id,\n ml.vote_result,\n ml.previous_hash,\n ml.entry_hash,\n ml.created_at\n FROM moderation_ledger ml\n LEFT JOIN users u ON u.id = ml.actor_user_id\n WHERE ml.id = $1",
|
|
"describe": {
|
|
"columns": [
|
|
{
|
|
"ordinal": 0,
|
|
"name": "id",
|
|
"type_info": "Uuid"
|
|
},
|
|
{
|
|
"ordinal": 1,
|
|
"name": "sequence_number",
|
|
"type_info": "Int8"
|
|
},
|
|
{
|
|
"ordinal": 2,
|
|
"name": "community_id",
|
|
"type_info": "Uuid"
|
|
},
|
|
{
|
|
"ordinal": 3,
|
|
"name": "actor_user_id",
|
|
"type_info": "Uuid"
|
|
},
|
|
{
|
|
"ordinal": 4,
|
|
"name": "actor_username?",
|
|
"type_info": "Varchar"
|
|
},
|
|
{
|
|
"ordinal": 5,
|
|
"name": "actor_role",
|
|
"type_info": "Text"
|
|
},
|
|
{
|
|
"ordinal": 6,
|
|
"name": "action_type!",
|
|
"type_info": "Text"
|
|
},
|
|
{
|
|
"ordinal": 7,
|
|
"name": "target_type",
|
|
"type_info": "Text"
|
|
},
|
|
{
|
|
"ordinal": 8,
|
|
"name": "target_id",
|
|
"type_info": "Uuid"
|
|
},
|
|
{
|
|
"ordinal": 9,
|
|
"name": "target_snapshot",
|
|
"type_info": "Jsonb"
|
|
},
|
|
{
|
|
"ordinal": 10,
|
|
"name": "reason",
|
|
"type_info": "Text"
|
|
},
|
|
{
|
|
"ordinal": 11,
|
|
"name": "rule_reference",
|
|
"type_info": "Text"
|
|
},
|
|
{
|
|
"ordinal": 12,
|
|
"name": "evidence",
|
|
"type_info": "Jsonb"
|
|
},
|
|
{
|
|
"ordinal": 13,
|
|
"name": "duration_hours",
|
|
"type_info": "Int4"
|
|
},
|
|
{
|
|
"ordinal": 14,
|
|
"name": "expires_at",
|
|
"type_info": "Timestamptz"
|
|
},
|
|
{
|
|
"ordinal": 15,
|
|
"name": "decision_type",
|
|
"type_info": "Text"
|
|
},
|
|
{
|
|
"ordinal": 16,
|
|
"name": "vote_proposal_id",
|
|
"type_info": "Uuid"
|
|
},
|
|
{
|
|
"ordinal": 17,
|
|
"name": "vote_result",
|
|
"type_info": "Jsonb"
|
|
},
|
|
{
|
|
"ordinal": 18,
|
|
"name": "previous_hash",
|
|
"type_info": "Text"
|
|
},
|
|
{
|
|
"ordinal": 19,
|
|
"name": "entry_hash",
|
|
"type_info": "Text"
|
|
},
|
|
{
|
|
"ordinal": 20,
|
|
"name": "created_at",
|
|
"type_info": "Timestamptz"
|
|
}
|
|
],
|
|
"parameters": {
|
|
"Left": [
|
|
"Uuid"
|
|
]
|
|
},
|
|
"nullable": [
|
|
false,
|
|
false,
|
|
true,
|
|
false,
|
|
false,
|
|
false,
|
|
null,
|
|
false,
|
|
false,
|
|
true,
|
|
false,
|
|
true,
|
|
true,
|
|
true,
|
|
true,
|
|
false,
|
|
true,
|
|
true,
|
|
false,
|
|
false,
|
|
false
|
|
]
|
|
},
|
|
"hash": "274cc3e62a3bc6659ae9e652d6ac15076f76a5fb7acad44f5e853678cfa2abf3"
|
|
}
|