Schema: dashboards
Part of the generated database reference.
conversational_queries
- Domain:
dashboards Β· Feature gate: #[cfg(feature = "dashboards")] Β· Migration: 6.5.23-branch-scope-cleanup
- Rust source:
botschema/src/dashboards.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 |
β |
β |
β |
| dashboard_id |
UUID |
yes |
β |
FK |
dashboards.id |
| user_id |
UUID |
no |
β |
β |
β |
| natural_language |
TEXT |
no |
β |
β |
β |
| generated_query |
TEXT |
yes |
β |
β |
β |
| result_widget_config |
JSONB |
yes |
β |
β |
β |
| created_at |
TIMESTAMPTZ |
no |
NOW() |
β |
β |
| branch_id |
UUID |
yes |
β |
FK |
branches.id |
dashboard_data_sources
- Domain:
dashboards Β· Feature gate: #[cfg(feature = "dashboards")] Β· Migration: 6.5.23-branch-scope-cleanup
- Rust source:
botschema/src/dashboards.rs
| Column |
SQL type |
Null |
Default |
Key |
References |
| id |
UUID |
no |
gen_random_uuid() |
PK |
β |
| name |
VARCHAR(255) |
no |
β |
β |
β |
| description |
TEXT |
yes |
β |
β |
β |
| source_type |
VARCHAR(255) |
no |
β |
β |
β |
| connection |
JSONB |
no |
'{}' |
β |
β |
| schema_definition |
JSONB |
no |
'{}' |
β |
β |
| refresh_schedule |
VARCHAR(255) |
yes |
β |
β |
β |
| last_sync |
TIMESTAMPTZ |
yes |
β |
β |
β |
| status |
VARCHAR(255) |
no |
'active' |
β |
β |
| created_at |
TIMESTAMPTZ |
no |
NOW() |
β |
β |
| updated_at |
TIMESTAMPTZ |
no |
NOW() |
β |
β |
| org_id |
UUID |
no |
β |
FK |
organizations.org_id |
| bot_id |
UUID |
no |
β |
β |
β |
| branch_id |
UUID |
yes |
β |
FK |
branches.id |
dashboard_filters
- Domain:
dashboards Β· Feature gate: #[cfg(feature = "dashboards")] Β· Migration: 6.5.15.1-consolidated
- Rust source:
botschema/src/dashboards.rs
| Column |
SQL type |
Null |
Default |
Key |
References |
| id |
UUID |
no |
gen_random_uuid() |
PK |
β |
| dashboard_id |
UUID |
no |
β |
FK |
dashboards.id |
| name |
VARCHAR(255) |
no |
β |
β |
β |
| field |
VARCHAR(255) |
no |
β |
β |
β |
| filter_type |
VARCHAR(255) |
no |
β |
β |
β |
| default_value |
JSONB |
yes |
β |
β |
β |
| options |
JSONB |
no |
'[]' |
β |
β |
| linked_widgets |
JSONB |
no |
'[]' |
β |
β |
| created_at |
TIMESTAMPTZ |
no |
NOW() |
β |
β |
- Domain:
dashboards Β· Feature gate: #[cfg(feature = "dashboards")] Β· Migration: 6.5.15.1-consolidated
- Rust source:
botschema/src/dashboards.rs
| Column |
SQL type |
Null |
Default |
Key |
References |
| id |
UUID |
no |
gen_random_uuid() |
PK |
β |
| dashboard_id |
UUID |
no |
β |
FK |
dashboards.id |
| widget_type |
VARCHAR(255) |
no |
β |
β |
β |
| title |
VARCHAR(255) |
no |
β |
β |
β |
| position_x |
INTEGER |
no |
0 |
β |
β |
| position_y |
INTEGER |
no |
0 |
β |
β |
| width |
INTEGER |
no |
4 |
β |
β |
| height |
INTEGER |
no |
3 |
β |
β |
| config |
JSONB |
no |
'{}' |
β |
β |
| data_query |
JSONB |
yes |
β |
β |
β |
| style |
JSONB |
no |
'{}' |
β |
β |
| created_at |
TIMESTAMPTZ |
no |
NOW() |
β |
β |
| updated_at |
TIMESTAMPTZ |
no |
NOW() |
β |
β |
dashboards
- Domain:
dashboards Β· Feature gate: #[cfg(feature = "dashboards")] Β· Migration: 6.5.23-branch-scope-cleanup
- Rust source:
botschema/src/dashboards.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 |
β |
β |
β |
| owner_id |
UUID |
no |
β |
β |
β |
| name |
VARCHAR(255) |
no |
β |
β |
β |
| description |
TEXT |
yes |
β |
β |
β |
| layout |
JSONB |
no |
'{"columns": 12, "row_height": 80, "gap": 16}' |
β |
β |
| refresh_interval |
INTEGER |
yes |
β |
β |
β |
| is_public |
BOOLEAN |
no |
FALSE |
β |
β |
| is_template |
BOOLEAN |
no |
FALSE |
β |
β |
| tags |
TEXT[] |
no |
'{}' |
β |
β |
| created_at |
TIMESTAMPTZ |
no |
NOW() |
β |
β |
| updated_at |
TIMESTAMPTZ |
no |
NOW() |
β |
β |
| branch_id |
UUID |
yes |
β |
FK |
branches.id |