Skip to content

Schema: consent

Part of the generated database reference.

app_permissions

  • Domain: consent Β· Feature gate: #[cfg(feature = "consent")] Β· Migration: 6.5.87-app-permissions
  • Rust source: botschema/src/consent.rs
Column SQL type Null Default Key References
id UUID no gen_random_uuid() PK β€”
user_id UUID no β€” β€” β€”
org_id UUID yes β€” β€” β€”
branch_id UUID yes β€” β€” β€”
app_id VARCHAR(64) no β€” β€” β€”
action_class VARCHAR(32) no β€” β€” β€”
scope JSONB no '{}'::jsonb β€” β€”
granted BOOLEAN no TRUE β€” β€”
granted_via VARCHAR(16) no 'prompt' β€” β€”
expires_at TIMESTAMPTZ yes β€” β€” β€”
granted_at TIMESTAMPTZ no NOW() β€” β€”
  • Domain: consent Β· Feature gate: #[cfg(feature = "consent")] Β· Migration: 6.5.87-app-permissions
  • Rust source: botschema/src/consent.rs
Column SQL type Null Default Key References
id UUID no gen_random_uuid() PK β€”
permission_id UUID yes β€” β€” β€”
user_id UUID yes β€” β€” β€”
request JSONB no β€” β€” β€”
outcome VARCHAR(24) no β€” β€” β€”
decided_by UUID yes β€” β€” β€”
created_at TIMESTAMPTZ no NOW() β€” β€”