Schema: integrations
Part of the generated database reference.
bank_transactions
- Domain:
integrations Β· Feature gate: #[cfg(feature = "integrations")] Β· Migration: 6.5.23-branch-scope-cleanup
- Rust source:
botschema/src/integrations.rs
| Column |
SQL type |
Null |
Default |
Key |
References |
| id |
UUID |
no |
gen_random_uuid() |
PK |
β |
| bot_id |
UUID |
no |
β |
β |
β |
| bank |
VARCHAR(100) |
yes |
β |
β |
β |
| account |
VARCHAR(50) |
yes |
β |
β |
β |
| transaction_date |
DATE |
no |
β |
β |
β |
| description |
TEXT |
no |
β |
β |
β |
| amount |
NUMERIC(12,2) |
no |
β |
β |
β |
| balance |
NUMERIC(12,2) |
yes |
β |
β |
β |
| category |
VARCHAR(100) |
yes |
β |
β |
β |
| reconciled |
BOOLEAN |
no |
false |
β |
β |
| reconciled_at |
TIMESTAMPTZ |
yes |
β |
β |
β |
| matched_delivery_id |
UUID |
yes |
β |
FK |
delivery_transactions.id |
| created_at |
TIMESTAMPTZ |
no |
NOW() |
β |
β |
| branch_id |
UUID |
yes |
β |
FK |
branches.id |
connector_connections
- Domain:
integrations Β· Feature gate: #[cfg(feature = "integrations")] Β· Migration: 6.5.92-connector-connections
- Rust source:
botschema/src/integrations.rs
| Column |
SQL type |
Null |
Default |
Key |
References |
| id |
UUID |
no |
gen_random_uuid() |
PK |
β |
| org_id |
UUID |
no |
β |
β |
β |
| kind |
VARCHAR(32) |
no |
β |
β |
β |
| display_name |
VARCHAR(160) |
yes |
β |
β |
β |
| vault_token_ref |
VARCHAR(200) |
no |
β |
β |
β |
| status |
VARCHAR(24) |
no |
'connected' |
β |
β |
| cursors |
JSONB |
no |
'{}'::jsonb |
β |
β |
| last_sync_at |
TIMESTAMPTZ |
yes |
β |
β |
β |
| created_at |
TIMESTAMPTZ |
no |
NOW() |
β |
β |
| updated_at |
TIMESTAMPTZ |
no |
NOW() |
β |
β |
connectors
- Domain:
integrations Β· Feature gate: #[cfg(feature = "integrations")] Β· Migration: 6.5.73-connector-secrets
- Rust source:
botschema/src/integrations.rs
| Column |
SQL type |
Null |
Default |
Key |
References |
| id |
UUID |
no |
gen_random_uuid() |
PK |
β |
| bot_id |
UUID |
no |
β |
β |
β |
| name |
VARCHAR(255) |
no |
β |
β |
β |
| connector_type |
VARCHAR(50) |
no |
β |
β |
β |
| description |
TEXT |
yes |
β |
β |
β |
| auth_config |
JSONB |
no |
'{}' |
β |
β |
| endpoints |
JSONB |
no |
'[]' |
β |
β |
| schedule |
VARCHAR(100) |
yes |
β |
β |
β |
| is_active |
BOOLEAN |
no |
true |
β |
β |
| last_sync_at |
TIMESTAMPTZ |
yes |
β |
β |
β |
| last_sync_status |
VARCHAR(20) |
yes |
β |
β |
β |
| error_log |
TEXT |
yes |
β |
β |
β |
| created_at |
TIMESTAMPTZ |
no |
NOW() |
β |
β |
| updated_at |
TIMESTAMPTZ |
no |
NOW() |
β |
β |
| branch_id |
UUID |
yes |
β |
FK |
branches.id |
| secrets_vault_path |
VARCHAR(500) |
yes |
β |
β |
β |
| last_test_at |
TIMESTAMPTZ |
yes |
β |
β |
β |
| last_test_status |
VARCHAR(20) |
yes |
β |
β |
β |
delivery_transactions
- Domain:
integrations Β· Feature gate: #[cfg(feature = "integrations")] Β· Migration: 6.5.23-branch-scope-cleanup
- Rust source:
botschema/src/integrations.rs
| Column |
SQL type |
Null |
Default |
Key |
References |
| id |
UUID |
no |
gen_random_uuid() |
PK |
β |
| bot_id |
UUID |
no |
β |
β |
β |
| platform |
VARCHAR(50) |
no |
β |
β |
β |
| platform_order_id |
VARCHAR(255) |
no |
β |
β |
β |
| order_date |
DATE |
no |
β |
β |
β |
| customer_name |
TEXT |
yes |
β |
β |
β |
| items |
JSONB |
yes |
β |
β |
β |
| subtotal |
NUMERIC(12,2) |
no |
β |
β |
β |
| delivery_fee |
NUMERIC(12,2) |
no |
0 |
β |
β |
| platform_commission |
NUMERIC(12,2) |
no |
0 |
β |
β |
| net_value |
NUMERIC(12,2) |
no |
β |
β |
β |
| payment_method |
VARCHAR(50) |
yes |
β |
β |
β |
| status |
VARCHAR(50) |
no |
'pending' |
β |
β |
| reconciled |
BOOLEAN |
no |
false |
β |
β |
| reconciled_at |
TIMESTAMPTZ |
yes |
β |
β |
β |
| created_at |
TIMESTAMPTZ |
no |
NOW() |
β |
β |
| branch_id |
UUID |
yes |
β |
FK |
branches.id |
indexed_items
- Domain:
integrations Β· Feature gate: #[cfg(feature = "integrations")] Β· Migration: 6.5.92-connector-connections
- Rust source:
botschema/src/integrations.rs
| Column |
SQL type |
Null |
Default |
Key |
References |
| id |
UUID |
no |
gen_random_uuid() |
PK |
β |
| connection_id |
UUID |
no |
β |
FK |
connector_connections.id |
| external_id |
TEXT |
no |
β |
β |
β |
| title |
TEXT |
no |
β |
β |
β |
| body_tsv |
TEXT |
yes |
β |
β |
β |
| vector_ref |
TEXT |
yes |
β |
β |
β |
| acl |
JSONB |
no |
'[]'::jsonb |
β |
β |
| container |
TEXT |
yes |
β |
β |
β |
| external_url |
TEXT |
yes |
β |
β |
β |
| updated_at |
TIMESTAMPTZ |
no |
NOW() |
β |
β |
| deleted_at |
TIMESTAMPTZ |
yes |
β |
β |
β |
reconciliation_rules
- Domain:
integrations Β· Feature gate: #[cfg(feature = "integrations")] Β· Migration: 6.5.23-branch-scope-cleanup
- Rust source:
botschema/src/integrations.rs
| Column |
SQL type |
Null |
Default |
Key |
References |
| id |
UUID |
no |
gen_random_uuid() |
PK |
β |
| bot_id |
UUID |
no |
β |
β |
β |
| name |
VARCHAR(255) |
no |
β |
β |
β |
| match_field |
VARCHAR(50) |
no |
β |
β |
β |
| match_operator |
VARCHAR(20) |
no |
β |
β |
β |
| match_value |
TEXT |
no |
β |
β |
β |
| category |
VARCHAR(100) |
yes |
β |
β |
β |
| auto_reconcile |
BOOLEAN |
no |
false |
β |
β |
| is_active |
BOOLEAN |
no |
true |
β |
β |
| created_at |
TIMESTAMPTZ |
no |
NOW() |
β |
β |
| branch_id |
UUID |
yes |
β |
FK |
branches.id |
reconciliation_runs
- Domain:
integrations Β· Feature gate: #[cfg(feature = "integrations")] Β· Migration: 6.5.23-branch-scope-cleanup
- Rust source:
botschema/src/integrations.rs
| Column |
SQL type |
Null |
Default |
Key |
References |
| id |
UUID |
no |
gen_random_uuid() |
PK |
β |
| bot_id |
UUID |
no |
β |
β |
β |
| status |
VARCHAR(50) |
no |
'running' |
β |
β |
| matched_count |
INTEGER |
no |
0 |
β |
β |
| unmatched_count |
INTEGER |
no |
0 |
β |
β |
| total_amount_matched |
NUMERIC(14,2) |
no |
0 |
β |
β |
| started_at |
TIMESTAMPTZ |
no |
NOW() |
β |
β |
| completed_at |
TIMESTAMPTZ |
yes |
β |
β |
β |
| branch_id |
UUID |
yes |
β |
FK |
branches.id |