The API stores its data in a relational database, which can be MySQL, PostgreSQL or SQLite. This page lists every table. For each table it lists the columns with their type, whether they may be null, their key, the column that they reference and their server default, followed by the table's indexes and constraints.
The SQLAlchemy models in backend-api/backend/api/models declare the tables, and Alembic migrations in backend-api/backend/alembic/versions create and change them. The column types are those of the SQLAlchemy types, as the models name them. The page is generated from backend-api/backend/reference-data/database_schema.json, which the backend's exporter writes from the models.
Tables
Columns
| Column | Type | Null | Key | References | Server default |
|---|
name | VARCHAR(200) | no | | | |
url | TEXT | no | | | |
user_uuid | BINARY(16) | yes | indexed | user.uuid | |
endpointHeaders | TEXT | yes | | | |
entity_uuid | BINARY(16) | yes | indexed | entity.uuid (on delete CASCADE) | |
mcp_servers | JSON | yes | | | |
enabled | BOOLEAN | no | | | true |
uuid | BINARY(16) | no | primary | | |
created_date | DATETIME | yes | | | |
updated_date | DATETIME | yes | | | |
Indexes and constraints
- Index
ix_api_source_entity_uuid on entity_uuid - Index
ix_api_source_user_uuid on user_uuid - Index
ix_user_entity_name_api_source on entity_uuid, name, user_uuid
Columns
| Column | Type | Null | Key | References | Server default |
|---|
entity_uuid | BINARY(16) | no | indexed | entity.uuid (on delete CASCADE) | |
role_uuid | BINARY(16) | no | indexed | role.uuid | |
action | VARCHAR(100) | no | | | |
resource_type | VARCHAR(100) | no | | | |
resource_uuid | BINARY(16) | no | indexed | | |
performed_by_uuid | BINARY(16) | no | indexed | user.uuid | |
details | MEDIUMBLOB | no | | | |
uuid | BINARY(16) | no | primary | | |
created_date | DATETIME | yes | | | |
updated_date | DATETIME | yes | | | |
Indexes and constraints
- Index
ix_audit_entity_roles_permissions_entity_uuid on entity_uuid - Index
ix_audit_entity_roles_permissions_performed_by_uuid on performed_by_uuid - Index
ix_audit_entity_roles_permissions_resource_uuid on resource_uuid - Index
ix_audit_entity_roles_permissions_role_uuid on role_uuid
Columns
| Column | Type | Null | Key | References | Server default |
|---|
user_uuid | BINARY(16) | no | indexed | user.uuid | |
content | MEDIUMBLOB | yes | | | |
artifacts | LONGBLOB | yes | | | |
label | TEXT | yes | | | |
last_opened | DATETIME | yes | | | |
uuid | BINARY(16) | no | primary | | |
created_date | DATETIME | yes | | | |
updated_date | DATETIME | yes | | | |
Indexes and constraints
- Index
ix_copilot_chat_search on label - Index
ix_copilot_chat_user_uuid on user_uuid
Columns
| Column | Type | Null | Key | References | Server default |
|---|
user_uuid | BINARY(16) | no | | user.uuid | |
chat_uuid | BINARY(16) | no | | copilot_chat.uuid (on delete CASCADE) | |
content | MEDIUMBLOB | yes | | | |
searchable_content | TEXT | yes | | | |
role | VARCHAR(7) | no | | | |
created_date | DATETIME | yes | | | |
updated_date | DATETIME | yes | | | |
uuid | BINARY(16) | no | primary | | |
Indexes and constraints
- Index
ix_user_chat_message on chat_uuid, user_uuid - Index
ix_user_searchable_content on chat_uuid, role, user_uuid - Index
ix_user_searchable_content_fulltext on searchable_content
Columns
| Column | Type | Null | Key | References | Server default |
|---|
user_uuid | BINARY(16) | no | indexed | user.uuid | |
url | VARCHAR(200) | no | | | |
headers | TEXT | yes | | | |
copilots | TEXT | yes | | | |
uuid | BINARY(16) | no | primary | | |
created_date | DATETIME | yes | | | |
updated_date | DATETIME | yes | | | |
Indexes and constraints
- Index
ix_custom_copilot_user_uuid on user_uuid - Unique constraint
uix_user_url_custom_copilot on url, user_uuid
Columns
| Column | Type | Null | Key | References | Server default |
|---|
creator_uuid | BINARY(16) | no | indexed | user.uuid | |
owner_uuid | BINARY(16) | no | indexed | user.uuid | |
entity_share | BOOLEAN | no | indexed | | |
entity_uuid | BINARY(16) | yes | indexed | entity.uuid | |
content | LONGBLOB | yes | | | |
is_shared | BOOLEAN | no | indexed | | |
uuid | BINARY(16) | no | primary | | |
created_date | DATETIME | yes | | | |
updated_date | DATETIME | yes | | | |
Indexes and constraints
- Index
ix_dashboard_item_creator_uuid on creator_uuid - Index
ix_dashboard_item_entity_share on entity_share - Index
ix_dashboard_item_entity_uuid on entity_uuid - Index
ix_dashboard_item_is_shared on is_shared - Index
ix_dashboard_item_owner_uuid on owner_uuid
Columns
| Column | Type | Null | Key | References | Server default |
|---|
dashboard_item_uuid | BINARY(16) | no | indexed | dashboard_item.uuid (on delete CASCADE) | |
content | MEDIUMBLOB | yes | | | |
created_date | DATETIME | yes | | | |
updated_date | DATETIME | yes | | | |
uuid | BINARY(16) | no | primary | | |
Indexes and constraints
- Index
ix_dashboard_save_dashboard_item_uuid on dashboard_item_uuid
Columns
| Column | Type | Null | Key | References | Server default |
|---|
dashboard_item_uuid | BINARY(16) | no | indexed | dashboard_item.uuid (on delete CASCADE) | |
shared_user_uuid | BINARY(16) | no | indexed | user.uuid | |
active | BOOLEAN | no | indexed | | |
permissions | VARCHAR(7) | no | | | |
viewed | BOOLEAN | no | indexed | | |
uuid | BINARY(16) | no | primary | | |
created_date | DATETIME | yes | | | |
updated_date | DATETIME | yes | | | |
Indexes and constraints
- Index
ix_dashboard_share_active on active - Index
ix_dashboard_share_dashboard_item_uuid on dashboard_item_uuid - Index
ix_dashboard_share_shared_user_uuid on shared_user_uuid - Index
ix_dashboard_share_viewed on viewed
Columns
| Column | Type | Null | Key | References | Server default |
|---|
name | VARCHAR(100) | yes | unique | | |
require_authenticator | BOOLEAN | no | | | |
sharing_enabled | BOOLEAN | no | | | true |
disabled | BOOLEAN | no | | | false |
deleted_at | DATETIME | yes | | | |
uuid | BINARY(16) | no | primary | | |
created_date | DATETIME | yes | | | |
updated_date | DATETIME | yes | | | |
Indexes and constraints
- Unique constraint on
name
Columns
| Column | Type | Null | Key | References | Server default |
|---|
entity_uuid | BINARY(16) | no | indexed | entity.uuid (on delete CASCADE) | |
settings | MEDIUMBLOB | no | | | |
uuid | BINARY(16) | no | primary | | |
created_date | DATETIME | yes | | | |
updated_date | DATETIME | yes | | | |
Indexes and constraints
- Index
ix_entity_theme_settings_entity_uuid on entity_uuid
Columns
| Column | Type | Null | Key | References | Server default |
|---|
entity_uuid | BINARY(16) | no | indexed | entity.uuid (on delete CASCADE) | |
viz_type | VARCHAR(32) | no | | | |
plugin_uuid | BINARY(16) | no | indexed | widget_plugin.uuid (on delete CASCADE) | |
widget_id | VARCHAR(48) | no | | | |
uuid | BINARY(16) | no | primary | | |
created_date | DATETIME | yes | | | |
updated_date | DATETIME | yes | | | |
Indexes and constraints
- Index
ix_entity_viz_handler_entity_uuid on entity_uuid - Index
ix_entity_viz_handler_plugin_uuid on plugin_uuid - Unique constraint
uix_entity_viz_handler on entity_uuid, viz_type
Columns
| Column | Type | Null | Key | References | Server default |
|---|
entity_uuid | BINARY(16) | no | indexed | entity.uuid (on delete CASCADE) | |
plugin_uuid | BINARY(16) | no | indexed | widget_plugin.uuid (on delete CASCADE) | |
enabled | BOOLEAN | no | | | |
settings | JSON | yes | | | |
narrowed_permissions | JSON | yes | | | |
csp_narrow | JSON | yes | | | |
server_network_narrow | JSON | yes | | | |
data_sources | JSON | yes | | | |
preset_limit | INTEGER | yes | | | |
uuid | BINARY(16) | no | primary | | |
created_date | DATETIME | yes | | | |
updated_date | DATETIME | yes | | | |
Indexes and constraints
- Index
ix_entity_widget_plugin_entity_uuid on entity_uuid - Index
ix_entity_widget_plugin_plugin_uuid on plugin_uuid - Unique constraint
uix_entity_widget_plugin on entity_uuid, plugin_uuid
Columns
| Column | Type | Null | Key | References | Server default |
|---|
user_uuid | BINARY(16) | no | indexed | user.uuid | |
url | TEXT | no | | | |
name | TEXT | no | | | |
extension | TEXT | no | | | |
original_file_name | TEXT | yes | | | |
data_key | TEXT | yes | | | |
description | TEXT | yes | | | |
category | TEXT | yes | | | |
sub_category | TEXT | yes | | | |
source | TEXT | yes | | | |
uuid | BINARY(16) | no | primary | | |
created_date | DATETIME | yes | | | |
updated_date | DATETIME | yes | | | |
Indexes and constraints
- Index
ix_file_widget_user_uuid on user_uuid
Columns
| Column | Type | Null | Key | References | Server default |
|---|
request | TEXT | yes | | | |
error | TEXT | yes | | | |
status_code | INTEGER | yes | | | |
method | TEXT | yes | | | |
uuid | BINARY(16) | no | primary | | |
created_date | DATETIME | yes | | | |
updated_date | DATETIME | yes | | | |
Columns
| Column | Type | Null | Key | References | Server default |
|---|
user_uuid | BINARY(16) | yes | indexed | user.uuid | |
source | VARCHAR(20) | yes | | | |
uuid | BINARY(16) | no | primary | | |
created_date | DATETIME | yes | | | |
updated_date | DATETIME | yes | | | |
Indexes and constraints
- Index
ix_login_user_uuid on user_uuid
Columns
| Column | Type | Null | Key | References | Server default |
|---|
user_uuid | BINARY(16) | no | | user.uuid (on delete CASCADE) | |
server_hash | VARCHAR(64) | no | | | |
credentials | TEXT | no | | | |
uuid | BINARY(16) | no | primary | | |
created_date | DATETIME | yes | | | |
updated_date | DATETIME | yes | | | |
Indexes and constraints
- Unique constraint
uix_mcp_oauth_grant_server on server_hash, user_uuid
Columns
| Column | Type | Null | Key | References | Server default |
|---|
user_uuid | BINARY(16) | no | indexed | user.uuid | |
servers | TEXT | yes | | | |
headers | TEXT | yes | | | |
uuid | BINARY(16) | no | primary | | |
created_date | DATETIME | yes | | | |
updated_date | DATETIME | yes | | | |
Indexes and constraints
- Index
ix_mcp_servers_user_uuid on user_uuid
Columns
| Column | Type | Null | Key | References | Server default |
|---|
entity_uuid | BINARY(16) | no | indexed | entity.uuid (on delete CASCADE) | |
name | VARCHAR(100) | no | | | |
uuid | BINARY(16) | no | primary | | |
created_date | DATETIME | yes | | | |
updated_date | DATETIME | yes | | | |
Indexes and constraints
- Index
ix_permissions_entity_map_entity_uuid on entity_uuid
Columns
| Column | Type | Null | Key | References | Server default |
|---|
user_uuid | BINARY(16) | no | indexed | user.uuid | |
name | VARCHAR(100) | no | | | |
token_type | VARCHAR(50) | no | indexed | | |
token_hash | VARCHAR(128) | no | | | |
token_prefix | VARCHAR(20) | no | indexed | | |
revoked_at | DATETIME | yes | | | |
last_used_at | DATETIME | yes | | | |
uuid | BINARY(16) | no | primary | | |
created_date | DATETIME | yes | | | |
updated_date | DATETIME | yes | | | |
Indexes and constraints
- Index
ix_personal_access_token_token_prefix on token_prefix - Index
ix_personal_access_token_token_type on token_type - Index
ix_personal_access_token_user_uuid on user_uuid - Index
ix_personal_access_token_user_uuid_token_type on token_type, user_uuid - Unique constraint
uq_personal_access_token_token_hash on token_hash
Columns
| Column | Type | Null | Key | References | Server default |
|---|
session_uuid | BINARY(16) | no | unique | | |
provider | VARCHAR(20) | no | | | |
id_token | TEXT | no | | | |
id_token_expires_at | DATETIME | no | | | |
refresh_token | TEXT | no | | | |
uuid | BINARY(16) | no | primary | | |
created_date | DATETIME | yes | | | |
updated_date | DATETIME | yes | | | |
Indexes and constraints
- Unique constraint on
session_uuid
Columns
| Column | Type | Null | Key | References | Server default |
|---|
name | VARCHAR(100) | no | | | |
description | TEXT | no | | | |
sharing | VARCHAR(10) | no | | | none |
copilot_calls_day | INTEGER | yes | | | |
copilot_tokens_day | BIGINT | yes | | | |
upload_size_gb | INTEGER | yes | | | |
search_web | BOOLEAN | no | | | true |
fetch_from_web | BOOLEAN | no | | | true |
entity_uuid | BINARY(16) | no | indexed | entity.uuid (on delete CASCADE) | |
deleted_at | DATETIME | yes | | | |
uuid | BINARY(16) | no | primary | | |
created_date | DATETIME | yes | | | |
updated_date | DATETIME | yes | | | |
Indexes and constraints
- Index
ix_role_entity_uuid on entity_uuid - Unique constraint
uix_role_entity_name_deleted_at on deleted_at, entity_uuid, name
Columns
| Column | Type | Null | Key | References | Server default |
|---|
role_uuid | BINARY(16) | no | indexed | role.uuid (on delete CASCADE) | |
backend_uuid | BINARY(16) | no | indexed | api_source.uuid (on delete CASCADE) | |
access | VARCHAR(100) | no | | | |
widgets | MEDIUMBLOB | yes | | | |
templates | MEDIUMBLOB | yes | | | |
uuid | BINARY(16) | no | primary | | |
created_date | DATETIME | yes | | | |
updated_date | DATETIME | yes | | | |
Indexes and constraints
- Index
ix_role_backend_backend_uuid on backend_uuid - Index
ix_role_backend_role_uuid on role_uuid
Columns
| Column | Type | Null | Key | References | Server default |
|---|
role_uuid | BINARY(16) | no | indexed | role.uuid (on delete CASCADE) | |
agent_id | VARCHAR(255) | no | | | |
model_id | VARCHAR(255) | no | | | |
uuid | BINARY(16) | no | primary | | |
created_date | DATETIME | yes | | | |
updated_date | DATETIME | yes | | | |
Indexes and constraints
- Index
ix_role_copilot_model_role_uuid on role_uuid - Unique constraint
uix_role_copilot_model on agent_id, model_id, role_uuid
Columns
| Column | Type | Null | Key | References | Server default |
|---|
role_uuid | BINARY(16) | no | indexed | role.uuid (on delete CASCADE) | |
file_uuid | BINARY(16) | no | indexed | file_widget.uuid (on delete CASCADE) | |
access | VARCHAR(100) | no | | | |
uuid | BINARY(16) | no | primary | | |
created_date | DATETIME | yes | | | |
updated_date | DATETIME | yes | | | |
Indexes and constraints
- Index
ix_role_file_file_uuid on file_uuid - Index
ix_role_file_role_uuid on role_uuid
Columns
| Column | Type | Null | Key | References | Server default |
|---|
role_uuid | BINARY(16) | no | indexed | role.uuid (on delete CASCADE) | |
server_url | VARCHAR(400) | no | | | |
tool_name | VARCHAR(200) | no | | | |
uuid | BINARY(16) | no | primary | | |
created_date | DATETIME | yes | | | |
updated_date | DATETIME | yes | | | |
Indexes and constraints
- Index
ix_role_mcp_access_role_uuid on role_uuid - Unique constraint
uix_role_mcp_access on role_uuid, server_url, tool_name
Columns
| Column | Type | Null | Key | References | Server default |
|---|
role_uuid | BINARY(16) | no | indexed | role.uuid (on delete CASCADE) | |
prompt_uuid | BINARY(16) | no | indexed | user_prompts.uuid (on delete CASCADE) | |
access | VARCHAR(100) | no | | | |
uuid | BINARY(16) | no | primary | | |
created_date | DATETIME | yes | | | |
updated_date | DATETIME | yes | | | |
Indexes and constraints
- Index
ix_role_prompt_prompt_uuid on prompt_uuid - Index
ix_role_prompt_role_uuid on role_uuid
Columns
| Column | Type | Null | Key | References | Server default |
|---|
role_uuid | BINARY(16) | no | indexed | role.uuid (on delete CASCADE) | |
plugin_uuid | BINARY(16) | no | indexed | widget_plugin.uuid (on delete CASCADE) | |
widget_id | VARCHAR(48) | no | | | |
uuid | BINARY(16) | no | primary | | |
created_date | DATETIME | yes | | | |
updated_date | DATETIME | yes | | | |
Indexes and constraints
- Index
ix_role_widget_plugin_plugin_uuid on plugin_uuid - Index
ix_role_widget_plugin_role_uuid on role_uuid - Unique constraint
uix_role_widget_plugin on plugin_uuid, role_uuid, widget_id
Columns
| Column | Type | Null | Key | References | Server default |
|---|
token_hash | VARCHAR(64) | no | unique, indexed | | |
user_uuid | BINARY(16) | yes | indexed | user.uuid | |
expiration_date | DATETIME | yes | | | |
app_session | BOOLEAN | no | | | |
source | VARCHAR(20) | yes | | | |
uuid | BINARY(16) | no | primary | | |
created_date | DATETIME | yes | | | |
updated_date | DATETIME | yes | | | |
Indexes and constraints
- Unique index
ix_session_token_hash on token_hash - Index
ix_session_user_uuid on user_uuid
Columns
| Column | Type | Null | Key | References | Server default |
|---|
requester_uuid | BINARY(16) | no | indexed | user.uuid (on delete CASCADE) | |
dashboard_item_uuid | BINARY(16) | yes | indexed | dashboard_item.uuid (on delete CASCADE) | |
user_app_uuid | BINARY(16) | yes | indexed | user_app.uuid (on delete CASCADE) | |
recipient_uuid | BINARY(16) | yes | indexed | user.uuid (on delete CASCADE) | |
permissions | VARCHAR(10) | yes | | | |
uuid | BINARY(16) | no | primary | | |
created_date | DATETIME | yes | | | |
updated_date | DATETIME | yes | | | |
Indexes and constraints
- Index
ix_share_request_dashboard_item_uuid on dashboard_item_uuid - Index
ix_share_request_recipient_uuid on recipient_uuid - Index
ix_share_request_requester_uuid on requester_uuid - Index
ix_share_request_user_app_uuid on user_app_uuid
Columns
| Column | Type | Null | Key | References | Server default |
|---|
private_key | TEXT | no | | | |
public_jwk | JSON | no | | | |
uuid | BINARY(16) | no | primary | | |
created_date | DATETIME | yes | | | |
updated_date | DATETIME | yes | | | |
Columns
| Column | Type | Null | Key | References | Server default |
|---|
creater_uuid | BINARY(16) | no | indexed | user.uuid | |
file_widget_uuid | BINARY(16) | yes | indexed | file_widget.uuid (on delete CASCADE) | |
s3_file_name | TEXT | no | | | |
bucket | TEXT | no | | | |
extension | TEXT | no | | | |
original_file_name | TEXT | yes | | | |
size | INTEGER | no | | | |
is_global | BOOLEAN | no | indexed | | |
uuid | BINARY(16) | no | primary | | |
created_date | DATETIME | yes | | | |
updated_date | DATETIME | yes | | | |
Indexes and constraints
- Index
ix_stored_file_creater_uuid on creater_uuid - Index
ix_stored_file_file_widget_uuid on file_widget_uuid - Index
ix_stored_file_is_global on is_global
Columns
| Column | Type | Null | Key | References | Server default |
|---|
dashboard_item_uuid | BINARY(16) | yes | indexed | dashboard_item.uuid (on delete CASCADE) | |
user_app_uuid | BINARY(16) | yes | indexed | user_app.uuid (on delete CASCADE) | |
creater_uuid | BINARY(16) | no | indexed | user.uuid | |
shared_user_uuid | BINARY(16) | no | indexed | user.uuid | |
stored_file_uuids | TEXT | no | | | |
entity_uuid | BINARY(16) | yes | indexed | entity.uuid | |
uuid | BINARY(16) | no | primary | | |
created_date | DATETIME | yes | | | |
updated_date | DATETIME | yes | | | |
Indexes and constraints
- Index
ix_stored_file_share_creater_uuid on creater_uuid - Index
ix_stored_file_share_dashboard_item_uuid on dashboard_item_uuid - Index
ix_stored_file_share_entity_uuid on entity_uuid - Index
ix_stored_file_share_shared_user_uuid on shared_user_uuid - Index
ix_stored_file_share_user_app_uuid on user_app_uuid
Columns
| Column | Type | Null | Key | References | Server default |
|---|
microsoft_id | VARCHAR(100) | yes | | | |
first_name | VARCHAR(100) | yes | | | |
last_name | VARCHAR(100) | yes | | | |
email | VARCHAR(255) | no | unique | | |
clean_email | VARCHAR(255) | no | | | |
username | VARCHAR(50) | yes | unique | | |
password | VARCHAR(128) | no | | | |
totp_secret | TEXT | yes | | | |
totp_last_step | BIGINT | yes | | | |
totp_active | BOOLEAN | no | | | |
two_factor_auth | BOOLEAN | no | | | |
temporary_password | BOOLEAN | yes | | | |
openai_api_key | TEXT | yes | | | |
perplexity_api_key | TEXT | yes | | | |
display_settings | JSON | yes | | | |
deleted | BOOLEAN | yes | | | |
confirmed | BOOLEAN | yes | | | |
is_superuser | BOOLEAN | no | | | |
permissions_uuid | BINARY(16) | yes | indexed | permissions_entity_map.uuid | |
app_start | DATETIME | yes | | | |
latest_version | TEXT | yes | | | |
uuid | BINARY(16) | no | primary | | |
created_date | DATETIME | yes | | | |
updated_date | DATETIME | yes | | | |
Indexes and constraints
- Index
ix_user_permissions_uuid on permissions_uuid - Unique constraint on
email - Unique constraint on
username
Columns
| Column | Type | Null | Key | References | Server default |
|---|
user_uuid | BINARY(16) | no | indexed | user.uuid | |
content | LONGBLOB | yes | | | |
is_shared | BOOLEAN | yes | indexed | | |
uuid | BINARY(16) | no | primary | | |
created_date | DATETIME | yes | | | |
updated_date | DATETIME | yes | | | |
Indexes and constraints
- Index
ix_user_app_is_shared on is_shared - Index
ix_user_app_user_uuid on user_uuid
Columns
| Column | Type | Null | Key | References | Server default |
|---|
user_app_uuid | BINARY(16) | no | indexed | user_app.uuid (on delete CASCADE) | |
shared_user_uuid | BINARY(16) | no | indexed | user.uuid | |
active | BOOLEAN | no | indexed | | |
permissions | VARCHAR(7) | no | | | |
viewed | BOOLEAN | no | indexed | | |
uuid | BINARY(16) | no | primary | | |
created_date | DATETIME | yes | | | |
updated_date | DATETIME | yes | | | |
Indexes and constraints
- Index
ix_user_app_share_active on active - Index
ix_user_app_share_shared_user_uuid on shared_user_uuid - Index
ix_user_app_share_user_app_uuid on user_app_uuid - Index
ix_user_app_share_viewed on viewed
Columns
| Column | Type | Null | Key | References | Server default |
|---|
inviting_user_uuid | BINARY(16) | yes | indexed | user.uuid | |
used | BOOLEAN | no | | | |
email | VARCHAR(255) | no | | | |
permissions_uuid | BINARY(16) | yes | | permissions_entity_map.uuid (on delete SET NULL) | |
data | JSON | yes | | | |
uuid | BINARY(16) | no | primary | | |
created_date | DATETIME | yes | | | |
updated_date | DATETIME | yes | | | |
Indexes and constraints
- Index
ix_user_invite_inviting_user_uuid on inviting_user_uuid
Columns
| Column | Type | Null | Key | References | Server default |
|---|
user_uuid | BINARY(16) | no | indexed | user.uuid | |
prompt | MEDIUMBLOB | yes | | | |
uuid | BINARY(16) | no | primary | | |
created_date | DATETIME | yes | | | |
updated_date | DATETIME | yes | | | |
Indexes and constraints
- Index
ix_user_prompts_user_uuid on user_uuid
Columns
| Column | Type | Null | Key | References | Server default |
|---|
user_uuid | BINARY(16) | no | indexed | user.uuid | |
role_uuid | BINARY(16) | no | indexed | role.uuid (on delete CASCADE) | |
uuid | BINARY(16) | no | primary | | |
created_date | DATETIME | yes | | | |
updated_date | DATETIME | yes | | | |
Indexes and constraints
- Index
ix_user_role_role_uuid on role_uuid - Index
ix_user_role_user_uuid on user_uuid
Columns
| Column | Type | Null | Key | References | Server default |
|---|
user_uuid | BINARY(16) | no | indexed | user.uuid | |
slug | VARCHAR(50) | no | | | |
description | TEXT | yes | | | |
content | MEDIUMBLOB | yes | | | |
uuid | BINARY(16) | no | primary | | |
created_date | DATETIME | yes | | | |
updated_date | DATETIME | yes | | | |
Indexes and constraints
- Index
ix_user_skills_user_uuid on user_uuid - Unique constraint
uq_user_skills_user_uuid_slug on slug, user_uuid
Columns
| Column | Type | Null | Key | References | Server default |
|---|
user_uuid | BINARY(16) | no | unique, indexed | user.uuid | |
number_copilot_calls_day_count | INTEGER | no | | | |
number_copilot_tokens_day_count | BIGINT | no | | | |
total_file_upload_size_gb_count | FLOAT | no | | | |
uuid | BINARY(16) | no | primary | | |
created_date | DATETIME | yes | | | |
updated_date | DATETIME | yes | | | |
Indexes and constraints
- Unique index
ix_user_usage_user_uuid on user_uuid
Columns
| Column | Type | Null | Key | References | Server default |
|---|
user_uuid | BINARY(16) | no | | user.uuid | |
name | VARCHAR(50) | no | | | |
description | TEXT | no | | | |
source | VARCHAR(50) | no | | | |
category | VARCHAR(50) | no | | | |
sub_category | VARCHAR(50) | no | | | |
widget_type | VARCHAR(50) | no | | | |
storage | MEDIUMBLOB | yes | | | |
widget_config | MEDIUMBLOB | yes | | | |
widget_id | BINARY(16) | no | unique | | |
uuid | BINARY(16) | no | primary | | |
created_date | DATETIME | yes | | | |
updated_date | DATETIME | yes | | | |
Indexes and constraints
- Index
ix_user_name_type on name, user_uuid, widget_type - Unique constraint on
widget_id
Columns
| Column | Type | Null | Key | References | Server default |
|---|
plugin_id | VARCHAR(48) | no | unique | | |
name | VARCHAR(100) | no | | | |
status | VARCHAR(16) | no | | | |
active_version | VARCHAR(32) | yes | | | |
overrides | JSON | yes | | | |
uuid | BINARY(16) | no | primary | | |
created_date | DATETIME | yes | | | |
updated_date | DATETIME | yes | | | |
Indexes and constraints
- Unique constraint on
plugin_id
Columns
| Column | Type | Null | Key | References | Server default |
|---|
plugin_uuid | BINARY(16) | no | indexed | widget_plugin.uuid (on delete CASCADE) | |
version | VARCHAR(32) | no | | | |
entity_uuid | BINARY(16) | no | indexed | entity.uuid (on delete CASCADE) | |
directive | VARCHAR(32) | no | | | |
blocked_origin | VARCHAR(255) | no | | | |
count | INTEGER | no | | | |
first_seen | DATETIME | yes | | | |
last_seen | DATETIME | yes | | | |
uuid | BINARY(16) | no | primary | | |
created_date | DATETIME | yes | | | |
updated_date | DATETIME | yes | | | |
Indexes and constraints
- Index
ix_widget_plugin_csp_report_entity_uuid on entity_uuid - Index
ix_widget_plugin_csp_report_plugin_uuid on plugin_uuid - Unique constraint
uix_widget_plugin_csp_report on blocked_origin, directive, entity_uuid, plugin_uuid
Columns
| Column | Type | Null | Key | References | Server default |
|---|
plugin_uuid | BINARY(16) | no | indexed | widget_plugin.uuid (on delete CASCADE) | |
version | VARCHAR(32) | yes | | | |
entity_uuid | BINARY(16) | yes | indexed | | |
actor_uuid | BINARY(16) | yes | | | |
action | VARCHAR(48) | no | | | |
details | JSON | yes | | | |
uuid | BINARY(16) | no | primary | | |
created_date | DATETIME | yes | | | |
updated_date | DATETIME | yes | | | |
Indexes and constraints
- Index
ix_widget_plugin_event_entity_uuid on entity_uuid - Index
ix_widget_plugin_event_plugin_uuid on plugin_uuid
Columns
| Column | Type | Null | Key | References | Server default |
|---|
plugin_uuid | BINARY(16) | no | indexed | widget_plugin.uuid (on delete CASCADE) | |
widget_id | VARCHAR(48) | no | | | |
entity_uuid | BINARY(16) | no | indexed | entity.uuid (on delete CASCADE) | |
owner_uuid | BINARY(16) | yes | indexed | user.uuid (on delete CASCADE) | |
scope | VARCHAR(8) | no | | | |
name | VARCHAR(80) | no | | | |
config | JSON | yes | | | |
state | JSON | yes | | | |
is_default | BOOLEAN | no | | | |
uuid | BINARY(16) | no | primary | | |
created_date | DATETIME | yes | | | |
updated_date | DATETIME | yes | | | |
Indexes and constraints
- Index
ix_widget_plugin_preset_entity_uuid on entity_uuid - Index
ix_widget_plugin_preset_owner_uuid on owner_uuid - Index
ix_widget_plugin_preset_plugin_uuid on plugin_uuid - Index
ix_widget_plugin_preset_widget on entity_uuid, plugin_uuid, widget_id
Columns
| Column | Type | Null | Key | References | Server default |
|---|
plugin_uuid | BINARY(16) | no | indexed | widget_plugin.uuid (on delete CASCADE) | |
name | VARCHAR(64) | no | | | |
value | TEXT | no | | | |
set_by_uuid | BINARY(16) | yes | | | |
uuid | BINARY(16) | no | primary | | |
created_date | DATETIME | yes | | | |
updated_date | DATETIME | yes | | | |
Indexes and constraints
- Index
ix_widget_plugin_secret_plugin_uuid on plugin_uuid - Unique constraint
uix_widget_plugin_secret on name, plugin_uuid
Columns
| Column | Type | Null | Key | References | Server default |
|---|
plugin_uuid | BINARY(16) | no | indexed | widget_plugin.uuid (on delete CASCADE) | |
version | VARCHAR(32) | no | | | |
digest | VARCHAR(80) | yes | | | |
declared_checksum | VARCHAR(80) | yes | | | |
pin_status | VARCHAR(16) | no | | | |
manifest | MEDIUMBLOB | yes | | | |
files | JSON | yes | | | |
path | VARCHAR(120) | no | | | |
state | VARCHAR(16) | no | | | |
blocked_reason | TEXT | yes | | | |
findings | JSON | yes | | | |
discovered_at | DATETIME | yes | | | |
approved | JSON | yes | | | |
approved_by_uuid | BINARY(16) | yes | | | |
approved_at | DATETIME | yes | | | |
uuid | BINARY(16) | no | primary | | |
created_date | DATETIME | yes | | | |
updated_date | DATETIME | yes | | | |
Indexes and constraints
- Index
ix_widget_plugin_version_plugin_uuid on plugin_uuid - Unique constraint
uix_widget_plugin_version on plugin_uuid, version