Made accounts and their transaction accessible to account members only.

This commit is contained in:
2026-10-11 13:28:16 +02:00
parent 21f0c17af9
commit 3faea141dd
34 changed files with 462 additions and 295 deletions
@@ -0,0 +1,89 @@
{
"db_name": "PostgreSQL",
"query": "\n SELECT id, account_id, amount_cents, direction, date, description\n\t\tFROM transactions\n\t\tWHERE account_id IN (SELECT id FROM accessible_accounts($1))\n\t\tAND id = $2\n\t\t",
"describe": {
"columns": [
{
"ordinal": 0,
"name": "id",
"type_info": "Uuid",
"origin": {
"Table": {
"table": "transactions",
"name": "id"
}
}
},
{
"ordinal": 1,
"name": "account_id",
"type_info": "Uuid",
"origin": {
"Table": {
"table": "transactions",
"name": "account_id"
}
}
},
{
"ordinal": 2,
"name": "amount_cents",
"type_info": "Int8",
"origin": {
"Table": {
"table": "transactions",
"name": "amount_cents"
}
}
},
{
"ordinal": 3,
"name": "direction",
"type_info": "Text",
"origin": {
"Table": {
"table": "transactions",
"name": "direction"
}
}
},
{
"ordinal": 4,
"name": "date",
"type_info": "Timestamptz",
"origin": {
"Table": {
"table": "transactions",
"name": "date"
}
}
},
{
"ordinal": 5,
"name": "description",
"type_info": "Text",
"origin": {
"Table": {
"table": "transactions",
"name": "description"
}
}
}
],
"parameters": {
"Left": [
"Uuid",
"Uuid"
]
},
"nullable": [
false,
false,
false,
false,
false,
false
]
},
"hash": "cbb576c1e4d8404059a4ea5972027c2845a7de913052d076744ffde8383fdf86"
}