mirror of
https://codeberg.org/likwid/likwid.git
synced 2026-02-10 13:33:09 +00:00
115 lines
2.7 KiB
JSON
115 lines
2.7 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.reason,\n ml.rule_reference,\n ml.evidence,\n ml.duration_hours,\n ml.decision_type,\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.community_id IS NOT DISTINCT FROM $1\n ORDER BY ml.sequence_number DESC\n LIMIT $2 OFFSET $3",
|
||
|
|
"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": "reason",
|
||
|
|
"type_info": "Text"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"ordinal": 10,
|
||
|
|
"name": "rule_reference",
|
||
|
|
"type_info": "Text"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"ordinal": 11,
|
||
|
|
"name": "evidence",
|
||
|
|
"type_info": "Jsonb"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"ordinal": 12,
|
||
|
|
"name": "duration_hours",
|
||
|
|
"type_info": "Int4"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"ordinal": 13,
|
||
|
|
"name": "decision_type",
|
||
|
|
"type_info": "Text"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"ordinal": 14,
|
||
|
|
"name": "entry_hash",
|
||
|
|
"type_info": "Text"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"ordinal": 15,
|
||
|
|
"name": "created_at",
|
||
|
|
"type_info": "Timestamptz"
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"parameters": {
|
||
|
|
"Left": [
|
||
|
|
"Uuid",
|
||
|
|
"Int8",
|
||
|
|
"Int8"
|
||
|
|
]
|
||
|
|
},
|
||
|
|
"nullable": [
|
||
|
|
false,
|
||
|
|
false,
|
||
|
|
true,
|
||
|
|
false,
|
||
|
|
false,
|
||
|
|
false,
|
||
|
|
null,
|
||
|
|
false,
|
||
|
|
false,
|
||
|
|
false,
|
||
|
|
true,
|
||
|
|
true,
|
||
|
|
true,
|
||
|
|
false,
|
||
|
|
false,
|
||
|
|
false
|
||
|
|
]
|
||
|
|
},
|
||
|
|
"hash": "56be8018a90784cb6868af7bd4a7dff4e1e8ddf09e6d08b97c2e0cc3a6dec0e5"
|
||
|
|
}
|