Skip to content

Schema: compliance (part 2)

Part of the generated database reference.

  • Domain: compliance Β· Feature gate: #[cfg(feature = "compliance")] Β· Migration: 6.5.23-branch-scope-cleanup
  • Rust source: botschema/src/compliance.rs
Column SQL type Null Default Key References
id UUID no gen_random_uuid() PK β€”
org_id UUID no β€” FK organizations.org_id
bot_id UUID no β€” β€” β€”
slug VARCHAR(255) no β€” β€” β€”
title VARCHAR(255) no β€” β€” β€”
content TEXT no β€” β€” β€”
document_type VARCHAR(255) no β€” β€” β€”
version VARCHAR(255) no '1.0.0' β€” β€”
effective_date TIMESTAMPTZ no NOW() β€” β€”
is_active BOOLEAN no TRUE β€” β€”
requires_acceptance BOOLEAN no FALSE β€” β€”
metadata JSONB no '{}' β€” β€”
created_by UUID yes β€” β€” β€”
created_at TIMESTAMPTZ no NOW() β€” β€”
updated_at TIMESTAMPTZ no NOW() β€” β€”
branch_id UUID yes β€” FK branches.id