Schema: database_manager
Part of the generated database reference.
database_query_history
- Domain:
database_manager Β· Feature gate: always available Β· Migration: 6.5.23-branch-scope-cleanup
- Rust source:
botschema/src/database_manager.rs
| Column |
SQL type |
Null |
Default |
Key |
References |
| id |
UUID |
no |
gen_random_uuid() |
PK |
β |
| bot_id |
UUID |
no |
β |
FK |
bots.id |
| user_id |
UUID |
no |
β |
β |
β |
| query_text |
TEXT |
no |
β |
β |
β |
| is_mutation |
BOOLEAN |
no |
FALSE |
β |
β |
| row_count |
INTEGER |
yes |
0 |
β |
β |
| duration_ms |
INTEGER |
yes |
0 |
β |
β |
| error_message |
TEXT |
yes |
β |
β |
β |
| executed_at |
TIMESTAMPTZ |
no |
NOW() |
β |
β |
| branch_id |
UUID |
yes |
β |
FK |
branches.id |
database_saved_queries
- Domain:
database_manager Β· Feature gate: always available Β· Migration: 6.5.23-branch-scope-cleanup
- Rust source:
botschema/src/database_manager.rs
| Column |
SQL type |
Null |
Default |
Key |
References |
| id |
UUID |
no |
gen_random_uuid() |
PK |
β |
| bot_id |
UUID |
no |
β |
FK |
bots.id |
| user_id |
UUID |
no |
β |
β |
β |
| name |
VARCHAR(255) |
no |
β |
β |
β |
| query_text |
TEXT |
no |
β |
β |
β |
| description |
TEXT |
yes |
β |
β |
β |
| is_shared |
BOOLEAN |
no |
FALSE |
β |
β |
| created_at |
TIMESTAMPTZ |
no |
NOW() |
β |
β |
| updated_at |
TIMESTAMPTZ |
no |
NOW() |
β |
β |
| branch_id |
UUID |
yes |
β |
FK |
branches.id |