{
 "tables": [
  {
   "table": "app.account_deletion_requests",
   "privs": "SELECT",
   "rls": true,
   "verdict": "ok",
   "quals": [
    "SELECT:app.is_member(tenant_id)"
   ]
  },
  {
   "table": "app.account_templates",
   "privs": "SELECT",
   "rls": true,
   "verdict": "ALL_ROWS_POLICY",
   "quals": [
    "SELECT:true"
   ]
  },
  {
   "table": "app.accounting_periods",
   "privs": "SELECT",
   "rls": true,
   "verdict": "ok",
   "quals": [
    "SELECT:((tenant_id = app.current_tenant_id()) AND app.is_member(tenant_id))"
   ]
  },
  {
   "table": "app.accounts",
   "privs": "SELECT",
   "rls": true,
   "verdict": "ok",
   "quals": [
    "SELECT:((tenant_id = app.current_tenant_id()) AND app.is_member(tenant_id))"
   ]
  },
  {
   "table": "app.audit_events",
   "privs": "SELECT",
   "rls": true,
   "verdict": "ok",
   "quals": [
    "SELECT:((tenant_id = app.current_tenant_id()) AND app.is_member(tenant_id))"
   ]
  },
  {
   "table": "app.audit_verifications",
   "privs": "SELECT",
   "rls": true,
   "verdict": "ok",
   "quals": [
    "SELECT:app.is_member(tenant_id)"
   ]
  },
  {
   "table": "app.billing_events",
   "privs": "SELECT",
   "rls": true,
   "verdict": "ok",
   "quals": [
    "SELECT:false"
   ]
  },
  {
   "table": "app.blue_return_inputs",
   "privs": "SELECT",
   "rls": true,
   "verdict": "ok",
   "quals": [
    "SELECT:((tenant_id = app.current_tenant_id()) AND app.is_member(tenant_id))"
   ]
  },
  {
   "table": "app.business_profiles",
   "privs": "SELECT",
   "rls": true,
   "verdict": "ok",
   "quals": [
    "SELECT:((tenant_id = app.current_tenant_id()) AND app.is_member(tenant_id))"
   ]
  },
  {
   "table": "app.checkout_attempts",
   "privs": "SELECT",
   "rls": true,
   "verdict": "ok",
   "quals": [
    "SELECT:app.is_member(tenant_id)"
   ]
  },
  {
   "table": "app.counterparties",
   "privs": "SELECT",
   "rls": true,
   "verdict": "ok",
   "quals": [
    "SELECT:((tenant_id = app.current_tenant_id()) AND app.is_member(tenant_id))"
   ]
  },
  {
   "table": "app.cron_runs",
   "privs": "SELECT",
   "rls": true,
   "verdict": "ALL_ROWS_POLICY",
   "quals": [
    "SELECT:true"
   ]
  },
  {
   "table": "app.deletion_residuals",
   "privs": "SELECT",
   "rls": true,
   "verdict": "ok",
   "quals": [
    "SELECT:app.is_member(tenant_id)"
   ]
  },
  {
   "table": "app.document_corrections",
   "privs": "SELECT",
   "rls": true,
   "verdict": "ok",
   "quals": [
    "SELECT:((tenant_id = app.current_tenant_id()) AND app.is_member(tenant_id))"
   ]
  },
  {
   "table": "app.document_journal_links",
   "privs": "SELECT",
   "rls": true,
   "verdict": "ok",
   "quals": [
    "SELECT:((tenant_id = app.current_tenant_id()) AND app.is_member(tenant_id))"
   ]
  },
  {
   "table": "app.document_transaction_links",
   "privs": "SELECT",
   "rls": true,
   "verdict": "ok",
   "quals": [
    "SELECT:((tenant_id = app.current_tenant_id()) AND app.is_member(tenant_id))"
   ]
  },
  {
   "table": "app.document_versions",
   "privs": "SELECT",
   "rls": true,
   "verdict": "ok",
   "quals": [
    "SELECT:((tenant_id = app.current_tenant_id()) AND app.is_member(tenant_id))"
   ]
  },
  {
   "table": "app.documents",
   "privs": "SELECT",
   "rls": true,
   "verdict": "ok",
   "quals": [
    "SELECT:((tenant_id = app.current_tenant_id()) AND app.is_member(tenant_id))"
   ]
  },
  {
   "table": "app.export_jobs",
   "privs": "SELECT",
   "rls": true,
   "verdict": "ok",
   "quals": [
    "SELECT:((tenant_id = app.current_tenant_id()) AND app.is_member(tenant_id))"
   ]
  },
  {
   "table": "app.export_receipts",
   "privs": "SELECT",
   "rls": true,
   "verdict": "ok",
   "quals": [
    "SELECT:app.is_member(tenant_id)"
   ]
  },
  {
   "table": "app.fiscal_year_events",
   "privs": "SELECT",
   "rls": true,
   "verdict": "ok",
   "quals": [
    "SELECT:((tenant_id = app.current_tenant_id()) AND app.is_member(tenant_id))"
   ]
  },
  {
   "table": "app.fiscal_years",
   "privs": "SELECT",
   "rls": true,
   "verdict": "ok",
   "quals": [
    "SELECT:((tenant_id = app.current_tenant_id()) AND app.is_member(tenant_id))"
   ]
  },
  {
   "table": "app.fixed_asset_years",
   "privs": "SELECT",
   "rls": true,
   "verdict": "ok",
   "quals": [
    "SELECT:((tenant_id = app.current_tenant_id()) AND app.is_member(tenant_id))"
   ]
  },
  {
   "table": "app.fixed_assets",
   "privs": "SELECT",
   "rls": true,
   "verdict": "ok",
   "quals": [
    "SELECT:((tenant_id = app.current_tenant_id()) AND app.is_member(tenant_id))"
   ]
  },
  {
   "table": "app.idempotency_keys",
   "privs": "SELECT",
   "rls": true,
   "verdict": "ok",
   "quals": [
    "SELECT:((tenant_id = app.current_tenant_id()) AND app.is_member(tenant_id))"
   ]
  },
  {
   "table": "app.import_skips",
   "privs": "SELECT",
   "rls": true,
   "verdict": "ok",
   "quals": [
    "SELECT:((tenant_id = app.current_tenant_id()) AND app.is_member(tenant_id))"
   ]
  },
  {
   "table": "app.investigation_shares",
   "privs": "SELECT",
   "rls": true,
   "verdict": "ok",
   "quals": [
    "SELECT:((tenant_id = app.current_tenant_id()) AND app.is_member(tenant_id))"
   ]
  },
  {
   "table": "app.invoice_attempts",
   "privs": "SELECT",
   "rls": true,
   "verdict": "ok",
   "quals": [
    "SELECT:((tenant_id = app.current_tenant_id()) AND app.is_member(tenant_id))"
   ]
  },
  {
   "table": "app.invoice_events",
   "privs": "SELECT",
   "rls": true,
   "verdict": "ok",
   "quals": [
    "SELECT:((tenant_id = app.current_tenant_id()) AND app.is_member(tenant_id))"
   ]
  },
  {
   "table": "app.invoice_journal_links",
   "privs": "SELECT",
   "rls": true,
   "verdict": "ok",
   "quals": [
    "SELECT:((tenant_id = app.current_tenant_id()) AND app.is_member(tenant_id))"
   ]
  },
  {
   "table": "app.invoice_lines",
   "privs": "SELECT",
   "rls": true,
   "verdict": "ok",
   "quals": [
    "SELECT:((tenant_id = app.current_tenant_id()) AND app.is_member(tenant_id))"
   ]
  },
  {
   "table": "app.invoice_number_series",
   "privs": "SELECT",
   "rls": true,
   "verdict": "ok",
   "quals": [
    "SELECT:((tenant_id = app.current_tenant_id()) AND app.is_member(tenant_id))"
   ]
  },
  {
   "table": "app.invoice_record_seals",
   "privs": "SELECT",
   "rls": true,
   "verdict": "ok",
   "quals": [
    "SELECT:((tenant_id = app.current_tenant_id()) AND app.is_member(tenant_id))"
   ]
  },
  {
   "table": "app.invoices",
   "privs": "SELECT",
   "rls": true,
   "verdict": "ok",
   "quals": [
    "SELECT:((tenant_id = app.current_tenant_id()) AND app.is_member(tenant_id))"
   ]
  },
  {
   "table": "app.journal_draft_lines",
   "privs": "SELECT",
   "rls": true,
   "verdict": "ok",
   "quals": [
    "SELECT:((tenant_id = app.current_tenant_id()) AND app.is_member(tenant_id))"
   ]
  },
  {
   "table": "app.journal_drafts",
   "privs": "SELECT",
   "rls": true,
   "verdict": "ok",
   "quals": [
    "SELECT:((tenant_id = app.current_tenant_id()) AND app.is_member(tenant_id))"
   ]
  },
  {
   "table": "app.journal_entries",
   "privs": "SELECT",
   "rls": true,
   "verdict": "ok",
   "quals": [
    "SELECT:((tenant_id = app.current_tenant_id()) AND app.is_member(tenant_id))"
   ]
  },
  {
   "table": "app.journal_entry_lines",
   "privs": "SELECT",
   "rls": true,
   "verdict": "ok",
   "quals": [
    "SELECT:((tenant_id = app.current_tenant_id()) AND app.is_member(tenant_id))"
   ]
  },
  {
   "table": "app.journal_relations",
   "privs": "SELECT",
   "rls": true,
   "verdict": "ok",
   "quals": [
    "SELECT:((tenant_id = app.current_tenant_id()) AND app.is_member(tenant_id))"
   ]
  },
  {
   "table": "app.ocr_usage",
   "privs": "SELECT",
   "rls": true,
   "verdict": "ok",
   "quals": [
    "SELECT:((tenant_id = app.current_tenant_id()) AND app.is_member(tenant_id))"
   ]
  },
  {
   "table": "app.operation_policies",
   "privs": "SELECT",
   "rls": true,
   "verdict": "ok",
   "quals": [
    "SELECT:((tenant_id = app.current_tenant_id()) AND app.is_member(tenant_id))"
   ]
  },
  {
   "table": "app.retention_policies",
   "privs": "SELECT",
   "rls": true,
   "verdict": "ok",
   "quals": [
    "SELECT:((tenant_id = app.current_tenant_id()) AND app.is_member(tenant_id))"
   ]
  },
  {
   "table": "app.seals",
   "privs": "SELECT",
   "rls": true,
   "verdict": "ok",
   "quals": [
    "SELECT:((tenant_id = app.current_tenant_id()) AND app.is_member(tenant_id))"
   ]
  },
  {
   "table": "app.storage_settings",
   "privs": "SELECT",
   "rls": true,
   "verdict": "ok",
   "quals": [
    "SELECT:((tenant_id = app.current_tenant_id()) AND app.is_member(tenant_id))"
   ]
  },
  {
   "table": "app.subscriptions",
   "privs": "SELECT",
   "rls": true,
   "verdict": "ok",
   "quals": [
    "SELECT:app.is_member(tenant_id)"
   ]
  },
  {
   "table": "app.system_versions",
   "privs": "SELECT",
   "rls": true,
   "verdict": "ALL_ROWS_POLICY",
   "quals": [
    "SELECT:true"
   ]
  },
  {
   "table": "app.tax_profiles",
   "privs": "SELECT",
   "rls": true,
   "verdict": "ok",
   "quals": [
    "SELECT:app.is_member(tenant_id)"
   ]
  },
  {
   "table": "app.tax_return_profiles",
   "privs": "SELECT",
   "rls": true,
   "verdict": "ok",
   "quals": [
    "SELECT:((tenant_id = app.current_tenant_id()) AND app.is_member(tenant_id))"
   ]
  },
  {
   "table": "app.tenant_lifecycle",
   "privs": "SELECT",
   "rls": true,
   "verdict": "ok",
   "quals": [
    "SELECT:app.is_member(tenant_id)"
   ]
  },
  {
   "table": "app.tenant_lifecycle_events",
   "privs": "SELECT",
   "rls": true,
   "verdict": "ok",
   "quals": [
    "SELECT:app.is_member(tenant_id)"
   ]
  },
  {
   "table": "app.tenant_members",
   "privs": "SELECT",
   "rls": true,
   "verdict": "ok",
   "quals": [
    "SELECT:(user_id = app.current_user_id())"
   ]
  },
  {
   "table": "app.tenants",
   "privs": "SELECT",
   "rls": true,
   "verdict": "ok",
   "quals": [
    "SELECT:app.is_member(id)"
   ]
  },
  {
   "table": "app.transaction_allocations",
   "privs": "SELECT",
   "rls": true,
   "verdict": "ok",
   "quals": [
    "SELECT:((tenant_id = app.current_tenant_id()) AND app.is_member(tenant_id))"
   ]
  },
  {
   "table": "app.transaction_journal_links",
   "privs": "SELECT",
   "rls": true,
   "verdict": "ok",
   "quals": [
    "SELECT:((tenant_id = app.current_tenant_id()) AND app.is_member(tenant_id))"
   ]
  },
  {
   "table": "app.transactions",
   "privs": "SELECT",
   "rls": true,
   "verdict": "ok",
   "quals": [
    "SELECT:((tenant_id = app.current_tenant_id()) AND app.is_member(tenant_id))"
   ]
  },
  {
   "table": "public.schema_migrations",
   "privs": "SELECT",
   "rls": false,
   "verdict": "NO_RLS",
   "quals": []
  }
 ],
 "publicFns": [],
 "rpcFuzz": [
  {
   "fn": "app.acknowledge_deletion_residuals",
   "secdef": true,
   "args": "uuid",
   "outcome": "guarded",
   "msg": "not_a_member"
  },
  {
   "fn": "app.add_document_version",
   "secdef": true,
   "args": "uuid,uuid,jsonb,text,date",
   "outcome": "guarded",
   "msg": "not_a_member"
  },
  {
   "fn": "app.archive_seal",
   "secdef": true,
   "args": "uuid,uuid",
   "outcome": "guarded",
   "msg": "not_a_member"
  },
  {
   "fn": "app.assert_asset_year_unrecorded",
   "secdef": true,
   "args": "uuid,uuid,uuid",
   "outcome": "guarded",
   "msg": "not_a_member"
  },
  {
   "fn": "app.assert_invoice_journal_unlinked",
   "secdef": true,
   "args": "uuid,uuid",
   "outcome": "guarded",
   "msg": "not_a_member"
  },
  {
   "fn": "app.assert_member_or_system",
   "secdef": false,
   "args": "uuid",
   "outcome": "guarded",
   "msg": "permission denied for function assert_member"
  },
  {
   "fn": "app.assert_writable",
   "secdef": false,
   "args": "uuid",
   "outcome": "SUCCEEDED",
   "rows": 1,
   "sample": "{\"assert_writable\":\"\"}"
  },
  {
   "fn": "app.attach_record_seal",
   "secdef": true,
   "args": "uuid,uuid,uuid,timestamp with time zone,text,uuid,boolean",
   "outcome": "guarded",
   "msg": "not_a_member"
  },
  {
   "fn": "app.audit_day_summary",
   "secdef": true,
   "args": "uuid,date",
   "outcome": "guarded",
   "msg": "not_a_member"
  },
  {
   "fn": "app.build_retention_policies",
   "secdef": true,
   "args": "uuid,uuid,date",
   "outcome": "guarded",
   "msg": "not_a_member"
  },
  {
   "fn": "app.cancel_account_deletion",
   "secdef": true,
   "args": "uuid,uuid",
   "outcome": "guarded",
   "msg": "not_a_member"
  },
  {
   "fn": "app.cancel_invoice",
   "secdef": true,
   "args": "uuid,uuid,text",
   "outcome": "guarded",
   "msg": "not_a_member"
  },
  {
   "fn": "app.close_year",
   "secdef": true,
   "args": "uuid,uuid,boolean",
   "outcome": "guarded",
   "msg": "not_a_member"
  },
  {
   "fn": "app.close_year_check",
   "secdef": true,
   "args": "uuid,uuid",
   "outcome": "guarded",
   "msg": "not_a_member"
  },
  {
   "fn": "app.confirm_transaction",
   "secdef": true,
   "args": "uuid,uuid,text,jsonb,jsonb",
   "outcome": "guarded",
   "msg": "not_a_member"
  },
  {
   "fn": "app.consume_ocr_quota",
   "secdef": true,
   "args": "uuid,integer",
   "outcome": "guarded",
   "msg": "not_a_member"
  },
  {
   "fn": "app.consumption_tax_rows",
   "secdef": true,
   "args": "uuid,uuid",
   "outcome": "SUCCEEDED",
   "rows": 0,
   "sample": "null"
  },
  {
   "fn": "app.correct_document_meta",
   "secdef": true,
   "args": "uuid,uuid,jsonb,text,date",
   "outcome": "guarded",
   "msg": "not_a_member"
  },
  {
   "fn": "app.correct_entry",
   "secdef": true,
   "args": "uuid,uuid,text,jsonb,jsonb",
   "outcome": "guarded",
   "msg": "not_a_member"
  },
  {
   "fn": "app.correct_transaction",
   "secdef": true,
   "args": "uuid,uuid,text,jsonb,text,jsonb,jsonb",
   "outcome": "guarded",
   "msg": "not_a_member"
  },
  {
   "fn": "app.create_account",
   "secdef": true,
   "args": "uuid,text,text,text,text,text",
   "outcome": "guarded",
   "msg": "not_a_member"
  },
  {
   "fn": "app.create_fiscal_year",
   "secdef": true,
   "args": "uuid,integer",
   "outcome": "guarded",
   "msg": "not_a_member"
  },
  {
   "fn": "app.create_investigation_share",
   "secdef": true,
   "args": "uuid,jsonb",
   "outcome": "guarded",
   "msg": "not_a_member"
  },
  {
   "fn": "app.create_policy",
   "secdef": true,
   "args": "uuid,jsonb,text,date",
   "outcome": "guarded",
   "msg": "not_a_member"
  },
  {
   "fn": "app.create_transaction",
   "secdef": true,
   "args": "uuid,jsonb",
   "outcome": "guarded",
   "msg": "not_a_member"
  },
  {
   "fn": "app.delete_draft",
   "secdef": true,
   "args": "uuid,uuid",
   "outcome": "guarded",
   "msg": "not_a_member"
  },
  {
   "fn": "app.finalize_invoice",
   "secdef": true,
   "args": "uuid,jsonb,jsonb,jsonb",
   "outcome": "guarded",
   "msg": "not_a_member"
  },
  {
   "fn": "app.forget_import_skip",
   "secdef": true,
   "args": "uuid,text",
   "outcome": "guarded",
   "msg": "not_a_member"
  },
  {
   "fn": "app.idem_claim",
   "secdef": true,
   "args": "uuid,text,text",
   "outcome": "guarded",
   "msg": "not_a_member"
  },
  {
   "fn": "app.idem_store",
   "secdef": true,
   "args": "uuid,text,integer,jsonb",
   "outcome": "guarded",
   "msg": "not_a_member"
  },
  {
   "fn": "app.import_transactions",
   "secdef": true,
   "args": "uuid,jsonb",
   "outcome": "guarded",
   "msg": "not_a_member"
  },
  {
   "fn": "app.invoice_attempt",
   "secdef": true,
   "args": "uuid,uuid,text,text,text,text,text",
   "outcome": "guarded",
   "msg": "not_a_member"
  },
  {
   "fn": "app.invoice_check_targets",
   "secdef": true,
   "args": "uuid",
   "outcome": "guarded",
   "msg": "not_a_member"
  },
  {
   "fn": "app.is_member",
   "secdef": true,
   "args": "uuid",
   "outcome": "SUCCEEDED",
   "rows": 1,
   "sample": "{\"is_member\":false}"
  },
  {
   "fn": "app.is_writable",
   "secdef": true,
   "args": "uuid",
   "outcome": "SUCCEEDED",
   "rows": 1,
   "sample": "{\"is_writable\":true}"
  },
  {
   "fn": "app.lifecycle_status",
   "secdef": true,
   "args": "uuid",
   "outcome": "guarded",
   "msg": "not_a_member"
  },
  {
   "fn": "app.link_document",
   "secdef": true,
   "args": "uuid,uuid,text,uuid",
   "outcome": "guarded",
   "msg": "not_a_member"
  },
  {
   "fn": "app.link_invoice_journal",
   "secdef": true,
   "args": "uuid,uuid,uuid",
   "outcome": "guarded",
   "msg": "not_a_member"
  },
  {
   "fn": "app.mark_invoice_issued",
   "secdef": true,
   "args": "uuid,uuid,date,text",
   "outcome": "guarded",
   "msg": "not_a_member"
  },
  {
   "fn": "app.mark_invoice_paid",
   "secdef": true,
   "args": "uuid,uuid,date",
   "outcome": "guarded",
   "msg": "not_a_member"
  },
  {
   "fn": "app.next_document_number",
   "secdef": true,
   "args": "uuid,integer,text",
   "outcome": "guarded",
   "msg": "not_a_member"
  },
  {
   "fn": "app.next_invoice_number",
   "secdef": true,
   "args": "uuid,integer",
   "outcome": "guarded",
   "msg": "not_a_member"
  },
  {
   "fn": "app.ocr_used_today",
   "secdef": true,
   "args": "uuid",
   "outcome": "guarded",
   "msg": "not_a_member"
  },
  {
   "fn": "app.open_checkout_attempts",
   "secdef": true,
   "args": "uuid",
   "outcome": "guarded",
   "msg": "not_a_member"
  },
  {
   "fn": "app.post_draft",
   "secdef": true,
   "args": "uuid,uuid",
   "outcome": "guarded",
   "msg": "not_a_member"
  },
  {
   "fn": "app.post_manual",
   "secdef": true,
   "args": "uuid,uuid,jsonb,jsonb",
   "outcome": "guarded",
   "msg": "not_a_member"
  },
  {
   "fn": "app.record_asset_year",
   "secdef": true,
   "args": "uuid,uuid,uuid,bigint,bigint,bigint,integer",
   "outcome": "guarded",
   "msg": "not_a_member"
  },
  {
   "fn": "app.record_checkout_attempt",
   "secdef": true,
   "args": "uuid,text",
   "outcome": "guarded",
   "msg": "not_a_member"
  },
  {
   "fn": "app.record_export",
   "secdef": true,
   "args": "uuid,text,uuid,jsonb,text,text,bigint",
   "outcome": "guarded",
   "msg": "not_a_member"
  },
  {
   "fn": "app.record_export_receipt",
   "secdef": true,
   "args": "uuid,text,text,integer,bigint,text",
   "outcome": "guarded",
   "msg": "not_a_member"
  },
  {
   "fn": "app.record_invoice_check",
   "secdef": true,
   "args": "uuid,uuid,text,jsonb,timestamp with time zone",
   "outcome": "guarded",
   "msg": "not_a_member"
  },
  {
   "fn": "app.record_invoice_event",
   "secdef": true,
   "args": "uuid,uuid,text,jsonb",
   "outcome": "guarded",
   "msg": "not_a_member"
  },
  {
   "fn": "app.record_notification",
   "secdef": true,
   "args": "uuid,text,text,boolean",
   "outcome": "guarded",
   "msg": "not_a_member"
  },
  {
   "fn": "app.register_document",
   "secdef": true,
   "args": "uuid,jsonb,jsonb",
   "outcome": "guarded",
   "msg": "not_a_member"
  },
  {
   "fn": "app.remember_import_skip",
   "secdef": true,
   "args": "uuid,text,text",
   "outcome": "guarded",
   "msg": "not_a_member"
  },
  {
   "fn": "app.reopen_year",
   "secdef": true,
   "args": "uuid,uuid,text",
   "outcome": "guarded",
   "msg": "not_a_member"
  },
  {
   "fn": "app.request_account_deletion",
   "secdef": true,
   "args": "uuid,uuid",
   "outcome": "guarded",
   "msg": "not_a_member"
  },
  {
   "fn": "app.request_plan_change",
   "secdef": true,
   "args": "uuid,text",
   "outcome": "guarded",
   "msg": "not_a_member"
  },
  {
   "fn": "app.resolve_checkout_attempts",
   "secdef": true,
   "args": "uuid",
   "outcome": "guarded",
   "msg": "not_a_member"
  },
  {
   "fn": "app.reverse_entry",
   "secdef": true,
   "args": "uuid,uuid,text",
   "outcome": "guarded",
   "msg": "not_a_member"
  },
  {
   "fn": "app.revoke_investigation_share",
   "secdef": true,
   "args": "uuid,uuid",
   "outcome": "guarded",
   "msg": "not_a_member"
  },
  {
   "fn": "app.save_draft",
   "secdef": true,
   "args": "uuid,uuid,jsonb",
   "outcome": "guarded",
   "msg": "not_a_member"
  },
  {
   "fn": "app.save_fixed_asset",
   "secdef": true,
   "args": "uuid,uuid,jsonb",
   "outcome": "guarded",
   "msg": "not_a_member"
  },
  {
   "fn": "app.save_storage_settings",
   "secdef": true,
   "args": "uuid,jsonb",
   "outcome": "guarded",
   "msg": "not_a_member"
  },
  {
   "fn": "app.set_account_archived",
   "secdef": true,
   "args": "uuid,uuid,boolean",
   "outcome": "guarded",
   "msg": "not_a_member"
  },
  {
   "fn": "app.set_default_seal",
   "secdef": true,
   "args": "uuid,uuid",
   "outcome": "guarded",
   "msg": "not_a_member"
  },
  {
   "fn": "app.storage_settings_for",
   "secdef": false,
   "args": "uuid",
   "outcome": "SUCCEEDED",
   "rows": 1,
   "sample": "{\"compress_images\":true,\"max_edge_px\":2400,\"jpeg_quality\":85,\"storage_limit_bytes\":\"2147483648\"}"
  },
  {
   "fn": "app.storage_usage",
   "secdef": false,
   "args": "uuid",
   "outcome": "SUCCEEDED",
   "rows": 1,
   "sample": "{\"document_bytes\":\"0\",\"document_count\":\"0\",\"export_bytes\":\"0\",\"export_count\":\"0\",\"total_bytes\":\"0\",\"limit_bytes\":\"214748"
  },
  {
   "fn": "app.unlink_document",
   "secdef": true,
   "args": "uuid,uuid,text,uuid,text",
   "outcome": "guarded",
   "msg": "not_a_member"
  },
  {
   "fn": "app.unlink_invoice_journal",
   "secdef": true,
   "args": "uuid,uuid,uuid,text",
   "outcome": "guarded",
   "msg": "not_a_member"
  },
  {
   "fn": "app.update_account",
   "secdef": true,
   "args": "uuid,uuid,jsonb",
   "outcome": "guarded",
   "msg": "not_a_member"
  },
  {
   "fn": "app.update_counterparty",
   "secdef": true,
   "args": "uuid,uuid,jsonb",
   "outcome": "guarded",
   "msg": "not_a_member"
  },
  {
   "fn": "app.update_tenant_settings",
   "secdef": true,
   "args": "uuid,jsonb",
   "outcome": "guarded",
   "msg": "not_a_member"
  },
  {
   "fn": "app.update_transaction",
   "secdef": true,
   "args": "uuid,uuid,jsonb",
   "outcome": "guarded",
   "msg": "not_a_member"
  },
  {
   "fn": "app.upsert_blue_return_breakdowns",
   "secdef": true,
   "args": "uuid,uuid,jsonb",
   "outcome": "guarded",
   "msg": "not_a_member"
  },
  {
   "fn": "app.upsert_blue_return_inputs",
   "secdef": true,
   "args": "uuid,uuid,jsonb",
   "outcome": "guarded",
   "msg": "not_a_member"
  },
  {
   "fn": "app.upsert_business_profile",
   "secdef": true,
   "args": "uuid,jsonb",
   "outcome": "guarded",
   "msg": "not_a_member"
  },
  {
   "fn": "app.upsert_counterparty",
   "secdef": true,
   "args": "uuid,text",
   "outcome": "guarded",
   "msg": "not_a_member"
  },
  {
   "fn": "app.upsert_seal",
   "secdef": true,
   "args": "uuid,jsonb",
   "outcome": "guarded",
   "msg": "not_a_member"
  },
  {
   "fn": "app.upsert_tax_profile",
   "secdef": true,
   "args": "uuid,uuid,jsonb",
   "outcome": "guarded",
   "msg": "not_a_member"
  },
  {
   "fn": "app.upsert_tax_return_profile",
   "secdef": true,
   "args": "uuid,uuid,jsonb",
   "outcome": "guarded",
   "msg": "not_a_member"
  },
  {
   "fn": "app.verify_and_record_audit_chain",
   "secdef": true,
   "args": "uuid",
   "outcome": "guarded",
   "msg": "not_a_member"
  },
  {
   "fn": "app.verify_audit_chain",
   "secdef": true,
   "args": "uuid",
   "outcome": "guarded",
   "msg": "not_a_member"
  },
  {
   "fn": "app.verify_invoice_chain",
   "secdef": true,
   "args": "uuid,uuid",
   "outcome": "guarded",
   "msg": "not_a_member"
  },
  {
   "fn": "app.void_document",
   "secdef": true,
   "args": "uuid,uuid,text,date",
   "outcome": "guarded",
   "msg": "not_a_member"
  },
  {
   "fn": "app.void_transaction",
   "secdef": true,
   "args": "uuid,uuid,text",
   "outcome": "guarded",
   "msg": "not_a_member"
  }
 ],
 "countProbe": [
  {
   "table": "app.account_deletion_requests",
   "ownRowsAsB": 0,
   "seenByA_withBHeader": 0,
   "seenByA_filteredB": 0,
   "verdict": "ok"
  },
  {
   "table": "app.accounting_periods",
   "ownRowsAsB": 12,
   "seenByA_withBHeader": 0,
   "seenByA_filteredB": 0,
   "verdict": "ok"
  },
  {
   "table": "app.accounts",
   "ownRowsAsB": 48,
   "seenByA_withBHeader": 0,
   "seenByA_filteredB": 0,
   "verdict": "ok"
  },
  {
   "table": "app.audit_events",
   "ownRowsAsB": 2,
   "seenByA_withBHeader": 0,
   "seenByA_filteredB": 0,
   "verdict": "ok"
  },
  {
   "table": "app.audit_verifications",
   "ownRowsAsB": 0,
   "seenByA_withBHeader": 0,
   "seenByA_filteredB": 0,
   "verdict": "ok"
  },
  {
   "table": "app.billing_events",
   "ownRowsAsB": 0,
   "seenByA_withBHeader": 0,
   "seenByA_filteredB": 0,
   "verdict": "ok"
  },
  {
   "table": "app.blue_return_inputs",
   "ownRowsAsB": 0,
   "seenByA_withBHeader": 0,
   "seenByA_filteredB": 0,
   "verdict": "ok"
  },
  {
   "table": "app.business_profiles",
   "ownRowsAsB": 0,
   "seenByA_withBHeader": 0,
   "seenByA_filteredB": 0,
   "verdict": "ok"
  },
  {
   "table": "app.checkout_attempts",
   "ownRowsAsB": 0,
   "seenByA_withBHeader": 0,
   "seenByA_filteredB": 0,
   "verdict": "ok"
  },
  {
   "table": "app.counterparties",
   "ownRowsAsB": 0,
   "seenByA_withBHeader": 0,
   "seenByA_filteredB": 0,
   "verdict": "ok"
  },
  {
   "table": "app.deletion_receipts",
   "ownRowsAsB": "err:42501",
   "seenByA_withBHeader": "err:42501",
   "seenByA_filteredB": "err:42501",
   "verdict": "ok"
  },
  {
   "table": "app.deletion_residuals",
   "ownRowsAsB": 0,
   "seenByA_withBHeader": 0,
   "seenByA_filteredB": 0,
   "verdict": "ok"
  },
  {
   "table": "app.document_corrections",
   "ownRowsAsB": 0,
   "seenByA_withBHeader": 0,
   "seenByA_filteredB": 0,
   "verdict": "ok"
  },
  {
   "table": "app.document_journal_links",
   "ownRowsAsB": 0,
   "seenByA_withBHeader": 0,
   "seenByA_filteredB": 0,
   "verdict": "ok"
  },
  {
   "table": "app.document_transaction_links",
   "ownRowsAsB": 0,
   "seenByA_withBHeader": 0,
   "seenByA_filteredB": 0,
   "verdict": "ok"
  },
  {
   "table": "app.document_versions",
   "ownRowsAsB": 0,
   "seenByA_withBHeader": 0,
   "seenByA_filteredB": 0,
   "verdict": "ok"
  },
  {
   "table": "app.documents",
   "ownRowsAsB": 0,
   "seenByA_withBHeader": 0,
   "seenByA_filteredB": 0,
   "verdict": "ok"
  },
  {
   "table": "app.export_jobs",
   "ownRowsAsB": 0,
   "seenByA_withBHeader": 0,
   "seenByA_filteredB": 0,
   "verdict": "ok"
  },
  {
   "table": "app.export_receipts",
   "ownRowsAsB": 0,
   "seenByA_withBHeader": 0,
   "seenByA_filteredB": 0,
   "verdict": "ok"
  },
  {
   "table": "app.fiscal_year_events",
   "ownRowsAsB": 1,
   "seenByA_withBHeader": 0,
   "seenByA_filteredB": 0,
   "verdict": "ok"
  },
  {
   "table": "app.fiscal_years",
   "ownRowsAsB": 1,
   "seenByA_withBHeader": 0,
   "seenByA_filteredB": 0,
   "verdict": "ok"
  },
  {
   "table": "app.fixed_asset_years",
   "ownRowsAsB": 0,
   "seenByA_withBHeader": 0,
   "seenByA_filteredB": 0,
   "verdict": "ok"
  },
  {
   "table": "app.fixed_assets",
   "ownRowsAsB": 0,
   "seenByA_withBHeader": 0,
   "seenByA_filteredB": 0,
   "verdict": "ok"
  },
  {
   "table": "app.idempotency_keys",
   "ownRowsAsB": 0,
   "seenByA_withBHeader": 0,
   "seenByA_filteredB": 0,
   "verdict": "ok"
  },
  {
   "table": "app.import_skips",
   "ownRowsAsB": 0,
   "seenByA_withBHeader": 0,
   "seenByA_filteredB": 0,
   "verdict": "ok"
  },
  {
   "table": "app.investigation_shares",
   "ownRowsAsB": 0,
   "seenByA_withBHeader": 0,
   "seenByA_filteredB": 0,
   "verdict": "ok"
  },
  {
   "table": "app.invoice_attempts",
   "ownRowsAsB": 0,
   "seenByA_withBHeader": 0,
   "seenByA_filteredB": 0,
   "verdict": "ok"
  },
  {
   "table": "app.invoice_events",
   "ownRowsAsB": 0,
   "seenByA_withBHeader": 0,
   "seenByA_filteredB": 0,
   "verdict": "ok"
  },
  {
   "table": "app.invoice_journal_links",
   "ownRowsAsB": 0,
   "seenByA_withBHeader": 0,
   "seenByA_filteredB": 0,
   "verdict": "ok"
  },
  {
   "table": "app.invoice_lines",
   "ownRowsAsB": 0,
   "seenByA_withBHeader": 0,
   "seenByA_filteredB": 0,
   "verdict": "ok"
  },
  {
   "table": "app.invoice_number_series",
   "ownRowsAsB": 0,
   "seenByA_withBHeader": 0,
   "seenByA_filteredB": 0,
   "verdict": "ok"
  },
  {
   "table": "app.invoice_record_seals",
   "ownRowsAsB": 0,
   "seenByA_withBHeader": 0,
   "seenByA_filteredB": 0,
   "verdict": "ok"
  },
  {
   "table": "app.invoices",
   "ownRowsAsB": 0,
   "seenByA_withBHeader": 0,
   "seenByA_filteredB": 0,
   "verdict": "ok"
  },
  {
   "table": "app.journal_draft_lines",
   "ownRowsAsB": 0,
   "seenByA_withBHeader": 0,
   "seenByA_filteredB": 0,
   "verdict": "ok"
  },
  {
   "table": "app.journal_drafts",
   "ownRowsAsB": 0,
   "seenByA_withBHeader": 0,
   "seenByA_filteredB": 0,
   "verdict": "ok"
  },
  {
   "table": "app.journal_entries",
   "ownRowsAsB": 0,
   "seenByA_withBHeader": 0,
   "seenByA_filteredB": 0,
   "verdict": "ok"
  },
  {
   "table": "app.journal_entry_lines",
   "ownRowsAsB": 0,
   "seenByA_withBHeader": 0,
   "seenByA_filteredB": 0,
   "verdict": "ok"
  },
  {
   "table": "app.journal_relations",
   "ownRowsAsB": 0,
   "seenByA_withBHeader": 0,
   "seenByA_filteredB": 0,
   "verdict": "ok"
  },
  {
   "table": "app.notifications",
   "ownRowsAsB": "err:42501",
   "seenByA_withBHeader": "err:42501",
   "seenByA_filteredB": "err:42501",
   "verdict": "ok"
  },
  {
   "table": "app.ocr_usage",
   "ownRowsAsB": 0,
   "seenByA_withBHeader": 0,
   "seenByA_filteredB": 0,
   "verdict": "ok"
  },
  {
   "table": "app.operation_policies",
   "ownRowsAsB": 0,
   "seenByA_withBHeader": 0,
   "seenByA_filteredB": 0,
   "verdict": "ok"
  },
  {
   "table": "app.retention_policies",
   "ownRowsAsB": 0,
   "seenByA_withBHeader": 0,
   "seenByA_filteredB": 0,
   "verdict": "ok"
  },
  {
   "table": "app.seals",
   "ownRowsAsB": 0,
   "seenByA_withBHeader": 0,
   "seenByA_filteredB": 0,
   "verdict": "ok"
  },
  {
   "table": "app.storage_settings",
   "ownRowsAsB": 0,
   "seenByA_withBHeader": 0,
   "seenByA_filteredB": 0,
   "verdict": "ok"
  },
  {
   "table": "app.subscriptions",
   "ownRowsAsB": 0,
   "seenByA_withBHeader": 0,
   "seenByA_filteredB": 0,
   "verdict": "ok"
  },
  {
   "table": "app.tax_profiles",
   "ownRowsAsB": 0,
   "seenByA_withBHeader": 0,
   "seenByA_filteredB": 0,
   "verdict": "ok"
  },
  {
   "table": "app.tax_return_profiles",
   "ownRowsAsB": 0,
   "seenByA_withBHeader": 0,
   "seenByA_filteredB": 0,
   "verdict": "ok"
  },
  {
   "table": "app.tenant_lifecycle",
   "ownRowsAsB": 1,
   "seenByA_withBHeader": 1,
   "seenByA_filteredB": 0,
   "verdict": "LEAK"
  },
  {
   "table": "app.tenant_lifecycle_events",
   "ownRowsAsB": 0,
   "seenByA_withBHeader": 0,
   "seenByA_filteredB": 0,
   "verdict": "ok"
  },
  {
   "table": "app.tenant_members",
   "ownRowsAsB": 1,
   "seenByA_withBHeader": 1,
   "seenByA_filteredB": 0,
   "verdict": "LEAK"
  },
  {
   "table": "app.transaction_allocations",
   "ownRowsAsB": 0,
   "seenByA_withBHeader": 0,
   "seenByA_filteredB": 0,
   "verdict": "ok"
  },
  {
   "table": "app.transaction_journal_links",
   "ownRowsAsB": 0,
   "seenByA_withBHeader": 0,
   "seenByA_filteredB": 0,
   "verdict": "ok"
  },
  {
   "table": "app.transactions",
   "ownRowsAsB": 0,
   "seenByA_withBHeader": 0,
   "seenByA_filteredB": 0,
   "verdict": "ok"
  }
 ],
 "roles": [
  "anon",
  "authenticated",
  "service_role",
  "choubo_app"
 ],
 "schemaPrivs": {
  "anon:app": false,
  "anon:app_auth": false,
  "anon:app_secure": false,
  "anon:public": true,
  "authenticated:app": false,
  "authenticated:app_auth": false,
  "authenticated:app_secure": false,
  "authenticated:public": true,
  "service_role:app": false,
  "service_role:app_auth": false,
  "service_role:app_secure": false,
  "service_role:public": true,
  "choubo_app:app": true,
  "choubo_app:app_auth": true,
  "choubo_app:app_secure": false,
  "choubo_app:public": true
 }
}
