registry: add sqlx checks for user profile reads

This commit is contained in:
a.tolmachev
2026-04-12 21:25:03 +00:00
parent 247440a793
commit 075c1762e2
4 changed files with 166 additions and 17 deletions
@@ -0,0 +1,23 @@
{
"db_name": "PostgreSQL",
"query": "select exists(\n select 1\n from memberships\n where user_id = $1\n and workspace_id = $2\n ) as \"allowed!\"",
"describe": {
"columns": [
{
"ordinal": 0,
"name": "allowed!",
"type_info": "Bool"
}
],
"parameters": {
"Left": [
"Text",
"Text"
]
},
"nullable": [
null
]
},
"hash": "2b819bad2a2712dab1a182b89ec52d762d66cffdc449ee6f73c74c1d23a17314"
}