Skip to content

🤯 LobeHub - Super-Agents on Your Team. Add super-agents to the chats your team already uses.They take on work by themselves and get better every week.

🗃️ feat(database): add a config jsonb to workspace_members (#22665)

Rdmclin28f3ab0bc3933
diff --git a/docs/development/database-schema.dbml b/docs/development/database-schema.dbml
index a92d6786ded..5850d5d1498 100644
--- a/docs/development/database-schema.dbml
+++ b/docs/development/database-schema.dbml
@@ -5687,6 +5687,7 @@ table workspace_members {
role text [not null, default: 'member']
title text
responsibilities text
+ config jsonb [not null, default: `{}`]
joined_at "timestamp with time zone" [not null, default: `now()`]
updated_at "timestamp with time zone" [not null, default: `now()`]
deleted_at "timestamp with time zone"
diff --git a/packages/database/migrations/0212_workspace_member_config.sql b/packages/database/migrations/0212_workspace_member_config.sql
new file mode 100644
index 00000000000..ddfa0b5cde9
--- /dev/null
+++ b/packages/database/migrations/0212_workspace_member_config.sql
@@ -0,0 +1 @@
+ALTER TABLE "workspace_members" ADD COLUMN IF NOT EXISTS "config" jsonb DEFAULT '{}'::jsonb NOT NULL;
diff --git a/packages/database/migrations/meta/0202_snapshot.json b/packages/database/migrations/meta/0212_snapshot.json
similarity index 91%
rename from packages/database/migrations/meta/0202_snapshot.json
rename to packages/database/migrations/meta/0212_snapshot.json
index ece253eda4a..077e1536e00 100644
--- a/packages/database/migrations/meta/0202_snapshot.json
+++ b/packages/database/migrations/meta/0212_snapshot.json
@@ -1,28 +1,8 @@
{
- "_meta": {
- "columns": {},
- "schemas": {},
- "tables": {}
- },
+ "id": "839a7f65-d033-45df-8b5e-1f80a983f758",
+ "prevId": "45b20770-a9d5-4005-9171-07a02f3ec86d",
+ "version": "7",
"dialect": "postgresql",
- "enums": {},
- "id": "285ec8a4-45bc-409c-adfc-993edac7a4f8",
- "policies": {},
- "prevId": "e8a1f357-1bc4-496e-a22d-946c48f501f6",
- "roles": {},
- "schemas": {},
- "sequences": {
- "public.fts_search_sync_revision_seq": {
- "name": "fts_search_sync_revision_seq",
- "schema": "public",
- "increment": "1",
- "startWith": "1",
- "minValue": "1",
- "maxValue": "9223372036854775807",
- "cache": "1",
- "cycle": false
- }
- },
"tables": {
"public.acceptance_comments": {
"name": "acceptance_comments",
@@ -307,8 +287,12 @@
"name": "acceptance_comments_acceptance_id_acceptances_id_fk",
"tableFrom": "acceptance_comments",
"tableTo": "acceptances",
- "columnsFrom": ["acceptance_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "acceptance_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -316,8 +300,12 @@
"name": "acceptance_comments_author_user_id_users_id_fk",
"tableFrom": "acceptance_comments",
"tableTo": "users",
- "columnsFrom": ["author_user_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "author_user_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "set null",
"onUpdate": "no action"
},
@@ -325,8 +313,12 @@
"name": "acceptance_comments_author_agent_id_agents_id_fk",
"tableFrom": "acceptance_comments",
"tableTo": "agents",
- "columnsFrom": ["author_agent_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "author_agent_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "set null",
"onUpdate": "no action"
},
@@ -334,8 +326,12 @@
"name": "acceptance_comments_workspace_id_workspaces_id_fk",
"tableFrom": "acceptance_comments",
"tableTo": "workspaces",
- "columnsFrom": ["workspace_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "workspace_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -343,8 +339,12 @@
"name": "acceptance_comments_parent_comment_id_acceptance_comments_id_fk",
"tableFrom": "acceptance_comments",
"tableTo": "acceptance_comments",
- "columnsFrom": ["parent_comment_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "parent_comment_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "no action",
"onUpdate": "no action"
},
@@ -352,8 +352,12 @@
"name": "acceptance_comments_context_run_id_verify_runs_id_fk",
"tableFrom": "acceptance_comments",
"tableTo": "verify_runs",
- "columnsFrom": ["context_run_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "context_run_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "set null",
"onUpdate": "no action"
},
@@ -361,8 +365,12 @@
"name": "acceptance_comments_evidence_id_verify_evidence_id_fk",
"tableFrom": "acceptance_comments",
"tableTo": "verify_evidence",
- "columnsFrom": ["evidence_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "evidence_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "set null",
"onUpdate": "no action"
},
@@ -370,8 +378,12 @@
"name": "acceptance_comments_resolved_by_user_id_users_id_fk",
"tableFrom": "acceptance_comments",
"tableTo": "users",
- "columnsFrom": ["resolved_by_user_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "resolved_by_user_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "set null",
"onUpdate": "no action"
}
@@ -480,8 +492,12 @@
"name": "acceptance_flow_edges_flow_id_acceptance_flows_id_fk",
"tableFrom": "acceptance_flow_edges",
"tableTo": "acceptance_flows",
- "columnsFrom": ["flow_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "flow_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -489,8 +505,14 @@
"name": "acceptance_flow_edges_flow_id_source_node_id_acceptance_flow_nodes_flow_id_id_fk",
"tableFrom": "acceptance_flow_edges",
"tableTo": "acceptance_flow_nodes",
- "columnsFrom": ["flow_id", "source_node_id"],
- "columnsTo": ["flow_id", "id"],
+ "columnsFrom": [
+ "flow_id",
+ "source_node_id"
+ ],
+ "columnsTo": [
+ "flow_id",
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -498,8 +520,14 @@
"name": "acceptance_flow_edges_flow_id_target_node_id_acceptance_flow_nodes_flow_id_id_fk",
"tableFrom": "acceptance_flow_edges",
"tableTo": "acceptance_flow_nodes",
- "columnsFrom": ["flow_id", "target_node_id"],
- "columnsTo": ["flow_id", "id"],
+ "columnsFrom": [
+ "flow_id",
+ "target_node_id"
+ ],
+ "columnsTo": [
+ "flow_id",
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
}
@@ -627,8 +655,12 @@
"name": "acceptance_flow_nodes_flow_id_acceptance_flows_id_fk",
"tableFrom": "acceptance_flow_nodes",
"tableTo": "acceptance_flows",
- "columnsFrom": ["flow_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "flow_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -636,8 +668,12 @@
"name": "acceptance_flow_nodes_criterion_id_verify_criteria_id_fk",
"tableFrom": "acceptance_flow_nodes",
"tableTo": "verify_criteria",
- "columnsFrom": ["criterion_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "criterion_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "no action",
"onUpdate": "no action"
},
@@ -645,8 +681,12 @@
"name": "acceptance_flow_nodes_sub_flow_id_acceptance_flows_id_fk",
"tableFrom": "acceptance_flow_nodes",
"tableTo": "acceptance_flows",
- "columnsFrom": ["sub_flow_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "sub_flow_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "no action",
"onUpdate": "no action"
}
@@ -729,8 +769,12 @@
"name": "acceptance_flows_acceptance_id_acceptances_id_fk",
"tableFrom": "acceptance_flows",
"tableTo": "acceptances",
- "columnsFrom": ["acceptance_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "acceptance_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
}
@@ -1159,8 +1203,12 @@
"name": "agents_user_id_users_id_fk",
"tableFrom": "agents",
"tableTo": "users",
- "columnsFrom": ["user_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "user_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -1168,8 +1216,12 @@
"name": "agents_workspace_id_workspaces_id_fk",
"tableFrom": "agents",
"tableTo": "workspaces",
- "columnsFrom": ["workspace_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "workspace_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -1177,8 +1229,12 @@
"name": "agents_session_group_id_session_groups_id_fk",
"tableFrom": "agents",
"tableTo": "session_groups",
- "columnsFrom": ["session_group_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "session_group_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "set null",
"onUpdate": "no action"
}
@@ -1313,8 +1369,12 @@
"name": "agents_files_file_id_files_id_fk",
"tableFrom": "agents_files",
"tableTo": "files",
- "columnsFrom": ["file_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "file_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -1322,8 +1382,12 @@
"name": "agents_files_agent_id_agents_id_fk",
"tableFrom": "agents_files",
"tableTo": "agents",
- "columnsFrom": ["agent_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "agent_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -1331,8 +1395,12 @@
"name": "agents_files_user_id_users_id_fk",
"tableFrom": "agents_files",
"tableTo": "users",
- "columnsFrom": ["user_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "user_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -1340,8 +1408,12 @@
"name": "agents_files_workspace_id_workspaces_id_fk",
"tableFrom": "agents_files",
"tableTo": "workspaces",
- "columnsFrom": ["workspace_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "workspace_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
}
@@ -1349,7 +1421,11 @@
"compositePrimaryKeys": {
"agents_files_file_id_agent_id_user_id_pk": {
"name": "agents_files_file_id_agent_id_user_id_pk",
- "columns": ["file_id", "agent_id", "user_id"]
+ "columns": [
+ "file_id",
+ "agent_id",
+ "user_id"
+ ]
}
},
"uniqueConstraints": {},
@@ -1481,8 +1557,12 @@
"name": "agents_knowledge_bases_agent_id_agents_id_fk",
"tableFrom": "agents_knowledge_bases",
"tableTo": "agents",
- "columnsFrom": ["agent_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "agent_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -1490,8 +1570,12 @@
"name": "agents_knowledge_bases_knowledge_base_id_knowledge_bases_id_fk",
"tableFrom": "agents_knowledge_bases",
"tableTo": "knowledge_bases",
- "columnsFrom": ["knowledge_base_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "knowledge_base_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -1499,8 +1583,12 @@
"name": "agents_knowledge_bases_user_id_users_id_fk",
"tableFrom": "agents_knowledge_bases",
"tableTo": "users",
- "columnsFrom": ["user_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "user_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -1508,8 +1596,12 @@
"name": "agents_knowledge_bases_workspace_id_workspaces_id_fk",
"tableFrom": "agents_knowledge_bases",
"tableTo": "workspaces",
- "columnsFrom": ["workspace_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "workspace_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
}
@@ -1517,7 +1609,10 @@
"compositePrimaryKeys": {
"agents_knowledge_bases_agent_id_knowledge_base_id_pk": {
"name": "agents_knowledge_bases_agent_id_knowledge_base_id_pk",
- "columns": ["agent_id", "knowledge_base_id"]
+ "columns": [
+ "agent_id",
+ "knowledge_base_id"
+ ]
}
},
"uniqueConstraints": {},
@@ -1610,232 +1705,251 @@
"notNull": false,
"default": "'{}'::jsonb"
},
- "revoked_at": {
- "name": "revoked_at",
- "type": "timestamp with time zone",
- "primaryKey": false,
- "notNull": false
- },
- "accessed_at": {
- "name": "accessed_at",
- "type": "timestamp with time zone",
- "primaryKey": false,
- "notNull": true,
- "default": "now()"
- },
- "created_at": {
- "name": "created_at",
- "type": "timestamp with time zone",
- "primaryKey": false,
- "notNull": true,
- "default": "now()"
- },
- "updated_at": {
- "name": "updated_at",
- "type": "timestamp with time zone",
- "primaryKey": false,
- "notNull": true,
- "default": "now()"
- }
- },
- "indexes": {
- "agent_accounts_agent_kind_provider_identifier_unique": {
- "name": "agent_accounts_agent_kind_provider_identifier_unique",
- "columns": [
- {
- "expression": "agent_id",
- "isExpression": false,
- "asc": true,
- "nulls": "last"
- },
- {
- "expression": "kind",
- "isExpression": false,
- "asc": true,
- "nulls": "last"
- },
- {
- "expression": "provider",
- "isExpression": false,
- "asc": true,
- "nulls": "last"
- },
- {
- "expression": "identifier",
- "isExpression": false,
- "asc": true,
- "nulls": "last"
- }
- ],
- "isUnique": true,
- "where": "\"agent_accounts\".\"status\" <> 'revoked'",
- "concurrently": false,
- "method": "btree",
- "with": {}
- },
- "agent_accounts_provider_identifier_unique": {
- "name": "agent_accounts_provider_identifier_unique",
- "columns": [
- {
- "expression": "provider",
- "isExpression": false,
- "asc": true,
- "nulls": "last"
- },
- {
- "expression": "identifier",
- "isExpression": false,
- "asc": true,
- "nulls": "last"
- }
- ],
- "isUnique": true,
- "where": "\"agent_accounts\".\"status\" <> 'revoked'",
- "concurrently": false,
- "method": "btree",
- "with": {}
- },
- "agent_accounts_agent_id_idx": {
- "name": "agent_accounts_agent_id_idx",
- "columns": [
- {
- "expression": "agent_id",
- "isExpression": false,
- "asc": true,
- "nulls": "last"
- }
- ],
- "isUnique": false,
- "concurrently": false,
- "method": "btree",
- "with": {}
- },
- "agent_accounts_user_id_idx": {
- "name": "agent_accounts_user_id_idx",
- "columns": [
- {
- "expression": "user_id",
- "isExpression": false,
- "asc": true,
- "nulls": "last"
- }
- ],
- "isUnique": false,
- "concurrently": false,
- "method": "btree",
- "with": {}
- },
- "agent_accounts_workspace_id_idx": {
- "name": "agent_accounts_workspace_id_idx",
- "columns": [
- {
- "expression": "workspace_id",
- "isExpression": false,
- "asc": true,
- "nulls": "last"
- }
- ],
- "isUnique": false,
- "concurrently": false,
- "method": "btree",
- "with": {}
- }
- },
- "foreignKeys": {
- "agent_accounts_agent_id_agents_id_fk": {
- "name": "agent_accounts_agent_id_agents_id_fk",
- "tableFrom": "agent_accounts",
- "tableTo": "agents",
- "columnsFrom": ["agent_id"],
- "columnsTo": ["id"],
- "onDelete": "cascade",
- "onUpdate": "no action"
- },
- "agent_accounts_user_id_users_id_fk": {
- "name": "agent_accounts_user_id_users_id_fk",
- "tableFrom": "agent_accounts",
- "tableTo": "users",
- "columnsFrom": ["user_id"],
- "columnsTo": ["id"],
- "onDelete": "cascade",
- "onUpdate": "no action"
- },
- "agent_accounts_workspace_id_workspaces_id_fk": {
- "name": "agent_accounts_workspace_id_workspaces_id_fk",
- "tableFrom": "agent_accounts",
- "tableTo": "workspaces",
- "columnsFrom": ["workspace_id"],
- "columnsTo": ["id"],
- "onDelete": "cascade",
- "onUpdate": "no action"
- }
- },
- "compositePrimaryKeys": {},
- "uniqueConstraints": {},
- "policies": {},
- "checkConstraints": {},
- "isRLSEnabled": false
- },
- "public.agent_bot_providers": {
- "name": "agent_bot_providers",
- "schema": "",
- "columns": {
- "id": {
- "name": "id",
- "type": "uuid",
- "primaryKey": true,
- "notNull": true,
- "default": "gen_random_uuid()"
- },
- "agent_id": {
- "name": "agent_id",
- "type": "text",
- "primaryKey": false,
- "notNull": true
- },
- "user_id": {
- "name": "user_id",
- "type": "text",
- "primaryKey": false,
- "notNull": true
- },
- "workspace_id": {
- "name": "workspace_id",
- "type": "text",
- "primaryKey": false,
- "notNull": false
- },
- "platform": {
- "name": "platform",
- "type": "varchar(50)",
- "primaryKey": false,
- "notNull": true
- },
- "application_id": {
- "name": "application_id",
- "type": "varchar(255)",
- "primaryKey": false,
- "notNull": true
- },
- "credentials": {
- "name": "credentials",
- "type": "text",
- "primaryKey": false,
- "notNull": false
- },
"settings": {
"name": "settings",
"type": "jsonb",
"primaryKey": false,
- "notNull": false,
+ "notNull": true,
"default": "'{}'::jsonb"
},
- "enabled": {
- "name": "enabled",
- "type": "boolean",
+ "revoked_at": {
+ "name": "revoked_at",
+ "type": "timestamp with time zone",
"primaryKey": false,
- "notNull": true,
- "default": true
+ "notNull": false
+ },
+ "accessed_at": {
+ "name": "accessed_at",
+ "type": "timestamp with time zone",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "now()"
+ },
+ "created_at": {
+ "name": "created_at",
+ "type": "timestamp with time zone",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "now()"
+ },
+ "updated_at": {
+ "name": "updated_at",
+ "type": "timestamp with time zone",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "now()"
+ }
+ },
+ "indexes": {
+ "agent_accounts_agent_kind_provider_identifier_unique": {
+ "name": "agent_accounts_agent_kind_provider_identifier_unique",
+ "columns": [
+ {
+ "expression": "agent_id",
+ "isExpression": false,
+ "asc": true,
+ "nulls": "last"
+ },
+ {
+ "expression": "kind",
+ "isExpression": false,
+ "asc": true,
+ "nulls": "last"
+ },
+ {
+ "expression": "provider",
+ "isExpression": false,
+ "asc": true,
+ "nulls": "last"
+ },
+ {
+ "expression": "identifier",
+ "isExpression": false,
+ "asc": true,
+ "nulls": "last"
+ }
+ ],
+ "isUnique": true,
+ "where": "\"agent_accounts\".\"status\" <> 'revoked'",
+ "concurrently": false,
+ "method": "btree",
+ "with": {}
+ },
+ "agent_accounts_provider_identifier_unique": {
+ "name": "agent_accounts_provider_identifier_unique",
+ "columns": [
+ {
+ "expression": "provider",
+ "isExpression": false,
+ "asc": true,
+ "nulls": "last"
+ },
+ {
+ "expression": "identifier",
+ "isExpression": false,
+ "asc": true,
+ "nulls": "last"
+ }
+ ],
+ "isUnique": true,
+ "where": "\"agent_accounts\".\"status\" <> 'revoked'",
+ "concurrently": false,
+ "method": "btree",
+ "with": {}
+ },
+ "agent_accounts_agent_id_idx": {
+ "name": "agent_accounts_agent_id_idx",
+ "columns": [
+ {
+ "expression": "agent_id",
+ "isExpression": false,
+ "asc": true,
+ "nulls": "last"
+ }
+ ],
+ "isUnique": false,
+ "concurrently": false,
+ "method": "btree",
+ "with": {}
+ },
+ "agent_accounts_user_id_idx": {
+ "name": "agent_accounts_user_id_idx",
+ "columns": [
+ {
+ "expression": "user_id",
+ "isExpression": false,
+ "asc": true,
+ "nulls": "last"
+ }
+ ],
+ "isUnique": false,
+ "concurrently": false,
+ "method": "btree",
+ "with": {}
+ },
+ "agent_accounts_workspace_id_idx": {
+ "name": "agent_accounts_workspace_id_idx",
+ "columns": [
+ {
+ "expression": "workspace_id",
+ "isExpression": false,
+ "asc": true,
+ "nulls": "last"
+ }
+ ],
+ "isUnique": false,
+ "concurrently": false,
+ "method": "btree",
+ "with": {}
+ }
+ },
+ "foreignKeys": {
+ "agent_accounts_agent_id_agents_id_fk": {
+ "name": "agent_accounts_agent_id_agents_id_fk",
+ "tableFrom": "agent_accounts",
+ "tableTo": "agents",
+ "columnsFrom": [
+ "agent_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ },
+ "agent_accounts_user_id_users_id_fk": {
+ "name": "agent_accounts_user_id_users_id_fk",
+ "tableFrom": "agent_accounts",
+ "tableTo": "users",
+ "columnsFrom": [
+ "user_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ },
+ "agent_accounts_workspace_id_workspaces_id_fk": {
+ "name": "agent_accounts_workspace_id_workspaces_id_fk",
+ "tableFrom": "agent_accounts",
+ "tableTo": "workspaces",
+ "columnsFrom": [
+ "workspace_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ }
+ },
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {},
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.agent_bot_providers": {
+ "name": "agent_bot_providers",
+ "schema": "",
+ "columns": {
+ "id": {
+ "name": "id",
+ "type": "uuid",
+ "primaryKey": true,
+ "notNull": true,
+ "default": "gen_random_uuid()"
+ },
+ "agent_id": {
+ "name": "agent_id",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "user_id": {
+ "name": "user_id",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "workspace_id": {
+ "name": "workspace_id",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "platform": {
+ "name": "platform",
+ "type": "varchar(50)",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "application_id": {
+ "name": "application_id",
+ "type": "varchar(255)",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "credentials": {
+ "name": "credentials",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "settings": {
+ "name": "settings",
+ "type": "jsonb",
+ "primaryKey": false,
+ "notNull": false,
+ "default": "'{}'::jsonb"
+ },
+ "enabled": {
+ "name": "enabled",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": true,
+ "default": true
},
"accessed_at": {
"name": "accessed_at",
@@ -1947,8 +2061,12 @@
"name": "agent_bot_providers_agent_id_agents_id_fk",
"tableFrom": "agent_bot_providers",
"tableTo": "agents",
- "columnsFrom": ["agent_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "agent_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -1956,8 +2074,12 @@
"name": "agent_bot_providers_user_id_users_id_fk",
"tableFrom": "agent_bot_providers",
"tableTo": "users",
- "columnsFrom": ["user_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "user_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -1965,8 +2087,12 @@
"name": "agent_bot_providers_workspace_id_workspaces_id_fk",
"tableFrom": "agent_bot_providers",
"tableTo": "workspaces",
- "columnsFrom": ["workspace_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "workspace_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
}
@@ -2232,8 +2358,12 @@
"name": "agent_cron_jobs_agent_id_agents_id_fk",
"tableFrom": "agent_cron_jobs",
"tableTo": "agents",
- "columnsFrom": ["agent_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "agent_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -2241,8 +2371,12 @@
"name": "agent_cron_jobs_group_id_chat_groups_id_fk",
"tableFrom": "agent_cron_jobs",
"tableTo": "chat_groups",
- "columnsFrom": ["group_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "group_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -2250,8 +2384,12 @@
"name": "agent_cron_jobs_user_id_users_id_fk",
"tableFrom": "agent_cron_jobs",
"tableTo": "users",
- "columnsFrom": ["user_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "user_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -2259,8 +2397,12 @@
"name": "agent_cron_jobs_workspace_id_workspaces_id_fk",
"tableFrom": "agent_cron_jobs",
"tableTo": "workspaces",
- "columnsFrom": ["workspace_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "workspace_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
}
@@ -2698,8 +2840,12 @@
"name": "agent_documents_user_id_users_id_fk",
"tableFrom": "agent_documents",
"tableTo": "users",
- "columnsFrom": ["user_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "user_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -2707,8 +2853,12 @@
"name": "agent_documents_workspace_id_workspaces_id_fk",
"tableFrom": "agent_documents",
"tableTo": "workspaces",
- "columnsFrom": ["workspace_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "workspace_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -2716,8 +2866,12 @@
"name": "agent_documents_agent_id_agents_id_fk",
"tableFrom": "agent_documents",
"tableTo": "agents",
- "columnsFrom": ["agent_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "agent_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -2725,8 +2879,12 @@
"name": "agent_documents_document_id_documents_id_fk",
"tableFrom": "agent_documents",
"tableTo": "documents",
- "columnsFrom": ["document_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "document_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -2734,8 +2892,12 @@
"name": "agent_documents_deleted_by_user_id_users_id_fk",
"tableFrom": "agent_documents",
"tableTo": "users",
- "columnsFrom": ["deleted_by_user_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "deleted_by_user_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "set null",
"onUpdate": "no action"
},
@@ -2743,8 +2905,12 @@
"name": "agent_documents_deleted_by_agent_id_agents_id_fk",
"tableFrom": "agent_documents",
"tableTo": "agents",
- "columnsFrom": ["deleted_by_agent_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "deleted_by_agent_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "set null",
"onUpdate": "no action"
}
@@ -2755,70 +2921,388 @@
"checkConstraints": {},
"isRLSEnabled": false
},
- "public.agent_eval_benchmarks": {
- "name": "agent_eval_benchmarks",
+ "public.agent_eval_memories": {
+ "name": "agent_eval_memories",
"schema": "",
"columns": {
"id": {
"name": "id",
- "type": "text",
+ "type": "uuid",
"primaryKey": true,
- "notNull": true
+ "notNull": true,
+ "default": "gen_random_uuid()"
},
- "identifier": {
- "name": "identifier",
+ "user_id": {
+ "name": "user_id",
"type": "text",
"primaryKey": false,
"notNull": true
},
- "name": {
- "name": "name",
+ "workspace_id": {
+ "name": "workspace_id",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "run_id": {
+ "name": "run_id",
"type": "text",
"primaryKey": false,
"notNull": true
},
- "description": {
- "name": "description",
+ "topic_id": {
+ "name": "topic_id",
"type": "text",
"primaryKey": false,
"notNull": false
},
- "rubrics": {
- "name": "rubrics",
- "type": "jsonb",
+ "thread_id": {
+ "name": "thread_id",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "attempt_id": {
+ "name": "attempt_id",
+ "type": "text",
"primaryKey": false,
"notNull": true
},
- "reference_url": {
- "name": "reference_url",
+ "layer": {
+ "name": "layer",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "source": {
+ "name": "source",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "fixture_hash": {
+ "name": "fixture_hash",
"type": "text",
"primaryKey": false,
"notNull": false
},
- "metadata": {
- "name": "metadata",
- "type": "jsonb",
+ "title": {
+ "name": "title",
+ "type": "text",
"primaryKey": false,
"notNull": false
},
- "user_id": {
- "name": "user_id",
+ "summary": {
+ "name": "summary",
"type": "text",
"primaryKey": false,
"notNull": false
},
- "workspace_id": {
- "name": "workspace_id",
+ "details": {
+ "name": "details",
"type": "text",
"primaryKey": false,
"notNull": false
},
- "is_system": {
- "name": "is_system",
- "type": "boolean",
+ "memory_category": {
+ "name": "memory_category",
+ "type": "text",
"primaryKey": false,
- "notNull": true,
- "default": true
+ "notNull": false
+ },
+ "memory_type": {
+ "name": "memory_type",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "tags": {
+ "name": "tags",
+ "type": "jsonb",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "payload": {
+ "name": "payload",
+ "type": "jsonb",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "embedding": {
+ "name": "embedding",
+ "type": "vector(1024)",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "captured_at": {
+ "name": "captured_at",
+ "type": "timestamp with time zone",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "removed_reason": {
+ "name": "removed_reason",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "metadata": {
+ "name": "metadata",
+ "type": "jsonb",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "accessed_at": {
+ "name": "accessed_at",
+ "type": "timestamp with time zone",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "now()"
+ },
+ "created_at": {
+ "name": "created_at",
+ "type": "timestamp with time zone",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "now()"
+ },
+ "updated_at": {
+ "name": "updated_at",
+ "type": "timestamp with time zone",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "now()"
+ }
+ },
+ "indexes": {
+ "agent_eval_memories_attempt_id_idx": {
+ "name": "agent_eval_memories_attempt_id_idx",
+ "columns": [
+ {
+ "expression": "attempt_id",
+ "isExpression": false,
+ "asc": true,
+ "nulls": "last"
+ }
+ ],
+ "isUnique": false,
+ "concurrently": false,
+ "method": "btree",
+ "with": {}
+ },
+ "agent_eval_memories_run_id_idx": {
+ "name": "agent_eval_memories_run_id_idx",
+ "columns": [
+ {
+ "expression": "run_id",
+ "isExpression": false,
+ "asc": true,
+ "nulls": "last"
+ }
+ ],
+ "isUnique": false,
+ "concurrently": false,
+ "method": "btree",
+ "with": {}
+ },
+ "agent_eval_memories_topic_id_idx": {
+ "name": "agent_eval_memories_topic_id_idx",
+ "columns": [
+ {
+ "expression": "topic_id",
+ "isExpression": false,
+ "asc": true,
+ "nulls": "last"
+ }
+ ],
+ "isUnique": false,
+ "concurrently": false,
+ "method": "btree",
+ "with": {}
+ },
+ "agent_eval_memories_thread_id_idx": {
+ "name": "agent_eval_memories_thread_id_idx",
+ "columns": [
+ {
+ "expression": "thread_id",
+ "isExpression": false,
+ "asc": true,
+ "nulls": "last"
+ }
+ ],
+ "isUnique": false,
+ "concurrently": false,
+ "method": "btree",
+ "with": {}
+ },
+ "agent_eval_memories_user_id_idx": {
+ "name": "agent_eval_memories_user_id_idx",
+ "columns": [
+ {
+ "expression": "user_id",
+ "isExpression": false,
+ "asc": true,
+ "nulls": "last"
+ }
+ ],
+ "isUnique": false,
+ "concurrently": false,
+ "method": "btree",
+ "with": {}
+ },
+ "agent_eval_memories_workspace_id_idx": {
+ "name": "agent_eval_memories_workspace_id_idx",
+ "columns": [
+ {
+ "expression": "workspace_id",
+ "isExpression": false,
+ "asc": true,
+ "nulls": "last"
+ }
+ ],
+ "isUnique": false,
+ "concurrently": false,
+ "method": "btree",
+ "with": {}
+ }
+ },
+ "foreignKeys": {
+ "agent_eval_memories_user_id_users_id_fk": {
+ "name": "agent_eval_memories_user_id_users_id_fk",
+ "tableFrom": "agent_eval_memories",
+ "tableTo": "users",
+ "columnsFrom": [
+ "user_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ },
+ "agent_eval_memories_workspace_id_workspaces_id_fk": {
+ "name": "agent_eval_memories_workspace_id_workspaces_id_fk",
+ "tableFrom": "agent_eval_memories",
+ "tableTo": "workspaces",
+ "columnsFrom": [
+ "workspace_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ },
+ "agent_eval_memories_run_id_agent_eval_runs_id_fk": {
+ "name": "agent_eval_memories_run_id_agent_eval_runs_id_fk",
+ "tableFrom": "agent_eval_memories",
+ "tableTo": "agent_eval_runs",
+ "columnsFrom": [
+ "run_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ },
+ "agent_eval_memories_topic_id_topics_id_fk": {
+ "name": "agent_eval_memories_topic_id_topics_id_fk",
+ "tableFrom": "agent_eval_memories",
+ "tableTo": "topics",
+ "columnsFrom": [
+ "topic_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
+ "onDelete": "set null",
+ "onUpdate": "no action"
+ },
+ "agent_eval_memories_thread_id_threads_id_fk": {
+ "name": "agent_eval_memories_thread_id_threads_id_fk",
+ "tableFrom": "agent_eval_memories",
+ "tableTo": "threads",
+ "columnsFrom": [
+ "thread_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
+ "onDelete": "set null",
+ "onUpdate": "no action"
+ }
+ },
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {},
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.agent_eval_benchmarks": {
+ "name": "agent_eval_benchmarks",
+ "schema": "",
+ "columns": {
+ "id": {
+ "name": "id",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "identifier": {
+ "name": "identifier",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "name": {
+ "name": "name",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "description": {
+ "name": "description",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "rubrics": {
+ "name": "rubrics",
+ "type": "jsonb",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "reference_url": {
+ "name": "reference_url",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "metadata": {
+ "name": "metadata",
+ "type": "jsonb",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "user_id": {
+ "name": "user_id",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "workspace_id": {
+ "name": "workspace_id",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "is_system": {
+ "name": "is_system",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": true,
+ "default": true
},
"accessed_at": {
"name": "accessed_at",
@@ -2938,8 +3422,12 @@
"name": "agent_eval_benchmarks_user_id_users_id_fk",
"tableFrom": "agent_eval_benchmarks",
"tableTo": "users",
- "columnsFrom": ["user_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "user_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -2947,8 +3435,12 @@
"name": "agent_eval_benchmarks_workspace_id_workspaces_id_fk",
"tableFrom": "agent_eval_benchmarks",
"tableTo": "workspaces",
- "columnsFrom": ["workspace_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "workspace_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
}
@@ -3162,8 +3654,12 @@
"name": "agent_eval_datasets_benchmark_id_agent_eval_benchmarks_id_fk",
"tableFrom": "agent_eval_datasets",
"tableTo": "agent_eval_benchmarks",
- "columnsFrom": ["benchmark_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "benchmark_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -3171,8 +3667,12 @@
"name": "agent_eval_datasets_source_experiment_id_agent_eval_experiments_id_fk",
"tableFrom": "agent_eval_datasets",
"tableTo": "agent_eval_experiments",
- "columnsFrom": ["source_experiment_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "source_experiment_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "set null",
"onUpdate": "no action"
},
@@ -3180,8 +3680,12 @@
"name": "agent_eval_datasets_user_id_users_id_fk",
"tableFrom": "agent_eval_datasets",
"tableTo": "users",
- "columnsFrom": ["user_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "user_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -3189,8 +3693,197 @@
"name": "agent_eval_datasets_workspace_id_workspaces_id_fk",
"tableFrom": "agent_eval_datasets",
"tableTo": "workspaces",
- "columnsFrom": ["workspace_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "workspace_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ }
+ },
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {},
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.agent_eval_environments": {
+ "name": "agent_eval_environments",
+ "schema": "",
+ "columns": {
+ "id": {
+ "name": "id",
+ "type": "uuid",
+ "primaryKey": true,
+ "notNull": true,
+ "default": "gen_random_uuid()"
+ },
+ "user_id": {
+ "name": "user_id",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "workspace_id": {
+ "name": "workspace_id",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "identifier": {
+ "name": "identifier",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "name": {
+ "name": "name",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "description": {
+ "name": "description",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "config": {
+ "name": "config",
+ "type": "jsonb",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "metadata": {
+ "name": "metadata",
+ "type": "jsonb",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "accessed_at": {
+ "name": "accessed_at",
+ "type": "timestamp with time zone",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "now()"
+ },
+ "created_at": {
+ "name": "created_at",
+ "type": "timestamp with time zone",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "now()"
+ },
+ "updated_at": {
+ "name": "updated_at",
+ "type": "timestamp with time zone",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "now()"
+ }
+ },
+ "indexes": {
+ "agent_eval_environments_user_id_idx": {
+ "name": "agent_eval_environments_user_id_idx",
+ "columns": [
+ {
+ "expression": "user_id",
+ "isExpression": false,
+ "asc": true,
+ "nulls": "last"
+ }
+ ],
+ "isUnique": false,
+ "concurrently": false,
+ "method": "btree",
+ "with": {}
+ },
+ "agent_eval_environments_workspace_id_idx": {
+ "name": "agent_eval_environments_workspace_id_idx",
+ "columns": [
+ {
+ "expression": "workspace_id",
+ "isExpression": false,
+ "asc": true,
+ "nulls": "last"
+ }
+ ],
+ "isUnique": false,
+ "concurrently": false,
+ "method": "btree",
+ "with": {}
+ },
+ "agent_eval_environments_identifier_user_id_unique": {
+ "name": "agent_eval_environments_identifier_user_id_unique",
+ "columns": [
+ {
+ "expression": "identifier",
+ "isExpression": false,
+ "asc": true,
+ "nulls": "last"
+ },
+ {
+ "expression": "user_id",
+ "isExpression": false,
+ "asc": true,
+ "nulls": "last"
+ }
+ ],
+ "isUnique": true,
+ "where": "\"agent_eval_environments\".\"identifier\" IS NOT NULL AND \"agent_eval_environments\".\"workspace_id\" IS NULL",
+ "concurrently": false,
+ "method": "btree",
+ "with": {}
+ },
+ "agent_eval_environments_identifier_workspace_id_unique": {
+ "name": "agent_eval_environments_identifier_workspace_id_unique",
+ "columns": [
+ {
+ "expression": "identifier",
+ "isExpression": false,
+ "asc": true,
+ "nulls": "last"
+ },
+ {
+ "expression": "workspace_id",
+ "isExpression": false,
+ "asc": true,
+ "nulls": "last"
+ }
+ ],
+ "isUnique": true,
+ "where": "\"agent_eval_environments\".\"identifier\" IS NOT NULL AND \"agent_eval_environments\".\"workspace_id\" IS NOT NULL",
+ "concurrently": false,
+ "method": "btree",
+ "with": {}
+ }
+ },
+ "foreignKeys": {
+ "agent_eval_environments_user_id_users_id_fk": {
+ "name": "agent_eval_environments_user_id_users_id_fk",
+ "tableFrom": "agent_eval_environments",
+ "tableTo": "users",
+ "columnsFrom": [
+ "user_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ },
+ "agent_eval_environments_workspace_id_workspaces_id_fk": {
+ "name": "agent_eval_environments_workspace_id_workspaces_id_fk",
+ "tableFrom": "agent_eval_environments",
+ "tableTo": "workspaces",
+ "columnsFrom": [
+ "workspace_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
}
@@ -3289,8 +3982,12 @@
"name": "agent_eval_experiment_benchmarks_experiment_id_agent_eval_experiments_id_fk",
"tableFrom": "agent_eval_experiment_benchmarks",
"tableTo": "agent_eval_experiments",
- "columnsFrom": ["experiment_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "experiment_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -3298,8 +3995,12 @@
"name": "agent_eval_experiment_benchmarks_benchmark_id_agent_eval_benchmarks_id_fk",
"tableFrom": "agent_eval_experiment_benchmarks",
"tableTo": "agent_eval_benchmarks",
- "columnsFrom": ["benchmark_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "benchmark_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -3307,8 +4008,12 @@
"name": "agent_eval_experiment_benchmarks_user_id_users_id_fk",
"tableFrom": "agent_eval_experiment_benchmarks",
"tableTo": "users",
- "columnsFrom": ["user_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "user_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -3316,8 +4021,12 @@
"name": "agent_eval_experiment_benchmarks_workspace_id_workspaces_id_fk",
"tableFrom": "agent_eval_experiment_benchmarks",
"tableTo": "workspaces",
- "columnsFrom": ["workspace_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "workspace_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
}
@@ -3325,7 +4034,10 @@
"compositePrimaryKeys": {
"agent_eval_experiment_benchmarks_experiment_id_benchmark_id_pk": {
"name": "agent_eval_experiment_benchmarks_experiment_id_benchmark_id_pk",
- "columns": ["experiment_id", "benchmark_id"]
+ "columns": [
+ "experiment_id",
+ "benchmark_id"
+ ]
}
},
"uniqueConstraints": {},
@@ -3432,8 +4144,12 @@
"name": "agent_eval_experiments_user_id_users_id_fk",
"tableFrom": "agent_eval_experiments",
"tableTo": "users",
- "columnsFrom": ["user_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "user_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -3441,8 +4157,12 @@
"name": "agent_eval_experiments_workspace_id_workspaces_id_fk",
"tableFrom": "agent_eval_experiments",
"tableTo": "workspaces",
- "columnsFrom": ["workspace_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "workspace_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
}
@@ -3586,8 +4306,12 @@
"name": "agent_eval_run_topics_user_id_users_id_fk",
"tableFrom": "agent_eval_run_topics",
"tableTo": "users",
- "columnsFrom": ["user_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "user_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -3595,8 +4319,12 @@
"name": "agent_eval_run_topics_workspace_id_workspaces_id_fk",
"tableFrom": "agent_eval_run_topics",
"tableTo": "workspaces",
- "columnsFrom": ["workspace_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "workspace_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -3604,8 +4332,12 @@
"name": "agent_eval_run_topics_run_id_agent_eval_runs_id_fk",
"tableFrom": "agent_eval_run_topics",
"tableTo": "agent_eval_runs",
- "columnsFrom": ["run_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "run_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -3613,8 +4345,12 @@
"name": "agent_eval_run_topics_topic_id_topics_id_fk",
"tableFrom": "agent_eval_run_topics",
"tableTo": "topics",
- "columnsFrom": ["topic_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "topic_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -3622,8 +4358,12 @@
"name": "agent_eval_run_topics_test_case_id_agent_eval_test_cases_id_fk",
"tableFrom": "agent_eval_run_topics",
"tableTo": "agent_eval_test_cases",
- "columnsFrom": ["test_case_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "test_case_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
}
@@ -3631,7 +4371,10 @@
"compositePrimaryKeys": {
"agent_eval_run_topics_run_id_topic_id_pk": {
"name": "agent_eval_run_topics_run_id_topic_id_pk",
- "columns": ["run_id", "topic_id"]
+ "columns": [
+ "run_id",
+ "topic_id"
+ ]
}
},
"uniqueConstraints": {},
@@ -3850,8 +4593,12 @@
"name": "agent_eval_runs_dataset_id_agent_eval_datasets_id_fk",
"tableFrom": "agent_eval_runs",
"tableTo": "agent_eval_datasets",
- "columnsFrom": ["dataset_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "dataset_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -3859,8 +4606,12 @@
"name": "agent_eval_runs_experiment_id_agent_eval_experiments_id_fk",
"tableFrom": "agent_eval_runs",
"tableTo": "agent_eval_experiments",
- "columnsFrom": ["experiment_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "experiment_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "no action",
"onUpdate": "no action"
},
@@ -3868,8 +4619,12 @@
"name": "agent_eval_runs_target_agent_id_agents_id_fk",
"tableFrom": "agent_eval_runs",
"tableTo": "agents",
- "columnsFrom": ["target_agent_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "target_agent_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -3877,8 +4632,12 @@
"name": "agent_eval_runs_user_id_users_id_fk",
"tableFrom": "agent_eval_runs",
"tableTo": "users",
- "columnsFrom": ["user_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "user_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -3886,8 +4645,12 @@
"name": "agent_eval_runs_workspace_id_workspaces_id_fk",
"tableFrom": "agent_eval_runs",
"tableTo": "workspaces",
- "columnsFrom": ["workspace_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "workspace_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -3895,8 +4658,12 @@
"name": "agent_eval_runs_parent_run_id_agent_eval_runs_id_fk",
"tableFrom": "agent_eval_runs",
"tableTo": "agent_eval_runs",
- "columnsFrom": ["parent_run_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "parent_run_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "no action",
"onUpdate": "no action"
}
@@ -3921,7 +4688,7 @@
"name": "user_id",
"type": "text",
"primaryKey": false,
- "notNull": true
+ "notNull": false
},
"workspace_id": {
"name": "workspace_id",
@@ -3935,6 +4702,12 @@
"primaryKey": false,
"notNull": true
},
+ "environment_id": {
+ "name": "environment_id",
+ "type": "uuid",
+ "primaryKey": false,
+ "notNull": false
+ },
"content": {
"name": "content",
"type": "jsonb",
@@ -4018,6 +4791,21 @@
"method": "btree",
"with": {}
},
+ "agent_eval_test_cases_environment_id_idx": {
+ "name": "agent_eval_test_cases_environment_id_idx",
+ "columns": [
+ {
+ "expression": "environment_id",
+ "isExpression": false,
+ "asc": true,
+ "nulls": "last"
+ }
+ ],
+ "isUnique": false,
+ "concurrently": false,
+ "method": "btree",
+ "with": {}
+ },
"agent_eval_test_cases_sort_order_idx": {
"name": "agent_eval_test_cases_sort_order_idx",
"columns": [
@@ -4054,8 +4842,12 @@
"name": "agent_eval_test_cases_user_id_users_id_fk",
"tableFrom": "agent_eval_test_cases",
"tableTo": "users",
- "columnsFrom": ["user_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "user_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -4063,8 +4855,12 @@
"name": "agent_eval_test_cases_workspace_id_workspaces_id_fk",
"tableFrom": "agent_eval_test_cases",
"tableTo": "workspaces",
- "columnsFrom": ["workspace_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "workspace_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -4072,10 +4868,27 @@
"name": "agent_eval_test_cases_dataset_id_agent_eval_datasets_id_fk",
"tableFrom": "agent_eval_test_cases",
"tableTo": "agent_eval_datasets",
- "columnsFrom": ["dataset_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "dataset_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
+ },
+ "agent_eval_test_cases_environment_id_agent_eval_environments_id_fk": {
+ "name": "agent_eval_test_cases_environment_id_agent_eval_environments_id_fk",
+ "tableFrom": "agent_eval_test_cases",
+ "tableTo": "agent_eval_environments",
+ "columnsFrom": [
+ "environment_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
+ "onDelete": "set null",
+ "onUpdate": "no action"
}
},
"compositePrimaryKeys": {},
@@ -4151,8 +4964,12 @@
"name": "agent_history_job_agents_job_id_agent_history_jobs_id_fk",
"tableFrom": "agent_history_job_agents",
"tableTo": "agent_history_jobs",
- "columnsFrom": ["job_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "job_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -4160,8 +4977,12 @@
"name": "agent_history_job_agents_agent_id_agents_id_fk",
"tableFrom": "agent_history_job_agents",
"tableTo": "agents",
- "columnsFrom": ["agent_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "agent_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
}
@@ -4239,8 +5060,12 @@
"name": "agent_history_job_groups_job_id_agent_history_jobs_id_fk",
"tableFrom": "agent_history_job_groups",
"tableTo": "agent_history_jobs",
- "columnsFrom": ["job_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "job_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -4248,8 +5073,12 @@
"name": "agent_history_job_groups_group_id_chat_groups_id_fk",
"tableFrom": "agent_history_job_groups",
"tableTo": "chat_groups",
- "columnsFrom": ["group_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "group_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
}
@@ -4373,8 +5202,12 @@
"name": "agent_history_job_topics_job_id_agent_history_jobs_id_fk",
"tableFrom": "agent_history_job_topics",
"tableTo": "agent_history_jobs",
- "columnsFrom": ["job_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "job_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -4382,8 +5215,12 @@
"name": "agent_history_job_topics_topic_id_topics_id_fk",
"tableFrom": "agent_history_job_topics",
"tableTo": "topics",
- "columnsFrom": ["topic_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "topic_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
}
@@ -4849,6 +5686,21 @@
"method": "btree",
"with": {}
},
+ "agent_inbox_messages_topic_id_idx": {
+ "name": "agent_inbox_messages_topic_id_idx",
+ "columns": [
+ {
+ "expression": "topic_id",
+ "isExpression": false,
+ "asc": true,
+ "nulls": "last"
+ }
+ ],
+ "isUnique": false,
+ "concurrently": false,
+ "method": "btree",
+ "with": {}
+ },
"agent_inbox_messages_user_id_idx": {
"name": "agent_inbox_messages_user_id_idx",
"columns": [
@@ -4870,8 +5722,12 @@
"name": "agent_inbox_messages_agent_id_agents_id_fk",
"tableFrom": "agent_inbox_messages",
"tableTo": "agents",
- "columnsFrom": ["agent_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "agent_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -4879,8 +5735,12 @@
"name": "agent_inbox_messages_user_id_users_id_fk",
"tableFrom": "agent_inbox_messages",
"tableTo": "users",
- "columnsFrom": ["user_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "user_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -4888,8 +5748,12 @@
"name": "agent_inbox_messages_workspace_id_workspaces_id_fk",
"tableFrom": "agent_inbox_messages",
"tableTo": "workspaces",
- "columnsFrom": ["workspace_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "workspace_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -4897,8 +5761,12 @@
"name": "agent_inbox_messages_account_id_agent_accounts_id_fk",
"tableFrom": "agent_inbox_messages",
"tableTo": "agent_accounts",
- "columnsFrom": ["account_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "account_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -4906,8 +5774,12 @@
"name": "agent_inbox_messages_topic_id_topics_id_fk",
"tableFrom": "agent_inbox_messages",
"tableTo": "topics",
- "columnsFrom": ["topic_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "topic_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "set null",
"onUpdate": "no action"
}
@@ -5221,8 +6093,12 @@
"name": "agent_intervention_resolutions_operation_id_agent_operations_id_fk",
"tableFrom": "agent_intervention_resolutions",
"tableTo": "agent_operations",
- "columnsFrom": ["operation_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "operation_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -5230,8 +6106,12 @@
"name": "agent_intervention_resolutions_user_id_users_id_fk",
"tableFrom": "agent_intervention_resolutions",
"tableTo": "users",
- "columnsFrom": ["user_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "user_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -5239,8 +6119,12 @@
"name": "agent_intervention_resolutions_workspace_id_workspaces_id_fk",
"tableFrom": "agent_intervention_resolutions",
"tableTo": "workspaces",
- "columnsFrom": ["workspace_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "workspace_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
}
@@ -5704,8 +6588,12 @@
"name": "agent_interventions_operation_id_agent_operations_id_fk",
"tableFrom": "agent_interventions",
"tableTo": "agent_operations",
- "columnsFrom": ["operation_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "operation_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -5713,8 +6601,12 @@
"name": "agent_interventions_user_id_users_id_fk",
"tableFrom": "agent_interventions",
"tableTo": "users",
- "columnsFrom": ["user_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "user_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -5722,8 +6614,12 @@
"name": "agent_interventions_workspace_id_workspaces_id_fk",
"tableFrom": "agent_interventions",
"tableTo": "workspaces",
- "columnsFrom": ["workspace_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "workspace_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -5731,8 +6627,12 @@
"name": "agent_interventions_resolution_id_agent_intervention_resolutions_id_fk",
"tableFrom": "agent_interventions",
"tableTo": "agent_intervention_resolutions",
- "columnsFrom": ["resolution_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "resolution_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "set null",
"onUpdate": "no action"
}
@@ -5894,8 +6794,12 @@
"name": "agent_label_assignments_label_id_agent_labels_id_fk",
"tableFrom": "agent_label_assignments",
"tableTo": "agent_labels",
- "columnsFrom": ["label_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "label_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -5903,8 +6807,12 @@
"name": "agent_label_assignments_agent_id_agents_id_fk",
"tableFrom": "agent_label_assignments",
"tableTo": "agents",
- "columnsFrom": ["agent_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "agent_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -5912,8 +6820,12 @@
"name": "agent_label_assignments_user_id_users_id_fk",
"tableFrom": "agent_label_assignments",
"tableTo": "users",
- "columnsFrom": ["user_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "user_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -5921,8 +6833,12 @@
"name": "agent_label_assignments_workspace_id_workspaces_id_fk",
"tableFrom": "agent_label_assignments",
"tableTo": "workspaces",
- "columnsFrom": ["workspace_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "workspace_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
}
@@ -6084,8 +7000,12 @@
"name": "agent_labels_user_id_users_id_fk",
"tableFrom": "agent_labels",
"tableTo": "users",
- "columnsFrom": ["user_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "user_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -6093,8 +7013,12 @@
"name": "agent_labels_workspace_id_workspaces_id_fk",
"tableFrom": "agent_labels",
"tableTo": "workspaces",
- "columnsFrom": ["workspace_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "workspace_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
}
@@ -6377,8 +7301,12 @@
"name": "agent_mails_agent_id_agents_id_fk",
"tableFrom": "agent_mails",
"tableTo": "agents",
- "columnsFrom": ["agent_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "agent_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -6386,8 +7314,12 @@
"name": "agent_mails_user_id_users_id_fk",
"tableFrom": "agent_mails",
"tableTo": "users",
- "columnsFrom": ["user_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "user_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -6395,8 +7327,12 @@
"name": "agent_mails_workspace_id_workspaces_id_fk",
"tableFrom": "agent_mails",
"tableTo": "workspaces",
- "columnsFrom": ["workspace_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "workspace_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -6404,8 +7340,12 @@
"name": "agent_mails_account_id_agent_accounts_id_fk",
"tableFrom": "agent_mails",
"tableTo": "agent_accounts",
- "columnsFrom": ["account_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "account_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -6413,8 +7353,12 @@
"name": "agent_mails_signal_id_signals_id_fk",
"tableFrom": "agent_mails",
"tableTo": "signals",
- "columnsFrom": ["signal_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "signal_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "set null",
"onUpdate": "no action"
}
@@ -6856,6 +7800,27 @@
"method": "btree",
"with": {}
},
+ "agent_operations_workspace_id_created_at_idx": {
+ "name": "agent_operations_workspace_id_created_at_idx",
+ "columns": [
+ {
+ "expression": "workspace_id",
+ "isExpression": false,
+ "asc": true,
+ "nulls": "last"
+ },
+ {
+ "expression": "created_at",
+ "isExpression": false,
+ "asc": true,
+ "nulls": "last"
+ }
+ ],
+ "isUnique": false,
+ "concurrently": false,
+ "method": "btree",
+ "with": {}
+ },
"agent_operations_metadata_idx": {
"name": "agent_operations_metadata_idx",
"columns": [
@@ -6877,8 +7842,12 @@
"name": "agent_operations_workspace_id_workspaces_id_fk",
"tableFrom": "agent_operations",
"tableTo": "workspaces",
- "columnsFrom": ["workspace_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "workspace_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -6886,8 +7855,12 @@
"name": "agent_operations_agent_id_agents_id_fk",
"tableFrom": "agent_operations",
"tableTo": "agents",
- "columnsFrom": ["agent_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "agent_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "set null",
"onUpdate": "no action"
},
@@ -6895,8 +7868,12 @@
"name": "agent_operations_topic_id_topics_id_fk",
"tableFrom": "agent_operations",
"tableTo": "topics",
- "columnsFrom": ["topic_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "topic_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "set null",
"onUpdate": "no action"
},
@@ -6904,8 +7881,12 @@
"name": "agent_operations_thread_id_threads_id_fk",
"tableFrom": "agent_operations",
"tableTo": "threads",
- "columnsFrom": ["thread_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "thread_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "set null",
"onUpdate": "no action"
},
@@ -6913,8 +7894,12 @@
"name": "agent_operations_task_id_tasks_id_fk",
"tableFrom": "agent_operations",
"tableTo": "tasks",
- "columnsFrom": ["task_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "task_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "set null",
"onUpdate": "no action"
},
@@ -6922,8 +7907,12 @@
"name": "agent_operations_chat_group_id_chat_groups_id_fk",
"tableFrom": "agent_operations",
"tableTo": "chat_groups",
- "columnsFrom": ["chat_group_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "chat_group_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "set null",
"onUpdate": "no action"
}
@@ -7123,8 +8112,12 @@
"name": "agent_account_bindings_agent_id_agents_id_fk",
"tableFrom": "agent_account_bindings",
"tableTo": "agents",
- "columnsFrom": ["agent_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "agent_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -7132,8 +8125,12 @@
"name": "agent_account_bindings_account_id_agent_provider_accounts_id_fk",
"tableFrom": "agent_account_bindings",
"tableTo": "agent_provider_accounts",
- "columnsFrom": ["account_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "account_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -7141,8 +8138,12 @@
"name": "agent_account_bindings_user_id_users_id_fk",
"tableFrom": "agent_account_bindings",
"tableTo": "users",
- "columnsFrom": ["user_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "user_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -7150,8 +8151,12 @@
"name": "agent_account_bindings_workspace_id_workspaces_id_fk",
"tableFrom": "agent_account_bindings",
"tableTo": "workspaces",
- "columnsFrom": ["workspace_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "workspace_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
}
@@ -7319,8 +8324,12 @@
"name": "agent_device_account_bindings_agent_id_agents_id_fk",
"tableFrom": "agent_device_account_bindings",
"tableTo": "agents",
- "columnsFrom": ["agent_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "agent_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -7328,8 +8337,12 @@
"name": "agent_device_account_bindings_user_id_users_id_fk",
"tableFrom": "agent_device_account_bindings",
"tableTo": "users",
- "columnsFrom": ["user_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "user_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -7337,8 +8350,12 @@
"name": "agent_device_account_bindings_workspace_id_workspaces_id_fk",
"tableFrom": "agent_device_account_bindings",
"tableTo": "workspaces",
- "columnsFrom": ["workspace_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "workspace_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -7346,8 +8363,12 @@
"name": "agent_device_account_bindings_device_id_devices_id_fk",
"tableFrom": "agent_device_account_bindings",
"tableTo": "devices",
- "columnsFrom": ["device_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "device_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -7355,8 +8376,12 @@
"name": "agent_device_account_bindings_account_id_agent_provider_accounts_id_fk",
"tableFrom": "agent_device_account_bindings",
"tableTo": "agent_provider_accounts",
- "columnsFrom": ["account_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "account_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -7364,8 +8389,14 @@
"name": "agent_device_account_bindings_login_fk",
"tableFrom": "agent_device_account_bindings",
"tableTo": "agent_provider_account_logins",
- "columnsFrom": ["account_id", "device_id"],
- "columnsTo": ["account_id", "device_id"],
+ "columnsFrom": [
+ "account_id",
+ "device_id"
+ ],
+ "columnsTo": [
+ "account_id",
+ "device_id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
}
@@ -7499,8 +8530,12 @@
"name": "agent_provider_account_logins_account_id_agent_provider_accounts_id_fk",
"tableFrom": "agent_provider_account_logins",
"tableTo": "agent_provider_accounts",
- "columnsFrom": ["account_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "account_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -7508,8 +8543,12 @@
"name": "agent_provider_account_logins_device_id_devices_id_fk",
"tableFrom": "agent_provider_account_logins",
"tableTo": "devices",
- "columnsFrom": ["device_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "device_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -7517,8 +8556,12 @@
"name": "agent_provider_account_logins_user_id_users_id_fk",
"tableFrom": "agent_provider_account_logins",
"tableTo": "users",
- "columnsFrom": ["user_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "user_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -7526,8 +8569,12 @@
"name": "agent_provider_account_logins_workspace_id_workspaces_id_fk",
"tableFrom": "agent_provider_account_logins",
"tableTo": "workspaces",
- "columnsFrom": ["workspace_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "workspace_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
}
@@ -7537,7 +8584,10 @@
"agent_provider_account_logins_account_device_unique": {
"name": "agent_provider_account_logins_account_device_unique",
"nullsNotDistinct": false,
- "columns": ["account_id", "device_id"]
+ "columns": [
+ "account_id",
+ "device_id"
+ ]
}
},
"policies": {},
@@ -7830,8 +8880,12 @@
"name": "agent_provider_accounts_user_id_users_id_fk",
"tableFrom": "agent_provider_accounts",
"tableTo": "users",
- "columnsFrom": ["user_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "user_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -7839,8 +8893,12 @@
"name": "agent_provider_accounts_workspace_id_workspaces_id_fk",
"tableFrom": "agent_provider_accounts",
"tableTo": "workspaces",
- "columnsFrom": ["workspace_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "workspace_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
}
@@ -8026,8 +9084,12 @@
"name": "agent_quota_calibrations_account_id_agent_provider_accounts_id_fk",
"tableFrom": "agent_quota_calibrations",
"tableTo": "agent_provider_accounts",
- "columnsFrom": ["account_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "account_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -8035,8 +9097,12 @@
"name": "agent_quota_calibrations_user_id_users_id_fk",
"tableFrom": "agent_quota_calibrations",
"tableTo": "users",
- "columnsFrom": ["user_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "user_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -8044,8 +9110,12 @@
"name": "agent_quota_calibrations_workspace_id_workspaces_id_fk",
"tableFrom": "agent_quota_calibrations",
"tableTo": "workspaces",
- "columnsFrom": ["workspace_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "workspace_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
}
@@ -8255,8 +9325,12 @@
"name": "agent_quota_snapshots_account_id_agent_provider_accounts_id_fk",
"tableFrom": "agent_quota_snapshots",
"tableTo": "agent_provider_accounts",
- "columnsFrom": ["account_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "account_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -8264,8 +9338,12 @@
"name": "agent_quota_snapshots_user_id_users_id_fk",
"tableFrom": "agent_quota_snapshots",
"tableTo": "users",
- "columnsFrom": ["user_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "user_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -8273,8 +9351,12 @@
"name": "agent_quota_snapshots_workspace_id_workspaces_id_fk",
"tableFrom": "agent_quota_snapshots",
"tableTo": "workspaces",
- "columnsFrom": ["workspace_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "workspace_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -8282,8 +9364,12 @@
"name": "agent_quota_snapshots_device_id_devices_id_fk",
"tableFrom": "agent_quota_snapshots",
"tableTo": "devices",
- "columnsFrom": ["device_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "device_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "set null",
"onUpdate": "no action"
}
@@ -8558,8 +9644,12 @@
"name": "agent_quota_usage_ledger_account_id_agent_provider_accounts_id_fk",
"tableFrom": "agent_quota_usage_ledger",
"tableTo": "agent_provider_accounts",
- "columnsFrom": ["account_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "account_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "set null",
"onUpdate": "no action"
},
@@ -8567,8 +9657,12 @@
"name": "agent_quota_usage_ledger_user_id_users_id_fk",
"tableFrom": "agent_quota_usage_ledger",
"tableTo": "users",
- "columnsFrom": ["user_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "user_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -8576,8 +9670,12 @@
"name": "agent_quota_usage_ledger_workspace_id_workspaces_id_fk",
"tableFrom": "agent_quota_usage_ledger",
"tableTo": "workspaces",
- "columnsFrom": ["workspace_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "workspace_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -8585,8 +9683,12 @@
"name": "agent_quota_usage_ledger_message_id_messages_id_fk",
"tableFrom": "agent_quota_usage_ledger",
"tableTo": "messages",
- "columnsFrom": ["message_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "message_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "set null",
"onUpdate": "no action"
},
@@ -8594,8 +9696,12 @@
"name": "agent_quota_usage_ledger_operation_id_agent_operations_id_fk",
"tableFrom": "agent_quota_usage_ledger",
"tableTo": "agent_operations",
- "columnsFrom": ["operation_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "operation_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "set null",
"onUpdate": "no action"
},
@@ -8603,8 +9709,12 @@
"name": "agent_quota_usage_ledger_topic_id_topics_id_fk",
"tableFrom": "agent_quota_usage_ledger",
"tableTo": "topics",
- "columnsFrom": ["topic_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "topic_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "set null",
"onUpdate": "no action"
},
@@ -8612,8 +9722,12 @@
"name": "agent_quota_usage_ledger_agent_id_agents_id_fk",
"tableFrom": "agent_quota_usage_ledger",
"tableTo": "agents",
- "columnsFrom": ["agent_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "agent_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "set null",
"onUpdate": "no action"
}
@@ -8853,8 +9967,12 @@
"name": "agent_quota_windows_account_id_agent_provider_accounts_id_fk",
"tableFrom": "agent_quota_windows",
"tableTo": "agent_provider_accounts",
- "columnsFrom": ["account_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "account_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -8862,8 +9980,12 @@
"name": "agent_quota_windows_user_id_users_id_fk",
"tableFrom": "agent_quota_windows",
"tableTo": "users",
- "columnsFrom": ["user_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "user_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -8871,8 +9993,12 @@
"name": "agent_quota_windows_workspace_id_workspaces_id_fk",
"tableFrom": "agent_quota_windows",
"tableTo": "workspaces",
- "columnsFrom": ["workspace_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "workspace_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
}
@@ -8979,8 +10105,12 @@
"name": "agent_shares_agent_id_agents_id_fk",
"tableFrom": "agent_shares",
"tableTo": "agents",
- "columnsFrom": ["agent_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "agent_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
}
@@ -9229,8 +10359,12 @@
"name": "agent_skills_zip_file_hash_global_files_hash_id_fk",
"tableFrom": "agent_skills",
"tableTo": "global_files",
- "columnsFrom": ["zip_file_hash"],
- "columnsTo": ["hash_id"],
+ "columnsFrom": [
+ "zip_file_hash"
+ ],
+ "columnsTo": [
+ "hash_id"
+ ],
"onDelete": "set null",
"onUpdate": "no action"
},
@@ -9238,8 +10372,12 @@
"name": "agent_skills_user_id_users_id_fk",
"tableFrom": "agent_skills",
"tableTo": "users",
- "columnsFrom": ["user_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "user_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -9247,8 +10385,12 @@
"name": "agent_skills_workspace_id_workspaces_id_fk",
"tableFrom": "agent_skills",
"tableTo": "workspaces",
- "columnsFrom": ["workspace_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "workspace_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
}
@@ -9503,8 +10645,12 @@
"name": "ai_models_user_id_users_id_fk",
"tableFrom": "ai_models",
"tableTo": "users",
- "columnsFrom": ["user_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "user_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -9512,8 +10658,12 @@
"name": "ai_models_workspace_id_workspaces_id_fk",
"tableFrom": "ai_models",
"tableTo": "workspaces",
- "columnsFrom": ["workspace_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "workspace_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
}
@@ -9728,8 +10878,12 @@
"name": "ai_providers_user_id_users_id_fk",
"tableFrom": "ai_providers",
"tableTo": "users",
- "columnsFrom": ["user_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "user_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -9737,8 +10891,12 @@
"name": "ai_providers_workspace_id_workspaces_id_fk",
"tableFrom": "ai_providers",
"tableTo": "workspaces",
- "columnsFrom": ["workspace_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "workspace_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
}
@@ -9873,8 +11031,12 @@
"name": "api_keys_user_id_users_id_fk",
"tableFrom": "api_keys",
"tableTo": "users",
- "columnsFrom": ["user_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "user_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -9882,8 +11044,12 @@
"name": "api_keys_workspace_id_workspaces_id_fk",
"tableFrom": "api_keys",
"tableTo": "workspaces",
- "columnsFrom": ["workspace_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "workspace_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
}
@@ -9893,12 +11059,16 @@
"api_keys_key_unique": {
"name": "api_keys_key_unique",
"nullsNotDistinct": false,
- "columns": ["key"]
+ "columns": [
+ "key"
+ ]
},
"api_keys_key_hash_unique": {
"name": "api_keys_key_hash_unique",
"nullsNotDistinct": false,
- "columns": ["key_hash"]
+ "columns": [
+ "key_hash"
+ ]
}
},
"policies": {},
@@ -10096,8 +11266,12 @@
"name": "async_tasks_user_id_users_id_fk",
"tableFrom": "async_tasks",
"tableTo": "users",
- "columnsFrom": ["user_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "user_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -10105,8 +11279,12 @@
"name": "async_tasks_workspace_id_workspaces_id_fk",
"tableFrom": "async_tasks",
"tableTo": "workspaces",
- "columnsFrom": ["workspace_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "workspace_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
}
@@ -10223,8 +11401,12 @@
"name": "accounts_user_id_users_id_fk",
"tableFrom": "accounts",
"tableTo": "users",
- "columnsFrom": ["user_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "user_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
}
@@ -10344,8 +11526,12 @@
"name": "passkey_userId_users_id_fk",
"tableFrom": "passkey",
"tableTo": "users",
- "columnsFrom": ["userId"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "userId"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
}
@@ -10438,8 +11624,12 @@
"name": "auth_sessions_user_id_users_id_fk",
"tableFrom": "auth_sessions",
"tableTo": "users",
- "columnsFrom": ["user_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "user_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
}
@@ -10449,7 +11639,9 @@
"auth_sessions_token_unique": {
"name": "auth_sessions_token_unique",
"nullsNotDistinct": false,
- "columns": ["token"]
+ "columns": [
+ "token"
+ ]
}
},
"policies": {},
@@ -10522,8 +11714,12 @@
"name": "two_factor_user_id_users_id_fk",
"tableFrom": "two_factor",
"tableTo": "users",
- "columnsFrom": ["user_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "user_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
}
@@ -10706,8 +11902,12 @@
"name": "channel_audit_channel_id_channels_id_fk",
"tableFrom": "channel_audit",
"tableTo": "channels",
- "columnsFrom": ["channel_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "channel_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
}
@@ -10796,6 +11996,12 @@
"primaryKey": false,
"notNull": false
},
+ "wake": {
+ "name": "wake",
+ "type": "jsonb",
+ "primaryKey": false,
+ "notNull": false
+ },
"manifest": {
"name": "manifest",
"type": "jsonb",
@@ -11069,8 +12275,12 @@
"name": "channel_jobs_channel_id_channels_id_fk",
"tableFrom": "channel_jobs",
"tableTo": "channels",
- "columnsFrom": ["channel_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "channel_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -11078,8 +12288,12 @@
"name": "channel_jobs_topic_id_topics_id_fk",
"tableFrom": "channel_jobs",
"tableTo": "topics",
- "columnsFrom": ["topic_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "topic_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "set null",
"onUpdate": "no action"
},
@@ -11087,8 +12301,12 @@
"name": "channel_jobs_operation_id_agent_operations_id_fk",
"tableFrom": "channel_jobs",
"tableTo": "agent_operations",
- "columnsFrom": ["operation_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "operation_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "set null",
"onUpdate": "no action"
},
@@ -11096,8 +12314,14 @@
"name": "channel_jobs_member_fk",
"tableFrom": "channel_jobs",
"tableTo": "channel_members",
- "columnsFrom": ["channel_id", "member_id"],
- "columnsTo": ["channel_id", "id"],
+ "columnsFrom": [
+ "channel_id",
+ "member_id"
+ ],
+ "columnsTo": [
+ "channel_id",
+ "id"
+ ],
"onDelete": "no action",
"onUpdate": "no action"
},
@@ -11105,8 +12329,14 @@
"name": "channel_jobs_requester_fk",
"tableFrom": "channel_jobs",
"tableTo": "channel_members",
- "columnsFrom": ["channel_id", "requester_member_id"],
- "columnsTo": ["channel_id", "id"],
+ "columnsFrom": [
+ "channel_id",
+ "requester_member_id"
+ ],
+ "columnsTo": [
+ "channel_id",
+ "id"
+ ],
"onDelete": "no action",
"onUpdate": "no action"
},
@@ -11114,8 +12344,14 @@
"name": "channel_jobs_message_fk",
"tableFrom": "channel_jobs",
"tableTo": "channel_messages",
- "columnsFrom": ["channel_id", "message_id"],
- "columnsTo": ["channel_id", "id"],
+ "columnsFrom": [
+ "channel_id",
+ "message_id"
+ ],
+ "columnsTo": [
+ "channel_id",
+ "id"
+ ],
"onDelete": "no action",
"onUpdate": "no action"
},
@@ -11123,8 +12359,14 @@
"name": "channel_jobs_thread_fk",
"tableFrom": "channel_jobs",
"tableTo": "channel_threads",
- "columnsFrom": ["channel_id", "thread_id"],
- "columnsTo": ["channel_id", "id"],
+ "columnsFrom": [
+ "channel_id",
+ "thread_id"
+ ],
+ "columnsTo": [
+ "channel_id",
+ "id"
+ ],
"onDelete": "no action",
"onUpdate": "no action"
}
@@ -11134,12 +12376,17 @@
"channel_jobs_operation_id_unique": {
"name": "channel_jobs_operation_id_unique",
"nullsNotDistinct": false,
- "columns": ["operation_id"]
+ "columns": [
+ "operation_id"
+ ]
},
"channel_jobs_scope_unique": {
"name": "channel_jobs_scope_unique",
"nullsNotDistinct": false,
- "columns": ["channel_id", "id"]
+ "columns": [
+ "channel_id",
+ "id"
+ ]
}
},
"policies": {},
@@ -11283,8 +12530,12 @@
"name": "channel_member_grants_channel_id_channels_id_fk",
"tableFrom": "channel_member_grants",
"tableTo": "channels",
- "columnsFrom": ["channel_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "channel_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -11292,8 +12543,12 @@
"name": "channel_member_grants_device_owner_id_users_id_fk",
"tableFrom": "channel_member_grants",
"tableTo": "users",
- "columnsFrom": ["device_owner_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "device_owner_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -11301,8 +12556,14 @@
"name": "channel_member_grants_member_fk",
"tableFrom": "channel_member_grants",
"tableTo": "channel_members",
- "columnsFrom": ["channel_id", "member_id"],
- "columnsTo": ["channel_id", "id"],
+ "columnsFrom": [
+ "channel_id",
+ "member_id"
+ ],
+ "columnsTo": [
+ "channel_id",
+ "id"
+ ],
"onDelete": "no action",
"onUpdate": "no action"
},
@@ -11310,8 +12571,14 @@
"name": "channel_member_grants_requester_fk",
"tableFrom": "channel_member_grants",
"tableTo": "channel_members",
- "columnsFrom": ["channel_id", "requested_by_member_id"],
- "columnsTo": ["channel_id", "id"],
+ "columnsFrom": [
+ "channel_id",
+ "requested_by_member_id"
+ ],
+ "columnsTo": [
+ "channel_id",
+ "id"
+ ],
"onDelete": "no action",
"onUpdate": "no action"
}
@@ -11476,8 +12743,12 @@
"name": "channel_members_channel_id_channels_id_fk",
"tableFrom": "channel_members",
"tableTo": "channels",
- "columnsFrom": ["channel_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "channel_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -11485,8 +12756,12 @@
"name": "channel_members_user_id_users_id_fk",
"tableFrom": "channel_members",
"tableTo": "users",
- "columnsFrom": ["user_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "user_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "set null",
"onUpdate": "no action"
},
@@ -11494,8 +12769,12 @@
"name": "channel_members_agent_id_agents_id_fk",
"tableFrom": "channel_members",
"tableTo": "agents",
- "columnsFrom": ["agent_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "agent_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "set null",
"onUpdate": "no action"
}
@@ -11505,7 +12784,10 @@
"channel_members_scope_unique": {
"name": "channel_members_scope_unique",
"nullsNotDistinct": false,
- "columns": ["channel_id", "id"]
+ "columns": [
+ "channel_id",
+ "id"
+ ]
}
},
"policies": {},
@@ -11593,8 +12875,12 @@
"name": "channel_message_files_message_id_channel_messages_id_fk",
"tableFrom": "channel_message_files",
"tableTo": "channel_messages",
- "columnsFrom": ["message_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "message_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -11602,8 +12888,12 @@
"name": "channel_message_files_file_id_files_id_fk",
"tableFrom": "channel_message_files",
"tableTo": "files",
- "columnsFrom": ["file_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "file_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
}
@@ -11613,7 +12903,10 @@
"channel_message_files_message_file_unique": {
"name": "channel_message_files_message_file_unique",
"nullsNotDistinct": false,
- "columns": ["message_id", "file_id"]
+ "columns": [
+ "message_id",
+ "file_id"
+ ]
}
},
"policies": {},
@@ -11859,8 +13152,12 @@
"name": "channel_messages_channel_id_channels_id_fk",
"tableFrom": "channel_messages",
"tableTo": "channels",
- "columnsFrom": ["channel_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "channel_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -11868,8 +13165,12 @@
"name": "channel_messages_user_id_users_id_fk",
"tableFrom": "channel_messages",
"tableTo": "users",
- "columnsFrom": ["user_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "user_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "set null",
"onUpdate": "no action"
},
@@ -11877,8 +13178,12 @@
"name": "channel_messages_agent_id_agents_id_fk",
"tableFrom": "channel_messages",
"tableTo": "agents",
- "columnsFrom": ["agent_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "agent_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "set null",
"onUpdate": "no action"
},
@@ -11886,8 +13191,14 @@
"name": "channel_messages_thread_fk",
"tableFrom": "channel_messages",
"tableTo": "channel_threads",
- "columnsFrom": ["channel_id", "thread_id"],
- "columnsTo": ["channel_id", "id"],
+ "columnsFrom": [
+ "channel_id",
+ "thread_id"
+ ],
+ "columnsTo": [
+ "channel_id",
+ "id"
+ ],
"onDelete": "no action",
"onUpdate": "no action"
}
@@ -11897,7 +13208,10 @@
"channel_messages_scope_unique": {
"name": "channel_messages_scope_unique",
"nullsNotDistinct": false,
- "columns": ["channel_id", "id"]
+ "columns": [
+ "channel_id",
+ "id"
+ ]
}
},
"policies": {},
@@ -12015,8 +13329,12 @@
"name": "channel_threads_channel_id_channels_id_fk",
"tableFrom": "channel_threads",
"tableTo": "channels",
- "columnsFrom": ["channel_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "channel_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -12024,8 +13342,14 @@
"name": "channel_threads_root_fk",
"tableFrom": "channel_threads",
"tableTo": "channel_messages",
- "columnsFrom": ["channel_id", "root_message_id"],
- "columnsTo": ["channel_id", "id"],
+ "columnsFrom": [
+ "channel_id",
+ "root_message_id"
+ ],
+ "columnsTo": [
+ "channel_id",
+ "id"
+ ],
"onDelete": "no action",
"onUpdate": "no action"
}
@@ -12035,7 +13359,10 @@
"channel_threads_scope_unique": {
"name": "channel_threads_scope_unique",
"nullsNotDistinct": false,
- "columns": ["channel_id", "id"]
+ "columns": [
+ "channel_id",
+ "id"
+ ]
}
},
"policies": {},
@@ -12230,8 +13557,12 @@
"name": "channels_user_id_users_id_fk",
"tableFrom": "channels",
"tableTo": "users",
- "columnsFrom": ["user_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "user_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "set null",
"onUpdate": "no action"
},
@@ -12239,8 +13570,12 @@
"name": "channels_workspace_id_workspaces_id_fk",
"tableFrom": "channels",
"tableTo": "workspaces",
- "columnsFrom": ["workspace_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "workspace_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -12248,8 +13583,12 @@
"name": "channels_project_id_projects_id_fk",
"tableFrom": "channels",
"tableTo": "projects",
- "columnsFrom": ["project_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "project_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "set null",
"onUpdate": "no action"
},
@@ -12257,8 +13596,12 @@
"name": "channels_agent_id_agents_id_fk",
"tableFrom": "channels",
"tableTo": "agents",
- "columnsFrom": ["agent_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "agent_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
}
@@ -12504,8 +13847,12 @@
"name": "chat_groups_user_id_users_id_fk",
"tableFrom": "chat_groups",
"tableTo": "users",
- "columnsFrom": ["user_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "user_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -12513,8 +13860,12 @@
"name": "chat_groups_workspace_id_workspaces_id_fk",
"tableFrom": "chat_groups",
"tableTo": "workspaces",
- "columnsFrom": ["workspace_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "workspace_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -12522,8 +13873,12 @@
"name": "chat_groups_group_id_session_groups_id_fk",
"tableFrom": "chat_groups",
"tableTo": "session_groups",
- "columnsFrom": ["group_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "group_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "set null",
"onUpdate": "no action"
}
@@ -12642,8 +13997,12 @@
"name": "chat_groups_agents_chat_group_id_chat_groups_id_fk",
"tableFrom": "chat_groups_agents",
"tableTo": "chat_groups",
- "columnsFrom": ["chat_group_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "chat_group_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -12651,8 +14010,12 @@
"name": "chat_groups_agents_agent_id_agents_id_fk",
"tableFrom": "chat_groups_agents",
"tableTo": "agents",
- "columnsFrom": ["agent_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "agent_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -12660,8 +14023,12 @@
"name": "chat_groups_agents_user_id_users_id_fk",
"tableFrom": "chat_groups_agents",
"tableTo": "users",
- "columnsFrom": ["user_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "user_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -12669,8 +14036,12 @@
"name": "chat_groups_agents_workspace_id_workspaces_id_fk",
"tableFrom": "chat_groups_agents",
"tableTo": "workspaces",
- "columnsFrom": ["workspace_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "workspace_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
}
@@ -12678,7 +14049,10 @@
"compositePrimaryKeys": {
"chat_groups_agents_chat_group_id_agent_id_pk": {
"name": "chat_groups_agents_chat_group_id_agent_id_pk",
- "columns": ["chat_group_id", "agent_id"]
+ "columns": [
+ "chat_group_id",
+ "agent_id"
+ ]
}
},
"uniqueConstraints": {},
@@ -12883,8 +14257,12 @@
"name": "user_connector_tools_user_connector_id_user_connectors_id_fk",
"tableFrom": "user_connector_tools",
"tableTo": "user_connectors",
- "columnsFrom": ["user_connector_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "user_connector_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -12892,8 +14270,12 @@
"name": "user_connector_tools_user_id_users_id_fk",
"tableFrom": "user_connector_tools",
"tableTo": "users",
- "columnsFrom": ["user_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "user_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -12901,8 +14283,12 @@
"name": "user_connector_tools_workspace_id_workspaces_id_fk",
"tableFrom": "user_connector_tools",
"tableTo": "workspaces",
- "columnsFrom": ["workspace_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "workspace_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
}
@@ -13176,8 +14562,12 @@
"name": "user_connectors_user_id_users_id_fk",
"tableFrom": "user_connectors",
"tableTo": "users",
- "columnsFrom": ["user_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "user_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -13185,8 +14575,12 @@
"name": "user_connectors_workspace_id_workspaces_id_fk",
"tableFrom": "user_connectors",
"tableTo": "workspaces",
- "columnsFrom": ["workspace_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "workspace_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -13194,8 +14588,12 @@
"name": "user_connectors_agent_id_agents_id_fk",
"tableFrom": "user_connectors",
"tableTo": "agents",
- "columnsFrom": ["agent_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "agent_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
}
@@ -13302,8 +14700,12 @@
"name": "user_installed_plugins_user_id_users_id_fk",
"tableFrom": "user_installed_plugins",
"tableTo": "users",
- "columnsFrom": ["user_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "user_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -13311,8 +14713,12 @@
"name": "user_installed_plugins_workspace_id_workspaces_id_fk",
"tableFrom": "user_installed_plugins",
"tableTo": "workspaces",
- "columnsFrom": ["workspace_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "workspace_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
}
@@ -13320,7 +14726,10 @@
"compositePrimaryKeys": {
"user_installed_plugins_user_id_identifier_pk": {
"name": "user_installed_plugins_user_id_identifier_pk",
- "columns": ["user_id", "identifier"]
+ "columns": [
+ "user_id",
+ "identifier"
+ ]
}
},
"uniqueConstraints": {},
@@ -13492,8 +14901,12 @@
"name": "dashboard_items_dashboard_id_dashboards_id_fk",
"tableFrom": "dashboard_items",
"tableTo": "dashboards",
- "columnsFrom": ["dashboard_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "dashboard_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -13501,8 +14914,12 @@
"name": "dashboard_items_widget_id_widgets_id_fk",
"tableFrom": "dashboard_items",
"tableTo": "widgets",
- "columnsFrom": ["widget_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "widget_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -13510,8 +14927,12 @@
"name": "dashboard_items_user_id_users_id_fk",
"tableFrom": "dashboard_items",
"tableTo": "users",
- "columnsFrom": ["user_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "user_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -13519,8 +14940,12 @@
"name": "dashboard_items_workspace_id_workspaces_id_fk",
"tableFrom": "dashboard_items",
"tableTo": "workspaces",
- "columnsFrom": ["workspace_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "workspace_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
}
@@ -13763,8 +15188,12 @@
"name": "dashboards_user_id_users_id_fk",
"tableFrom": "dashboards",
"tableTo": "users",
- "columnsFrom": ["user_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "user_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -13772,8 +15201,12 @@
"name": "dashboards_workspace_id_workspaces_id_fk",
"tableFrom": "dashboards",
"tableTo": "workspaces",
- "columnsFrom": ["workspace_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "workspace_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -13781,8 +15214,12 @@
"name": "dashboards_project_id_projects_id_fk",
"tableFrom": "dashboards",
"tableTo": "projects",
- "columnsFrom": ["project_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "project_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -13790,8 +15227,12 @@
"name": "dashboards_agent_id_agents_id_fk",
"tableFrom": "dashboards",
"tableTo": "agents",
- "columnsFrom": ["agent_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "agent_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
}
@@ -14044,8 +15485,12 @@
"name": "devices_user_id_users_id_fk",
"tableFrom": "devices",
"tableTo": "users",
- "columnsFrom": ["user_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "user_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -14053,8 +15498,12 @@
"name": "devices_workspace_id_workspaces_id_fk",
"tableFrom": "devices",
"tableTo": "workspaces",
- "columnsFrom": ["workspace_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "workspace_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
}
@@ -14166,8 +15615,12 @@
"name": "document_comment_mentions_comment_id_document_comments_id_fk",
"tableFrom": "document_comment_mentions",
"tableTo": "document_comments",
- "columnsFrom": ["comment_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "comment_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -14175,8 +15628,12 @@
"name": "document_comment_mentions_mentioned_user_id_users_id_fk",
"tableFrom": "document_comment_mentions",
"tableTo": "users",
- "columnsFrom": ["mentioned_user_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "mentioned_user_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -14184,8 +15641,12 @@
"name": "document_comment_mentions_workspace_id_workspaces_id_fk",
"tableFrom": "document_comment_mentions",
"tableTo": "workspaces",
- "columnsFrom": ["workspace_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "workspace_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
}
@@ -14415,8 +15876,12 @@
"name": "document_comments_document_id_documents_id_fk",
"tableFrom": "document_comments",
"tableTo": "documents",
- "columnsFrom": ["document_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "document_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -14424,8 +15889,12 @@
"name": "document_comments_parent_comment_id_document_comments_id_fk",
"tableFrom": "document_comments",
"tableTo": "document_comments",
- "columnsFrom": ["parent_comment_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "parent_comment_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "no action",
"onUpdate": "no action"
},
@@ -14433,8 +15902,12 @@
"name": "document_comments_reply_to_comment_id_document_comments_id_fk",
"tableFrom": "document_comments",
"tableTo": "document_comments",
- "columnsFrom": ["reply_to_comment_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "reply_to_comment_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "set null",
"onUpdate": "no action"
},
@@ -14442,8 +15915,12 @@
"name": "document_comments_author_user_id_users_id_fk",
"tableFrom": "document_comments",
"tableTo": "users",
- "columnsFrom": ["author_user_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "author_user_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "set null",
"onUpdate": "no action"
},
@@ -14451,8 +15928,12 @@
"name": "document_comments_workspace_id_workspaces_id_fk",
"tableFrom": "document_comments",
"tableTo": "workspaces",
- "columnsFrom": ["workspace_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "workspace_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
}
@@ -14600,8 +16081,12 @@
"name": "document_histories_document_id_documents_id_fk",
"tableFrom": "document_histories",
"tableTo": "documents",
- "columnsFrom": ["document_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "document_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -14609,8 +16094,12 @@
"name": "document_histories_user_id_users_id_fk",
"tableFrom": "document_histories",
"tableTo": "users",
- "columnsFrom": ["user_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "user_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -14618,8 +16107,12 @@
"name": "document_histories_workspace_id_workspaces_id_fk",
"tableFrom": "document_histories",
"tableTo": "workspaces",
- "columnsFrom": ["workspace_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "workspace_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
}
@@ -14746,8 +16239,12 @@
"name": "document_likes_document_id_documents_id_fk",
"tableFrom": "document_likes",
"tableTo": "documents",
- "columnsFrom": ["document_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "document_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -14755,8 +16252,12 @@
"name": "document_likes_user_id_users_id_fk",
"tableFrom": "document_likes",
"tableTo": "users",
- "columnsFrom": ["user_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "user_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -14764,8 +16265,12 @@
"name": "document_likes_workspace_id_workspaces_id_fk",
"tableFrom": "document_likes",
"tableTo": "workspaces",
- "columnsFrom": ["workspace_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "workspace_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
}
@@ -14900,8 +16405,12 @@
"name": "document_shares_document_id_documents_id_fk",
"tableFrom": "document_shares",
"tableTo": "documents",
- "columnsFrom": ["document_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "document_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -14909,8 +16418,12 @@
"name": "document_shares_user_id_users_id_fk",
"tableFrom": "document_shares",
"tableTo": "users",
- "columnsFrom": ["user_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "user_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -14918,8 +16431,12 @@
"name": "document_shares_workspace_id_workspaces_id_fk",
"tableFrom": "document_shares",
"tableTo": "workspaces",
- "columnsFrom": ["workspace_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "workspace_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
}
@@ -15121,8 +16638,12 @@
"name": "environments_user_id_users_id_fk",
"tableFrom": "environments",
"tableTo": "users",
- "columnsFrom": ["user_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "user_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "restrict",
"onUpdate": "no action"
},
@@ -15130,8 +16651,12 @@
"name": "environments_workspace_id_workspaces_id_fk",
"tableFrom": "environments",
"tableTo": "workspaces",
- "columnsFrom": ["workspace_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "workspace_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "restrict",
"onUpdate": "no action"
}
@@ -15375,8 +16900,12 @@
"name": "environment_instances_environment_id_environments_id_fk",
"tableFrom": "environment_instances",
"tableTo": "environments",
- "columnsFrom": ["environment_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "environment_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "restrict",
"onUpdate": "no action"
},
@@ -15384,8 +16913,12 @@
"name": "environment_instances_device_id_devices_id_fk",
"tableFrom": "environment_instances",
"tableTo": "devices",
- "columnsFrom": ["device_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "device_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "restrict",
"onUpdate": "no action"
}
@@ -15638,8 +17171,12 @@
"name": "expertise_bindings_domain_id_expertise_domains_id_fk",
"tableFrom": "expertise_bindings",
"tableTo": "expertise_domains",
- "columnsFrom": ["domain_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "domain_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -15647,8 +17184,12 @@
"name": "expertise_bindings_agent_id_agents_id_fk",
"tableFrom": "expertise_bindings",
"tableTo": "agents",
- "columnsFrom": ["agent_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "agent_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -15656,8 +17197,12 @@
"name": "expertise_bindings_project_id_projects_id_fk",
"tableFrom": "expertise_bindings",
"tableTo": "projects",
- "columnsFrom": ["project_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "project_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -15665,8 +17210,12 @@
"name": "expertise_bindings_bound_workspace_id_workspaces_id_fk",
"tableFrom": "expertise_bindings",
"tableTo": "workspaces",
- "columnsFrom": ["bound_workspace_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "bound_workspace_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -15674,8 +17223,12 @@
"name": "expertise_bindings_bound_user_id_users_id_fk",
"tableFrom": "expertise_bindings",
"tableTo": "users",
- "columnsFrom": ["bound_user_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "bound_user_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -15683,8 +17236,12 @@
"name": "expertise_bindings_added_by_user_id_users_id_fk",
"tableFrom": "expertise_bindings",
"tableTo": "users",
- "columnsFrom": ["added_by_user_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "added_by_user_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "set null",
"onUpdate": "no action"
},
@@ -15692,8 +17249,12 @@
"name": "expertise_bindings_workspace_id_workspaces_id_fk",
"tableFrom": "expertise_bindings",
"tableTo": "workspaces",
- "columnsFrom": ["workspace_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "workspace_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
}
@@ -15923,8 +17484,12 @@
"name": "expertise_domain_snapshots_domain_id_expertise_domains_id_fk",
"tableFrom": "expertise_domain_snapshots",
"tableTo": "expertise_domains",
- "columnsFrom": ["domain_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "domain_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -15932,8 +17497,12 @@
"name": "expertise_domain_snapshots_run_id_expertise_runs_id_fk",
"tableFrom": "expertise_domain_snapshots",
"tableTo": "expertise_runs",
- "columnsFrom": ["run_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "run_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "set null",
"onUpdate": "no action"
},
@@ -15941,8 +17510,14 @@
"name": "expertise_domain_snapshots_run_domain_fk",
"tableFrom": "expertise_domain_snapshots",
"tableTo": "expertise_runs",
- "columnsFrom": ["run_id", "domain_id"],
- "columnsTo": ["id", "domain_id"],
+ "columnsFrom": [
+ "run_id",
+ "domain_id"
+ ],
+ "columnsTo": [
+ "id",
+ "domain_id"
+ ],
"onDelete": "no action",
"onUpdate": "no action"
}
@@ -16227,8 +17802,12 @@
"name": "expertise_domains_user_id_users_id_fk",
"tableFrom": "expertise_domains",
"tableTo": "users",
- "columnsFrom": ["user_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "user_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -16236,8 +17815,12 @@
"name": "expertise_domains_workspace_id_workspaces_id_fk",
"tableFrom": "expertise_domains",
"tableTo": "workspaces",
- "columnsFrom": ["workspace_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "workspace_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -16245,8 +17828,12 @@
"name": "expertise_domains_parent_domain_id_expertise_domains_id_fk",
"tableFrom": "expertise_domains",
"tableTo": "expertise_domains",
- "columnsFrom": ["parent_domain_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "parent_domain_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "set null",
"onUpdate": "no action"
},
@@ -16254,8 +17841,12 @@
"name": "expertise_domains_canon_document_id_documents_id_fk",
"tableFrom": "expertise_domains",
"tableTo": "documents",
- "columnsFrom": ["canon_document_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "canon_document_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "set null",
"onUpdate": "no action"
},
@@ -16263,8 +17854,12 @@
"name": "expertise_domains_lesson_base_document_id_documents_id_fk",
"tableFrom": "expertise_domains",
"tableTo": "documents",
- "columnsFrom": ["lesson_base_document_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "lesson_base_document_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "set null",
"onUpdate": "no action"
},
@@ -16272,8 +17867,12 @@
"name": "expertise_domains_anchor_chosen_by_user_id_users_id_fk",
"tableFrom": "expertise_domains",
"tableTo": "users",
- "columnsFrom": ["anchor_chosen_by_user_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "anchor_chosen_by_user_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "set null",
"onUpdate": "no action"
}
@@ -16482,8 +18081,12 @@
"name": "expertise_hits_domain_id_expertise_domains_id_fk",
"tableFrom": "expertise_hits",
"tableTo": "expertise_domains",
- "columnsFrom": ["domain_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "domain_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -16491,8 +18094,12 @@
"name": "expertise_hits_evidence_id_verify_evidence_id_fk",
"tableFrom": "expertise_hits",
"tableTo": "verify_evidence",
- "columnsFrom": ["evidence_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "evidence_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "set null",
"onUpdate": "no action"
},
@@ -16500,8 +18107,12 @@
"name": "expertise_hits_operation_id_agent_operations_id_fk",
"tableFrom": "expertise_hits",
"tableTo": "agent_operations",
- "columnsFrom": ["operation_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "operation_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "set null",
"onUpdate": "no action"
},
@@ -16509,8 +18120,12 @@
"name": "expertise_hits_source_check_result_id_verify_check_results_id_fk",
"tableFrom": "expertise_hits",
"tableTo": "verify_check_results",
- "columnsFrom": ["source_check_result_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "source_check_result_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "set null",
"onUpdate": "no action"
},
@@ -16518,8 +18133,12 @@
"name": "expertise_hits_source_message_id_messages_id_fk",
"tableFrom": "expertise_hits",
"tableTo": "messages",
- "columnsFrom": ["source_message_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "source_message_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "set null",
"onUpdate": "no action"
},
@@ -16527,8 +18146,14 @@
"name": "expertise_hits_run_domain_fk",
"tableFrom": "expertise_hits",
"tableTo": "expertise_runs",
- "columnsFrom": ["run_id", "domain_id"],
- "columnsTo": ["id", "domain_id"],
+ "columnsFrom": [
+ "run_id",
+ "domain_id"
+ ],
+ "columnsTo": [
+ "id",
+ "domain_id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -16536,8 +18161,14 @@
"name": "expertise_hits_lesson_domain_fk",
"tableFrom": "expertise_hits",
"tableTo": "expertise_lessons",
- "columnsFrom": ["lesson_id", "domain_id"],
- "columnsTo": ["id", "domain_id"],
+ "columnsFrom": [
+ "lesson_id",
+ "domain_id"
+ ],
+ "columnsTo": [
+ "id",
+ "domain_id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
}
@@ -16724,8 +18355,12 @@
"name": "expertise_insights_domain_id_expertise_domains_id_fk",
"tableFrom": "expertise_insights",
"tableTo": "expertise_domains",
- "columnsFrom": ["domain_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "domain_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -16733,8 +18368,12 @@
"name": "expertise_insights_user_id_users_id_fk",
"tableFrom": "expertise_insights",
"tableTo": "users",
- "columnsFrom": ["user_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "user_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -16742,8 +18381,12 @@
"name": "expertise_insights_workspace_id_workspaces_id_fk",
"tableFrom": "expertise_insights",
"tableTo": "workspaces",
- "columnsFrom": ["workspace_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "workspace_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -16751,8 +18394,12 @@
"name": "expertise_insights_generated_by_operation_id_agent_operations_id_fk",
"tableFrom": "expertise_insights",
"tableTo": "agent_operations",
- "columnsFrom": ["generated_by_operation_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "generated_by_operation_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "set null",
"onUpdate": "no action"
}
@@ -16892,8 +18539,12 @@
"name": "expertise_lesson_revisions_lesson_id_expertise_lessons_id_fk",
"tableFrom": "expertise_lesson_revisions",
"tableTo": "expertise_lessons",
- "columnsFrom": ["lesson_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "lesson_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -16901,8 +18552,12 @@
"name": "expertise_lesson_revisions_changed_by_user_id_users_id_fk",
"tableFrom": "expertise_lesson_revisions",
"tableTo": "users",
- "columnsFrom": ["changed_by_user_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "changed_by_user_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "set null",
"onUpdate": "no action"
},
@@ -16910,8 +18565,12 @@
"name": "expertise_lesson_revisions_operation_id_agent_operations_id_fk",
"tableFrom": "expertise_lesson_revisions",
"tableTo": "agent_operations",
- "columnsFrom": ["operation_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "operation_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "set null",
"onUpdate": "no action"
}
@@ -17245,8 +18904,12 @@
"name": "expertise_lessons_domain_id_expertise_domains_id_fk",
"tableFrom": "expertise_lessons",
"tableTo": "expertise_domains",
- "columnsFrom": ["domain_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "domain_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -17254,8 +18917,12 @@
"name": "expertise_lessons_created_by_user_id_users_id_fk",
"tableFrom": "expertise_lessons",
"tableTo": "users",
- "columnsFrom": ["created_by_user_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "created_by_user_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "set null",
"onUpdate": "no action"
},
@@ -17263,8 +18930,12 @@
"name": "expertise_lessons_salvaged_from_id_expertise_lessons_id_fk",
"tableFrom": "expertise_lessons",
"tableTo": "expertise_lessons",
- "columnsFrom": ["salvaged_from_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "salvaged_from_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "set null",
"onUpdate": "no action"
},
@@ -17272,8 +18943,12 @@
"name": "expertise_lessons_compiled_criterion_id_verify_criteria_id_fk",
"tableFrom": "expertise_lessons",
"tableTo": "verify_criteria",
- "columnsFrom": ["compiled_criterion_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "compiled_criterion_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "set null",
"onUpdate": "no action"
}
@@ -17283,7 +18958,10 @@
"expertise_lessons_id_domain_unique": {
"name": "expertise_lessons_id_domain_unique",
"nullsNotDistinct": false,
- "columns": ["id", "domain_id"]
+ "columns": [
+ "id",
+ "domain_id"
+ ]
}
},
"policies": {},
@@ -17550,8 +19228,12 @@
"name": "expertise_runs_domain_id_expertise_domains_id_fk",
"tableFrom": "expertise_runs",
"tableTo": "expertise_domains",
- "columnsFrom": ["domain_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "domain_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -17559,8 +19241,12 @@
"name": "expertise_runs_user_id_users_id_fk",
"tableFrom": "expertise_runs",
"tableTo": "users",
- "columnsFrom": ["user_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "user_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "set null",
"onUpdate": "no action"
},
@@ -17568,8 +19254,12 @@
"name": "expertise_runs_workspace_id_workspaces_id_fk",
"tableFrom": "expertise_runs",
"tableTo": "workspaces",
- "columnsFrom": ["workspace_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "workspace_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
}
@@ -17579,7 +19269,10 @@
"expertise_runs_id_domain_unique": {
"name": "expertise_runs_id_domain_unique",
"nullsNotDistinct": false,
- "columns": ["id", "domain_id"]
+ "columns": [
+ "id",
+ "domain_id"
+ ]
}
},
"policies": {},
@@ -17767,8 +19460,12 @@
"name": "user_favorites_user_id_users_id_fk",
"tableFrom": "user_favorites",
"tableTo": "users",
- "columnsFrom": ["user_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "user_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -17776,8 +19473,12 @@
"name": "user_favorites_workspace_id_workspaces_id_fk",
"tableFrom": "user_favorites",
"tableTo": "workspaces",
- "columnsFrom": ["workspace_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "workspace_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
}
@@ -17912,6 +19613,12 @@
"primaryKey": false,
"notNull": false
},
+ "created_by_agent_id": {
+ "name": "created_by_agent_id",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
"visibility": {
"name": "visibility",
"type": "text",
@@ -18172,8 +19879,12 @@
"name": "documents_file_id_files_id_fk",
"tableFrom": "documents",
"tableTo": "files",
- "columnsFrom": ["file_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "file_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "set null",
"onUpdate": "no action"
},
@@ -18181,8 +19892,12 @@
"name": "documents_knowledge_base_id_knowledge_bases_id_fk",
"tableFrom": "documents",
"tableTo": "knowledge_bases",
- "columnsFrom": ["knowledge_base_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "knowledge_base_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "set null",
"onUpdate": "no action"
},
@@ -18190,8 +19905,12 @@
"name": "documents_parent_id_documents_id_fk",
"tableFrom": "documents",
"tableTo": "documents",
- "columnsFrom": ["parent_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "parent_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "set null",
"onUpdate": "no action"
},
@@ -18199,8 +19918,12 @@
"name": "documents_user_id_users_id_fk",
"tableFrom": "documents",
"tableTo": "users",
- "columnsFrom": ["user_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "user_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -18208,8 +19931,12 @@
"name": "documents_workspace_id_workspaces_id_fk",
"tableFrom": "documents",
"tableTo": "workspaces",
- "columnsFrom": ["workspace_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "workspace_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
}
@@ -18426,8 +20153,12 @@
"name": "file_uploads_user_id_users_id_fk",
"tableFrom": "file_uploads",
"tableTo": "users",
- "columnsFrom": ["user_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "user_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -18435,8 +20166,12 @@
"name": "file_uploads_workspace_id_workspaces_id_fk",
"tableFrom": "file_uploads",
"tableTo": "workspaces",
- "columnsFrom": ["workspace_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "workspace_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -18444,8 +20179,12 @@
"name": "file_uploads_file_id_files_id_fk",
"tableFrom": "file_uploads",
"tableTo": "files",
- "columnsFrom": ["file_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "file_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "set null",
"onUpdate": "no action"
}
@@ -18730,8 +20469,12 @@
"name": "files_user_id_users_id_fk",
"tableFrom": "files",
"tableTo": "users",
- "columnsFrom": ["user_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "user_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -18739,8 +20482,12 @@
"name": "files_file_hash_global_files_hash_id_fk",
"tableFrom": "files",
"tableTo": "global_files",
- "columnsFrom": ["file_hash"],
- "columnsTo": ["hash_id"],
+ "columnsFrom": [
+ "file_hash"
+ ],
+ "columnsTo": [
+ "hash_id"
+ ],
"onDelete": "no action",
"onUpdate": "no action"
},
@@ -18748,8 +20495,12 @@
"name": "files_parent_id_documents_id_fk",
"tableFrom": "files",
"tableTo": "documents",
- "columnsFrom": ["parent_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "parent_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "set null",
"onUpdate": "no action"
},
@@ -18757,8 +20508,12 @@
"name": "files_chunk_task_id_async_tasks_id_fk",
"tableFrom": "files",
"tableTo": "async_tasks",
- "columnsFrom": ["chunk_task_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "chunk_task_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "set null",
"onUpdate": "no action"
},
@@ -18766,8 +20521,12 @@
"name": "files_embedding_task_id_async_tasks_id_fk",
"tableFrom": "files",
"tableTo": "async_tasks",
- "columnsFrom": ["embedding_task_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "embedding_task_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "set null",
"onUpdate": "no action"
},
@@ -18775,8 +20534,12 @@
"name": "files_workspace_id_workspaces_id_fk",
"tableFrom": "files",
"tableTo": "workspaces",
- "columnsFrom": ["workspace_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "workspace_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
}
@@ -18864,8 +20627,12 @@
"name": "global_files_creator_users_id_fk",
"tableFrom": "global_files",
"tableTo": "users",
- "columnsFrom": ["creator"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "creator"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "set null",
"onUpdate": "no action"
}
@@ -18979,8 +20746,12 @@
"name": "knowledge_base_files_knowledge_base_id_knowledge_bases_id_fk",
"tableFrom": "knowledge_base_files",
"tableTo": "knowledge_bases",
- "columnsFrom": ["knowledge_base_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "knowledge_base_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -18988,8 +20759,12 @@
"name": "knowledge_base_files_file_id_files_id_fk",
"tableFrom": "knowledge_base_files",
"tableTo": "files",
- "columnsFrom": ["file_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "file_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -18997,8 +20772,12 @@
"name": "knowledge_base_files_user_id_users_id_fk",
"tableFrom": "knowledge_base_files",
"tableTo": "users",
- "columnsFrom": ["user_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "user_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -19006,8 +20785,12 @@
"name": "knowledge_base_files_workspace_id_workspaces_id_fk",
"tableFrom": "knowledge_base_files",
"tableTo": "workspaces",
- "columnsFrom": ["workspace_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "workspace_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
}
@@ -19015,7 +20798,10 @@
"compositePrimaryKeys": {
"knowledge_base_files_knowledge_base_id_file_id_pk": {
"name": "knowledge_base_files_knowledge_base_id_file_id_pk",
- "columns": ["knowledge_base_id", "file_id"]
+ "columns": [
+ "knowledge_base_id",
+ "file_id"
+ ]
}
},
"uniqueConstraints": {},
@@ -19214,8 +21000,12 @@
"name": "knowledge_bases_user_id_users_id_fk",
"tableFrom": "knowledge_bases",
"tableTo": "users",
- "columnsFrom": ["user_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "user_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -19223,8 +21013,12 @@
"name": "knowledge_bases_workspace_id_workspaces_id_fk",
"tableFrom": "knowledge_bases",
"tableTo": "workspaces",
- "columnsFrom": ["workspace_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "workspace_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
}
@@ -19363,8 +21157,12 @@
"name": "file_shares_file_id_files_id_fk",
"tableFrom": "file_shares",
"tableTo": "files",
- "columnsFrom": ["file_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "file_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -19372,8 +21170,12 @@
"name": "file_shares_user_id_users_id_fk",
"tableFrom": "file_shares",
"tableTo": "users",
- "columnsFrom": ["user_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "user_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -19381,8 +21183,12 @@
"name": "file_shares_workspace_id_workspaces_id_fk",
"tableFrom": "file_shares",
"tableTo": "workspaces",
- "columnsFrom": ["workspace_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "workspace_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
}
@@ -19748,8 +21554,12 @@
"name": "generation_batches_user_id_users_id_fk",
"tableFrom": "generation_batches",
"tableTo": "users",
- "columnsFrom": ["user_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "user_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -19757,8 +21567,12 @@
"name": "generation_batches_workspace_id_workspaces_id_fk",
"tableFrom": "generation_batches",
"tableTo": "workspaces",
- "columnsFrom": ["workspace_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "workspace_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -19766,8 +21580,12 @@
"name": "generation_batches_generation_topic_id_generation_topics_id_fk",
"tableFrom": "generation_batches",
"tableTo": "generation_topics",
- "columnsFrom": ["generation_topic_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "generation_topic_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
}
@@ -19924,8 +21742,12 @@
"name": "generation_topics_user_id_users_id_fk",
"tableFrom": "generation_topics",
"tableTo": "users",
- "columnsFrom": ["user_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "user_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -19933,8 +21755,12 @@
"name": "generation_topics_workspace_id_workspaces_id_fk",
"tableFrom": "generation_topics",
"tableTo": "workspaces",
- "columnsFrom": ["workspace_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "workspace_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
}
@@ -20098,8 +21924,12 @@
"name": "generations_user_id_users_id_fk",
"tableFrom": "generations",
"tableTo": "users",
- "columnsFrom": ["user_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "user_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -20107,8 +21937,12 @@
"name": "generations_workspace_id_workspaces_id_fk",
"tableFrom": "generations",
"tableTo": "workspaces",
- "columnsFrom": ["workspace_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "workspace_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -20116,8 +21950,12 @@
"name": "generations_generation_batch_id_generation_batches_id_fk",
"tableFrom": "generations",
"tableTo": "generation_batches",
- "columnsFrom": ["generation_batch_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "generation_batch_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -20125,8 +21963,12 @@
"name": "generations_async_task_id_async_tasks_id_fk",
"tableFrom": "generations",
"tableTo": "async_tasks",
- "columnsFrom": ["async_task_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "async_task_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "set null",
"onUpdate": "no action"
},
@@ -20134,8 +21976,12 @@
"name": "generations_file_id_files_id_fk",
"tableFrom": "generations",
"tableTo": "files",
- "columnsFrom": ["file_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "file_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
}
@@ -20411,8 +22257,12 @@
"name": "goals_user_id_users_id_fk",
"tableFrom": "goals",
"tableTo": "users",
- "columnsFrom": ["user_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "user_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -20420,8 +22270,12 @@
"name": "goals_workspace_id_workspaces_id_fk",
"tableFrom": "goals",
"tableTo": "workspaces",
- "columnsFrom": ["workspace_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "workspace_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -20429,8 +22283,12 @@
"name": "goals_agent_id_agents_id_fk",
"tableFrom": "goals",
"tableTo": "agents",
- "columnsFrom": ["agent_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "agent_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "set null",
"onUpdate": "no action"
},
@@ -20438,8 +22296,12 @@
"name": "goals_project_id_projects_id_fk",
"tableFrom": "goals",
"tableTo": "projects",
- "columnsFrom": ["project_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "project_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "set null",
"onUpdate": "no action"
}
@@ -20557,8 +22419,12 @@
"name": "goal_edges_goal_id_goals_id_fk",
"tableFrom": "goal_edges",
"tableTo": "goals",
- "columnsFrom": ["goal_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "goal_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -20566,8 +22432,14 @@
"name": "goal_edges_goal_source_node_fk",
"tableFrom": "goal_edges",
"tableTo": "goal_nodes",
- "columnsFrom": ["goal_id", "source_node_id"],
- "columnsTo": ["goal_id", "id"],
+ "columnsFrom": [
+ "goal_id",
+ "source_node_id"
+ ],
+ "columnsTo": [
+ "goal_id",
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -20575,8 +22447,14 @@
"name": "goal_edges_goal_target_node_fk",
"tableFrom": "goal_edges",
"tableTo": "goal_nodes",
- "columnsFrom": ["goal_id", "target_node_id"],
- "columnsTo": ["goal_id", "id"],
+ "columnsFrom": [
+ "goal_id",
+ "target_node_id"
+ ],
+ "columnsTo": [
+ "goal_id",
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
}
@@ -20744,8 +22622,12 @@
"name": "goal_events_goal_id_goals_id_fk",
"tableFrom": "goal_events",
"tableTo": "goals",
- "columnsFrom": ["goal_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "goal_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -20753,8 +22635,12 @@
"name": "goal_events_task_id_tasks_id_fk",
"tableFrom": "goal_events",
"tableTo": "tasks",
- "columnsFrom": ["task_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "task_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "set null",
"onUpdate": "no action"
}
@@ -20956,8 +22842,12 @@
"name": "goal_node_decisions_node_id_goal_nodes_id_fk",
"tableFrom": "goal_node_decisions",
"tableTo": "goal_nodes",
- "columnsFrom": ["node_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "node_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -20965,8 +22855,12 @@
"name": "goal_node_decisions_requested_user_id_users_id_fk",
"tableFrom": "goal_node_decisions",
"tableTo": "users",
- "columnsFrom": ["requested_user_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "requested_user_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "set null",
"onUpdate": "no action"
},
@@ -20974,8 +22868,12 @@
"name": "goal_node_decisions_resolved_by_user_id_users_id_fk",
"tableFrom": "goal_node_decisions",
"tableTo": "users",
- "columnsFrom": ["resolved_by_user_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "resolved_by_user_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "set null",
"onUpdate": "no action"
},
@@ -20983,8 +22881,12 @@
"name": "goal_node_decisions_resolved_by_agent_id_agents_id_fk",
"tableFrom": "goal_node_decisions",
"tableTo": "agents",
- "columnsFrom": ["resolved_by_agent_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "resolved_by_agent_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "set null",
"onUpdate": "no action"
}
@@ -21081,8 +22983,12 @@
"name": "goal_node_work_versions_node_id_goal_nodes_id_fk",
"tableFrom": "goal_node_work_versions",
"tableTo": "goal_nodes",
- "columnsFrom": ["node_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "node_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -21090,8 +22996,12 @@
"name": "goal_node_work_versions_work_version_id_work_versions_id_fk",
"tableFrom": "goal_node_work_versions",
"tableTo": "work_versions",
- "columnsFrom": ["work_version_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "work_version_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
}
@@ -21283,8 +23193,12 @@
"name": "goal_nodes_goal_id_goals_id_fk",
"tableFrom": "goal_nodes",
"tableTo": "goals",
- "columnsFrom": ["goal_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "goal_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -21292,8 +23206,12 @@
"name": "goal_nodes_task_id_tasks_id_fk",
"tableFrom": "goal_nodes",
"tableTo": "tasks",
- "columnsFrom": ["task_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "task_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "set null",
"onUpdate": "no action"
},
@@ -21301,8 +23219,12 @@
"name": "goal_nodes_created_by_user_id_users_id_fk",
"tableFrom": "goal_nodes",
"tableTo": "users",
- "columnsFrom": ["created_by_user_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "created_by_user_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "set null",
"onUpdate": "no action"
},
@@ -21310,8 +23232,12 @@
"name": "goal_nodes_created_by_agent_id_agents_id_fk",
"tableFrom": "goal_nodes",
"tableTo": "agents",
- "columnsFrom": ["created_by_agent_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "created_by_agent_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "set null",
"onUpdate": "no action"
}
@@ -21321,7 +23247,10 @@
"goal_nodes_goal_id_id_unique": {
"name": "goal_nodes_goal_id_id_unique",
"nullsNotDistinct": false,
- "columns": ["goal_id", "id"]
+ "columns": [
+ "goal_id",
+ "id"
+ ]
}
},
"policies": {},
@@ -21461,8 +23390,12 @@
"name": "goal_shares_goal_id_goals_id_fk",
"tableFrom": "goal_shares",
"tableTo": "goals",
- "columnsFrom": ["goal_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "goal_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -21470,8 +23403,12 @@
"name": "goal_shares_user_id_users_id_fk",
"tableFrom": "goal_shares",
"tableTo": "users",
- "columnsFrom": ["user_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "user_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -21479,8 +23416,12 @@
"name": "goal_shares_workspace_id_workspaces_id_fk",
"tableFrom": "goal_shares",
"tableTo": "workspaces",
- "columnsFrom": ["workspace_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "workspace_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
}
@@ -21779,8 +23720,12 @@
"name": "goal_subscriptions_goal_id_goals_id_fk",
"tableFrom": "goal_subscriptions",
"tableTo": "goals",
- "columnsFrom": ["goal_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "goal_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -21788,8 +23733,12 @@
"name": "goal_subscriptions_widget_id_widgets_id_fk",
"tableFrom": "goal_subscriptions",
"tableTo": "widgets",
- "columnsFrom": ["widget_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "widget_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -21797,8 +23746,12 @@
"name": "goal_subscriptions_metric_id_metrics_id_fk",
"tableFrom": "goal_subscriptions",
"tableTo": "metrics",
- "columnsFrom": ["metric_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "metric_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -21806,8 +23759,12 @@
"name": "goal_subscriptions_user_id_users_id_fk",
"tableFrom": "goal_subscriptions",
"tableTo": "users",
- "columnsFrom": ["user_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "user_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -21815,8 +23772,12 @@
"name": "goal_subscriptions_workspace_id_workspaces_id_fk",
"tableFrom": "goal_subscriptions",
"tableTo": "workspaces",
- "columnsFrom": ["workspace_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "workspace_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -21824,8 +23785,12 @@
"name": "goal_subscriptions_confirmed_version_id_widget_versions_id_fk",
"tableFrom": "goal_subscriptions",
"tableTo": "widget_versions",
- "columnsFrom": ["confirmed_version_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "confirmed_version_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
}
@@ -22011,8 +23976,12 @@
"name": "goal_traces_goal_id_goals_id_fk",
"tableFrom": "goal_traces",
"tableTo": "goals",
- "columnsFrom": ["goal_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "goal_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
}
@@ -22210,8 +24179,12 @@
"name": "linear_connections_user_id_users_id_fk",
"tableFrom": "linear_connections",
"tableTo": "users",
- "columnsFrom": ["user_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "user_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -22219,8 +24192,12 @@
"name": "linear_connections_workspace_id_workspaces_id_fk",
"tableFrom": "linear_connections",
"tableTo": "workspaces",
- "columnsFrom": ["workspace_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "workspace_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
}
@@ -22397,8 +24374,12 @@
"name": "linear_sync_rules_project_id_projects_id_fk",
"tableFrom": "linear_sync_rules",
"tableTo": "projects",
- "columnsFrom": ["project_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "project_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -22406,8 +24387,12 @@
"name": "linear_sync_rules_connection_id_linear_connections_id_fk",
"tableFrom": "linear_sync_rules",
"tableTo": "linear_connections",
- "columnsFrom": ["connection_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "connection_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -22415,8 +24400,12 @@
"name": "linear_sync_rules_user_id_users_id_fk",
"tableFrom": "linear_sync_rules",
"tableTo": "users",
- "columnsFrom": ["user_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "user_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -22424,8 +24413,12 @@
"name": "linear_sync_rules_workspace_id_workspaces_id_fk",
"tableFrom": "linear_sync_rules",
"tableTo": "workspaces",
- "columnsFrom": ["workspace_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "workspace_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
}
@@ -22845,225 +24838,913 @@
"name": "llm_generation_tracing_workspace_id_workspaces_id_fk",
"tableFrom": "llm_generation_tracing",
"tableTo": "workspaces",
- "columnsFrom": ["workspace_id"],
- "columnsTo": ["id"],
- "onDelete": "cascade",
- "onUpdate": "no action"
- }
- },
- "compositePrimaryKeys": {},
- "uniqueConstraints": {},
- "policies": {},
- "checkConstraints": {},
- "isRLSEnabled": false
- },
- "public.message_chunks": {
- "name": "message_chunks",
- "schema": "",
- "columns": {
- "message_id": {
- "name": "message_id",
- "type": "text",
- "primaryKey": false,
- "notNull": false
- },
- "chunk_id": {
- "name": "chunk_id",
- "type": "uuid",
- "primaryKey": false,
- "notNull": false
- },
- "user_id": {
- "name": "user_id",
- "type": "text",
- "primaryKey": false,
- "notNull": true
- },
- "workspace_id": {
- "name": "workspace_id",
- "type": "text",
- "primaryKey": false,
- "notNull": false
- }
- },
- "indexes": {
- "message_chunks_user_id_idx": {
- "name": "message_chunks_user_id_idx",
- "columns": [
- {
- "expression": "user_id",
- "isExpression": false,
- "asc": true,
- "nulls": "last"
- }
+ "columnsFrom": [
+ "workspace_id"
],
- "isUnique": false,
- "concurrently": false,
- "method": "btree",
- "with": {}
- },
- "message_chunks_message_id_idx": {
- "name": "message_chunks_message_id_idx",
- "columns": [
- {
- "expression": "message_id",
- "isExpression": false,
- "asc": true,
- "nulls": "last"
- }
+ "columnsTo": [
+ "id"
],
- "isUnique": false,
- "concurrently": false,
- "method": "btree",
- "with": {}
- },
- "message_chunks_workspace_id_idx": {
- "name": "message_chunks_workspace_id_idx",
- "columns": [
- {
- "expression": "workspace_id",
- "isExpression": false,
- "asc": true,
- "nulls": "last"
- }
- ],
- "isUnique": false,
- "concurrently": false,
- "method": "btree",
- "with": {}
- }
- },
- "foreignKeys": {
- "message_chunks_message_id_messages_id_fk": {
- "name": "message_chunks_message_id_messages_id_fk",
- "tableFrom": "message_chunks",
- "tableTo": "messages",
- "columnsFrom": ["message_id"],
- "columnsTo": ["id"],
"onDelete": "cascade",
"onUpdate": "no action"
- },
- "message_chunks_chunk_id_chunks_id_fk": {
- "name": "message_chunks_chunk_id_chunks_id_fk",
- "tableFrom": "message_chunks",
- "tableTo": "chunks",
- "columnsFrom": ["chunk_id"],
- "columnsTo": ["id"],
- "onDelete": "cascade",
- "onUpdate": "no action"
- },
- "message_chunks_user_id_users_id_fk": {
- "name": "message_chunks_user_id_users_id_fk",
- "tableFrom": "message_chunks",
- "tableTo": "users",
- "columnsFrom": ["user_id"],
- "columnsTo": ["id"],
- "onDelete": "cascade",
- "onUpdate": "no action"
- },
- "message_chunks_workspace_id_workspaces_id_fk": {
- "name": "message_chunks_workspace_id_workspaces_id_fk",
- "tableFrom": "message_chunks",
- "tableTo": "workspaces",
- "columnsFrom": ["workspace_id"],
- "columnsTo": ["id"],
- "onDelete": "cascade",
- "onUpdate": "no action"
- }
- },
- "compositePrimaryKeys": {
- "message_chunks_chunk_id_message_id_pk": {
- "name": "message_chunks_chunk_id_message_id_pk",
- "columns": ["chunk_id", "message_id"]
}
},
+ "compositePrimaryKeys": {},
"uniqueConstraints": {},
"policies": {},
"checkConstraints": {},
"isRLSEnabled": false
},
- "public.message_groups": {
- "name": "message_groups",
+ "public.meeting_minutes": {
+ "name": "meeting_minutes",
"schema": "",
"columns": {
"id": {
"name": "id",
- "type": "varchar(255)",
+ "type": "uuid",
"primaryKey": true,
- "notNull": true
- },
- "topic_id": {
- "name": "topic_id",
- "type": "text",
- "primaryKey": false,
- "notNull": false
+ "notNull": true,
+ "default": "gen_random_uuid()"
},
- "user_id": {
- "name": "user_id",
- "type": "text",
+ "meeting_id": {
+ "name": "meeting_id",
+ "type": "uuid",
"primaryKey": false,
"notNull": true
},
- "workspace_id": {
- "name": "workspace_id",
+ "summary": {
+ "name": "summary",
"type": "text",
"primaryKey": false,
"notNull": false
},
- "parent_group_id": {
- "name": "parent_group_id",
- "type": "varchar(255)",
+ "chapters": {
+ "name": "chapters",
+ "type": "jsonb",
"primaryKey": false,
- "notNull": false
+ "notNull": true,
+ "default": "'[]'::jsonb"
},
- "parent_message_id": {
- "name": "parent_message_id",
- "type": "text",
+ "decisions": {
+ "name": "decisions",
+ "type": "jsonb",
"primaryKey": false,
- "notNull": false
+ "notNull": true,
+ "default": "'[]'::jsonb"
},
- "title": {
- "name": "title",
- "type": "varchar(255)",
+ "action_items": {
+ "name": "action_items",
+ "type": "jsonb",
"primaryKey": false,
- "notNull": false
+ "notNull": true,
+ "default": "'[]'::jsonb"
},
- "description": {
- "name": "description",
- "type": "text",
+ "keywords": {
+ "name": "keywords",
+ "type": "jsonb",
"primaryKey": false,
- "notNull": false
+ "notNull": true,
+ "default": "'[]'::jsonb"
},
- "type": {
- "name": "type",
+ "document_id": {
+ "name": "document_id",
"type": "text",
"primaryKey": false,
"notNull": false
},
- "content": {
- "name": "content",
+ "model": {
+ "name": "model",
"type": "text",
"primaryKey": false,
"notNull": false
},
- "editor_data": {
- "name": "editor_data",
- "type": "jsonb",
- "primaryKey": false,
- "notNull": false
- },
- "metadata": {
- "name": "metadata",
- "type": "jsonb",
- "primaryKey": false,
- "notNull": false
- },
- "client_id": {
- "name": "client_id",
- "type": "varchar(255)",
- "primaryKey": false,
- "notNull": false
- },
+ "accessed_at": {
+ "name": "accessed_at",
+ "type": "timestamp with time zone",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "now()"
+ },
+ "created_at": {
+ "name": "created_at",
+ "type": "timestamp with time zone",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "now()"
+ },
+ "updated_at": {
+ "name": "updated_at",
+ "type": "timestamp with time zone",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "now()"
+ }
+ },
+ "indexes": {
+ "meeting_minutes_meeting_id_unique": {
+ "name": "meeting_minutes_meeting_id_unique",
+ "columns": [
+ {
+ "expression": "meeting_id",
+ "isExpression": false,
+ "asc": true,
+ "nulls": "last"
+ }
+ ],
+ "isUnique": true,
+ "concurrently": false,
+ "method": "btree",
+ "with": {}
+ },
+ "meeting_minutes_document_id_idx": {
+ "name": "meeting_minutes_document_id_idx",
+ "columns": [
+ {
+ "expression": "document_id",
+ "isExpression": false,
+ "asc": true,
+ "nulls": "last"
+ }
+ ],
+ "isUnique": false,
+ "concurrently": false,
+ "method": "btree",
+ "with": {}
+ }
+ },
+ "foreignKeys": {
+ "meeting_minutes_meeting_id_meetings_id_fk": {
+ "name": "meeting_minutes_meeting_id_meetings_id_fk",
+ "tableFrom": "meeting_minutes",
+ "tableTo": "meetings",
+ "columnsFrom": [
+ "meeting_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ },
+ "meeting_minutes_document_id_documents_id_fk": {
+ "name": "meeting_minutes_document_id_documents_id_fk",
+ "tableFrom": "meeting_minutes",
+ "tableTo": "documents",
+ "columnsFrom": [
+ "document_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
+ "onDelete": "set null",
+ "onUpdate": "no action"
+ }
+ },
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {},
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.meeting_segments": {
+ "name": "meeting_segments",
+ "schema": "",
+ "columns": {
+ "id": {
+ "name": "id",
+ "type": "uuid",
+ "primaryKey": true,
+ "notNull": true,
+ "default": "gen_random_uuid()"
+ },
+ "meeting_id": {
+ "name": "meeting_id",
+ "type": "uuid",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "speaker_id": {
+ "name": "speaker_id",
+ "type": "uuid",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "source": {
+ "name": "source",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "seq": {
+ "name": "seq",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "start_ms": {
+ "name": "start_ms",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "end_ms": {
+ "name": "end_ms",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "text": {
+ "name": "text",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "accessed_at": {
+ "name": "accessed_at",
+ "type": "timestamp with time zone",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "now()"
+ },
+ "created_at": {
+ "name": "created_at",
+ "type": "timestamp with time zone",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "now()"
+ },
+ "updated_at": {
+ "name": "updated_at",
+ "type": "timestamp with time zone",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "now()"
+ }
+ },
+ "indexes": {
+ "meeting_segments_meeting_id_source_seq_unique": {
+ "name": "meeting_segments_meeting_id_source_seq_unique",
+ "columns": [
+ {
+ "expression": "meeting_id",
+ "isExpression": false,
+ "asc": true,
+ "nulls": "last"
+ },
+ {
+ "expression": "source",
+ "isExpression": false,
+ "asc": true,
+ "nulls": "last"
+ },
+ {
+ "expression": "seq",
+ "isExpression": false,
+ "asc": true,
+ "nulls": "last"
+ }
+ ],
+ "isUnique": true,
+ "concurrently": false,
+ "method": "btree",
+ "with": {}
+ },
+ "meeting_segments_meeting_id_source_start_ms_idx": {
+ "name": "meeting_segments_meeting_id_source_start_ms_idx",
+ "columns": [
+ {
+ "expression": "meeting_id",
+ "isExpression": false,
+ "asc": true,
+ "nulls": "last"
+ },
+ {
+ "expression": "source",
+ "isExpression": false,
+ "asc": true,
+ "nulls": "last"
+ },
+ {
+ "expression": "start_ms",
+ "isExpression": false,
+ "asc": true,
+ "nulls": "last"
+ }
+ ],
+ "isUnique": false,
+ "concurrently": false,
+ "method": "btree",
+ "with": {}
+ },
+ "meeting_segments_speaker_id_idx": {
+ "name": "meeting_segments_speaker_id_idx",
+ "columns": [
+ {
+ "expression": "speaker_id",
+ "isExpression": false,
+ "asc": true,
+ "nulls": "last"
+ }
+ ],
+ "isUnique": false,
+ "concurrently": false,
+ "method": "btree",
+ "with": {}
+ }
+ },
+ "foreignKeys": {
+ "meeting_segments_meeting_id_meetings_id_fk": {
+ "name": "meeting_segments_meeting_id_meetings_id_fk",
+ "tableFrom": "meeting_segments",
+ "tableTo": "meetings",
+ "columnsFrom": [
+ "meeting_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ },
+ "meeting_segments_speaker_id_meeting_speakers_id_fk": {
+ "name": "meeting_segments_speaker_id_meeting_speakers_id_fk",
+ "tableFrom": "meeting_segments",
+ "tableTo": "meeting_speakers",
+ "columnsFrom": [
+ "speaker_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
+ "onDelete": "set null",
+ "onUpdate": "no action"
+ }
+ },
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {},
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.meeting_speakers": {
+ "name": "meeting_speakers",
+ "schema": "",
+ "columns": {
+ "id": {
+ "name": "id",
+ "type": "uuid",
+ "primaryKey": true,
+ "notNull": true,
+ "default": "gen_random_uuid()"
+ },
+ "meeting_id": {
+ "name": "meeting_id",
+ "type": "uuid",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "label": {
+ "name": "label",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "display_name": {
+ "name": "display_name",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "accessed_at": {
+ "name": "accessed_at",
+ "type": "timestamp with time zone",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "now()"
+ },
+ "created_at": {
+ "name": "created_at",
+ "type": "timestamp with time zone",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "now()"
+ },
+ "updated_at": {
+ "name": "updated_at",
+ "type": "timestamp with time zone",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "now()"
+ }
+ },
+ "indexes": {
+ "meeting_speakers_meeting_id_label_unique": {
+ "name": "meeting_speakers_meeting_id_label_unique",
+ "columns": [
+ {
+ "expression": "meeting_id",
+ "isExpression": false,
+ "asc": true,
+ "nulls": "last"
+ },
+ {
+ "expression": "label",
+ "isExpression": false,
+ "asc": true,
+ "nulls": "last"
+ }
+ ],
+ "isUnique": true,
+ "concurrently": false,
+ "method": "btree",
+ "with": {}
+ }
+ },
+ "foreignKeys": {
+ "meeting_speakers_meeting_id_meetings_id_fk": {
+ "name": "meeting_speakers_meeting_id_meetings_id_fk",
+ "tableFrom": "meeting_speakers",
+ "tableTo": "meetings",
+ "columnsFrom": [
+ "meeting_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ }
+ },
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {},
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.meetings": {
+ "name": "meetings",
+ "schema": "",
+ "columns": {
+ "id": {
+ "name": "id",
+ "type": "uuid",
+ "primaryKey": true,
+ "notNull": true,
+ "default": "gen_random_uuid()"
+ },
+ "user_id": {
+ "name": "user_id",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "workspace_id": {
+ "name": "workspace_id",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "title": {
+ "name": "title",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "status": {
+ "name": "status",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "'recording'"
+ },
+ "platform": {
+ "name": "platform",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "realtime_provider": {
+ "name": "realtime_provider",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "refine_provider": {
+ "name": "refine_provider",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "language": {
+ "name": "language",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "'auto'"
+ },
+ "started_at": {
+ "name": "started_at",
+ "type": "timestamp with time zone",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "now()"
+ },
+ "ended_at": {
+ "name": "ended_at",
+ "type": "timestamp with time zone",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "duration_ms": {
+ "name": "duration_ms",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "audio_file_id": {
+ "name": "audio_file_id",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "local_audio_path": {
+ "name": "local_audio_path",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "error": {
+ "name": "error",
+ "type": "jsonb",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "visibility": {
+ "name": "visibility",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "'private'"
+ },
+ "accessed_at": {
+ "name": "accessed_at",
+ "type": "timestamp with time zone",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "now()"
+ },
+ "created_at": {
+ "name": "created_at",
+ "type": "timestamp with time zone",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "now()"
+ },
+ "updated_at": {
+ "name": "updated_at",
+ "type": "timestamp with time zone",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "now()"
+ }
+ },
+ "indexes": {
+ "meetings_user_id_workspace_id_created_at_idx": {
+ "name": "meetings_user_id_workspace_id_created_at_idx",
+ "columns": [
+ {
+ "expression": "user_id",
+ "isExpression": false,
+ "asc": true,
+ "nulls": "last"
+ },
+ {
+ "expression": "workspace_id",
+ "isExpression": false,
+ "asc": true,
+ "nulls": "last"
+ },
+ {
+ "expression": "created_at",
+ "isExpression": false,
+ "asc": true,
+ "nulls": "last"
+ }
+ ],
+ "isUnique": false,
+ "concurrently": false,
+ "method": "btree",
+ "with": {}
+ },
+ "meetings_workspace_id_created_at_idx": {
+ "name": "meetings_workspace_id_created_at_idx",
+ "columns": [
+ {
+ "expression": "workspace_id",
+ "isExpression": false,
+ "asc": true,
+ "nulls": "last"
+ },
+ {
+ "expression": "created_at",
+ "isExpression": false,
+ "asc": true,
+ "nulls": "last"
+ }
+ ],
+ "isUnique": false,
+ "concurrently": false,
+ "method": "btree",
+ "with": {}
+ },
+ "meetings_audio_file_id_idx": {
+ "name": "meetings_audio_file_id_idx",
+ "columns": [
+ {
+ "expression": "audio_file_id",
+ "isExpression": false,
+ "asc": true,
+ "nulls": "last"
+ }
+ ],
+ "isUnique": false,
+ "concurrently": false,
+ "method": "btree",
+ "with": {}
+ }
+ },
+ "foreignKeys": {
+ "meetings_user_id_users_id_fk": {
+ "name": "meetings_user_id_users_id_fk",
+ "tableFrom": "meetings",
+ "tableTo": "users",
+ "columnsFrom": [
+ "user_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ },
+ "meetings_workspace_id_workspaces_id_fk": {
+ "name": "meetings_workspace_id_workspaces_id_fk",
+ "tableFrom": "meetings",
+ "tableTo": "workspaces",
+ "columnsFrom": [
+ "workspace_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ },
+ "meetings_audio_file_id_files_id_fk": {
+ "name": "meetings_audio_file_id_files_id_fk",
+ "tableFrom": "meetings",
+ "tableTo": "files",
+ "columnsFrom": [
+ "audio_file_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
+ "onDelete": "set null",
+ "onUpdate": "no action"
+ }
+ },
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {},
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.message_chunks": {
+ "name": "message_chunks",
+ "schema": "",
+ "columns": {
+ "message_id": {
+ "name": "message_id",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "chunk_id": {
+ "name": "chunk_id",
+ "type": "uuid",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "user_id": {
+ "name": "user_id",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "workspace_id": {
+ "name": "workspace_id",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ }
+ },
+ "indexes": {
+ "message_chunks_user_id_idx": {
+ "name": "message_chunks_user_id_idx",
+ "columns": [
+ {
+ "expression": "user_id",
+ "isExpression": false,
+ "asc": true,
+ "nulls": "last"
+ }
+ ],
+ "isUnique": false,
+ "concurrently": false,
+ "method": "btree",
+ "with": {}
+ },
+ "message_chunks_message_id_idx": {
+ "name": "message_chunks_message_id_idx",
+ "columns": [
+ {
+ "expression": "message_id",
+ "isExpression": false,
+ "asc": true,
+ "nulls": "last"
+ }
+ ],
+ "isUnique": false,
+ "concurrently": false,
+ "method": "btree",
+ "with": {}
+ },
+ "message_chunks_workspace_id_idx": {
+ "name": "message_chunks_workspace_id_idx",
+ "columns": [
+ {
+ "expression": "workspace_id",
+ "isExpression": false,
+ "asc": true,
+ "nulls": "last"
+ }
+ ],
+ "isUnique": false,
+ "concurrently": false,
+ "method": "btree",
+ "with": {}
+ }
+ },
+ "foreignKeys": {
+ "message_chunks_message_id_messages_id_fk": {
+ "name": "message_chunks_message_id_messages_id_fk",
+ "tableFrom": "message_chunks",
+ "tableTo": "messages",
+ "columnsFrom": [
+ "message_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ },
+ "message_chunks_chunk_id_chunks_id_fk": {
+ "name": "message_chunks_chunk_id_chunks_id_fk",
+ "tableFrom": "message_chunks",
+ "tableTo": "chunks",
+ "columnsFrom": [
+ "chunk_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ },
+ "message_chunks_user_id_users_id_fk": {
+ "name": "message_chunks_user_id_users_id_fk",
+ "tableFrom": "message_chunks",
+ "tableTo": "users",
+ "columnsFrom": [
+ "user_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ },
+ "message_chunks_workspace_id_workspaces_id_fk": {
+ "name": "message_chunks_workspace_id_workspaces_id_fk",
+ "tableFrom": "message_chunks",
+ "tableTo": "workspaces",
+ "columnsFrom": [
+ "workspace_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ }
+ },
+ "compositePrimaryKeys": {
+ "message_chunks_chunk_id_message_id_pk": {
+ "name": "message_chunks_chunk_id_message_id_pk",
+ "columns": [
+ "chunk_id",
+ "message_id"
+ ]
+ }
+ },
+ "uniqueConstraints": {},
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.message_groups": {
+ "name": "message_groups",
+ "schema": "",
+ "columns": {
+ "id": {
+ "name": "id",
+ "type": "varchar(255)",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "topic_id": {
+ "name": "topic_id",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "user_id": {
+ "name": "user_id",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "workspace_id": {
+ "name": "workspace_id",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "parent_group_id": {
+ "name": "parent_group_id",
+ "type": "varchar(255)",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "parent_message_id": {
+ "name": "parent_message_id",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "title": {
+ "name": "title",
+ "type": "varchar(255)",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "description": {
+ "name": "description",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "type": {
+ "name": "type",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "content": {
+ "name": "content",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "editor_data": {
+ "name": "editor_data",
+ "type": "jsonb",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "metadata": {
+ "name": "metadata",
+ "type": "jsonb",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "client_id": {
+ "name": "client_id",
+ "type": "varchar(255)",
+ "primaryKey": false,
+ "notNull": false
+ },
"accessed_at": {
"name": "accessed_at",
"type": "timestamp with time zone",
@@ -23204,8 +25885,12 @@
"name": "message_groups_topic_id_topics_id_fk",
"tableFrom": "message_groups",
"tableTo": "topics",
- "columnsFrom": ["topic_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "topic_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -23213,8 +25898,12 @@
"name": "message_groups_user_id_users_id_fk",
"tableFrom": "message_groups",
"tableTo": "users",
- "columnsFrom": ["user_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "user_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -23222,8 +25911,12 @@
"name": "message_groups_workspace_id_workspaces_id_fk",
"tableFrom": "message_groups",
"tableTo": "workspaces",
- "columnsFrom": ["workspace_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "workspace_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -23231,8 +25924,12 @@
"name": "message_groups_parent_group_id_message_groups_id_fk",
"tableFrom": "message_groups",
"tableTo": "message_groups",
- "columnsFrom": ["parent_group_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "parent_group_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -23240,8 +25937,12 @@
"name": "message_groups_parent_message_id_messages_id_fk",
"tableFrom": "message_groups",
"tableTo": "messages",
- "columnsFrom": ["parent_message_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "parent_message_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
}
@@ -23403,8 +26104,12 @@
"name": "message_plugins_id_messages_id_fk",
"tableFrom": "message_plugins",
"tableTo": "messages",
- "columnsFrom": ["id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -23412,8 +26117,12 @@
"name": "message_plugins_user_id_users_id_fk",
"tableFrom": "message_plugins",
"tableTo": "users",
- "columnsFrom": ["user_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "user_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -23421,8 +26130,12 @@
"name": "message_plugins_workspace_id_workspaces_id_fk",
"tableFrom": "message_plugins",
"tableTo": "workspaces",
- "columnsFrom": ["workspace_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "workspace_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
}
@@ -23575,8 +26288,12 @@
"name": "message_queries_message_id_messages_id_fk",
"tableFrom": "message_queries",
"tableTo": "messages",
- "columnsFrom": ["message_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "message_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -23584,8 +26301,12 @@
"name": "message_queries_user_id_users_id_fk",
"tableFrom": "message_queries",
"tableTo": "users",
- "columnsFrom": ["user_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "user_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -23593,8 +26314,12 @@
"name": "message_queries_workspace_id_workspaces_id_fk",
"tableFrom": "message_queries",
"tableTo": "workspaces",
- "columnsFrom": ["workspace_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "workspace_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -23602,8 +26327,12 @@
"name": "message_queries_embeddings_id_embeddings_id_fk",
"tableFrom": "message_queries",
"tableTo": "embeddings",
- "columnsFrom": ["embeddings_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "embeddings_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "set null",
"onUpdate": "no action"
}
@@ -23722,8 +26451,12 @@
"name": "message_query_chunks_id_messages_id_fk",
"tableFrom": "message_query_chunks",
"tableTo": "messages",
- "columnsFrom": ["id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -23731,8 +26464,12 @@
"name": "message_query_chunks_query_id_message_queries_id_fk",
"tableFrom": "message_query_chunks",
"tableTo": "message_queries",
- "columnsFrom": ["query_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "query_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -23740,8 +26477,12 @@
"name": "message_query_chunks_chunk_id_chunks_id_fk",
"tableFrom": "message_query_chunks",
"tableTo": "chunks",
- "columnsFrom": ["chunk_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "chunk_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -23749,8 +26490,12 @@
"name": "message_query_chunks_user_id_users_id_fk",
"tableFrom": "message_query_chunks",
"tableTo": "users",
- "columnsFrom": ["user_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "user_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -23758,8 +26503,12 @@
"name": "message_query_chunks_workspace_id_workspaces_id_fk",
"tableFrom": "message_query_chunks",
"tableTo": "workspaces",
- "columnsFrom": ["workspace_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "workspace_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
}
@@ -23767,7 +26516,11 @@
"compositePrimaryKeys": {
"message_query_chunks_chunk_id_id_query_id_pk": {
"name": "message_query_chunks_chunk_id_id_query_id_pk",
- "columns": ["chunk_id", "id", "query_id"]
+ "columns": [
+ "chunk_id",
+ "id",
+ "query_id"
+ ]
}
},
"uniqueConstraints": {},
@@ -23880,8 +26633,12 @@
"name": "message_tts_id_messages_id_fk",
"tableFrom": "message_tts",
"tableTo": "messages",
- "columnsFrom": ["id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -23889,8 +26646,12 @@
"name": "message_tts_file_id_files_id_fk",
"tableFrom": "message_tts",
"tableTo": "files",
- "columnsFrom": ["file_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "file_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -23898,8 +26659,12 @@
"name": "message_tts_user_id_users_id_fk",
"tableFrom": "message_tts",
"tableTo": "users",
- "columnsFrom": ["user_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "user_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -23907,8 +26672,12 @@
"name": "message_tts_workspace_id_workspaces_id_fk",
"tableFrom": "message_tts",
"tableTo": "workspaces",
- "columnsFrom": ["workspace_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "workspace_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
}
@@ -24024,8 +26793,12 @@
"name": "message_translates_id_messages_id_fk",
"tableFrom": "message_translates",
"tableTo": "messages",
- "columnsFrom": ["id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -24033,8 +26806,12 @@
"name": "message_translates_user_id_users_id_fk",
"tableFrom": "message_translates",
"tableTo": "users",
- "columnsFrom": ["user_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "user_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -24042,8 +26819,12 @@
"name": "message_translates_workspace_id_workspaces_id_fk",
"tableFrom": "message_translates",
"tableTo": "workspaces",
- "columnsFrom": ["workspace_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "workspace_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
}
@@ -24505,8 +27286,12 @@
"name": "messages_user_id_users_id_fk",
"tableFrom": "messages",
"tableTo": "users",
- "columnsFrom": ["user_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "user_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -24514,8 +27299,12 @@
"name": "messages_session_id_sessions_id_fk",
"tableFrom": "messages",
"tableTo": "sessions",
- "columnsFrom": ["session_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "session_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -24523,8 +27312,12 @@
"name": "messages_topic_id_topics_id_fk",
"tableFrom": "messages",
"tableTo": "topics",
- "columnsFrom": ["topic_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "topic_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -24532,8 +27325,12 @@
"name": "messages_thread_id_threads_id_fk",
"tableFrom": "messages",
"tableTo": "threads",
- "columnsFrom": ["thread_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "thread_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -24541,8 +27338,12 @@
"name": "messages_parent_id_messages_id_fk",
"tableFrom": "messages",
"tableTo": "messages",
- "columnsFrom": ["parent_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "parent_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "set null",
"onUpdate": "no action"
},
@@ -24550,8 +27351,12 @@
"name": "messages_quota_id_messages_id_fk",
"tableFrom": "messages",
"tableTo": "messages",
- "columnsFrom": ["quota_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "quota_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "set null",
"onUpdate": "no action"
},
@@ -24559,8 +27364,12 @@
"name": "messages_agent_id_agents_id_fk",
"tableFrom": "messages",
"tableTo": "agents",
- "columnsFrom": ["agent_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "agent_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -24568,8 +27377,12 @@
"name": "messages_group_id_chat_groups_id_fk",
"tableFrom": "messages",
"tableTo": "chat_groups",
- "columnsFrom": ["group_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "group_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "set null",
"onUpdate": "no action"
},
@@ -24577,8 +27390,12 @@
"name": "messages_message_group_id_message_groups_id_fk",
"tableFrom": "messages",
"tableTo": "message_groups",
- "columnsFrom": ["message_group_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "message_group_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -24586,8 +27403,12 @@
"name": "messages_workspace_id_workspaces_id_fk",
"tableFrom": "messages",
"tableTo": "workspaces",
- "columnsFrom": ["workspace_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "workspace_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
}
@@ -24679,8 +27500,12 @@
"name": "messages_files_file_id_files_id_fk",
"tableFrom": "messages_files",
"tableTo": "files",
- "columnsFrom": ["file_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "file_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -24688,8 +27513,12 @@
"name": "messages_files_message_id_messages_id_fk",
"tableFrom": "messages_files",
"tableTo": "messages",
- "columnsFrom": ["message_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "message_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -24697,8 +27526,12 @@
"name": "messages_files_user_id_users_id_fk",
"tableFrom": "messages_files",
"tableTo": "users",
- "columnsFrom": ["user_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "user_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -24706,8 +27539,12 @@
"name": "messages_files_workspace_id_workspaces_id_fk",
"tableFrom": "messages_files",
"tableTo": "workspaces",
- "columnsFrom": ["workspace_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "workspace_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
}
@@ -24715,7 +27552,10 @@
"compositePrimaryKeys": {
"messages_files_file_id_message_id_pk": {
"name": "messages_files_file_id_message_id_pk",
- "columns": ["file_id", "message_id"]
+ "columns": [
+ "file_id",
+ "message_id"
+ ]
}
},
"uniqueConstraints": {},
@@ -24930,8 +27770,12 @@
"name": "messenger_account_links_user_id_users_id_fk",
"tableFrom": "messenger_account_links",
"tableTo": "users",
- "columnsFrom": ["user_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "user_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -24939,8 +27783,12 @@
"name": "messenger_account_links_workspace_id_workspaces_id_fk",
"tableFrom": "messenger_account_links",
"tableTo": "workspaces",
- "columnsFrom": ["workspace_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "workspace_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -24948,8 +27796,12 @@
"name": "messenger_account_links_active_agent_id_agents_id_fk",
"tableFrom": "messenger_account_links",
"tableTo": "agents",
- "columnsFrom": ["active_agent_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "active_agent_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "set null",
"onUpdate": "no action"
}
@@ -25124,8 +27976,12 @@
"name": "messenger_installations_installed_by_user_id_users_id_fk",
"tableFrom": "messenger_installations",
"tableTo": "users",
- "columnsFrom": ["installed_by_user_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "installed_by_user_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "set null",
"onUpdate": "no action"
}
@@ -25273,8 +28129,12 @@
"name": "metric_points_metric_id_metrics_id_fk",
"tableFrom": "metric_points",
"tableTo": "metrics",
- "columnsFrom": ["metric_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "metric_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -25282,8 +28142,12 @@
"name": "metric_points_user_id_users_id_fk",
"tableFrom": "metric_points",
"tableTo": "users",
- "columnsFrom": ["user_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "user_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -25291,8 +28155,12 @@
"name": "metric_points_workspace_id_workspaces_id_fk",
"tableFrom": "metric_points",
"tableTo": "workspaces",
- "columnsFrom": ["workspace_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "workspace_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
}
@@ -25465,8 +28333,12 @@
"name": "metrics_user_id_users_id_fk",
"tableFrom": "metrics",
"tableTo": "users",
- "columnsFrom": ["user_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "user_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -25474,8 +28346,12 @@
"name": "metrics_workspace_id_workspaces_id_fk",
"tableFrom": "metrics",
"tableTo": "workspaces",
- "columnsFrom": ["workspace_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "workspace_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
}
@@ -25579,8 +28455,12 @@
"name": "nextauth_accounts_user_id_users_id_fk",
"tableFrom": "nextauth_accounts",
"tableTo": "users",
- "columnsFrom": ["user_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "user_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
}
@@ -25588,7 +28468,10 @@
"compositePrimaryKeys": {
"nextauth_accounts_provider_providerAccountId_pk": {
"name": "nextauth_accounts_provider_providerAccountId_pk",
- "columns": ["provider", "providerAccountId"]
+ "columns": [
+ "provider",
+ "providerAccountId"
+ ]
}
},
"uniqueConstraints": {},
@@ -25655,8 +28538,12 @@
"name": "nextauth_authenticators_user_id_users_id_fk",
"tableFrom": "nextauth_authenticators",
"tableTo": "users",
- "columnsFrom": ["user_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "user_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
}
@@ -25664,14 +28551,19 @@
"compositePrimaryKeys": {
"nextauth_authenticators_user_id_credentialID_pk": {
"name": "nextauth_authenticators_user_id_credentialID_pk",
- "columns": ["user_id", "credentialID"]
+ "columns": [
+ "user_id",
+ "credentialID"
+ ]
}
},
"uniqueConstraints": {
"nextauth_authenticators_credentialID_unique": {
"name": "nextauth_authenticators_credentialID_unique",
"nullsNotDistinct": false,
- "columns": ["credentialID"]
+ "columns": [
+ "credentialID"
+ ]
}
},
"policies": {},
@@ -25723,8 +28615,12 @@
"name": "nextauth_sessions_user_id_users_id_fk",
"tableFrom": "nextauth_sessions",
"tableTo": "users",
- "columnsFrom": ["user_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "user_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
}
@@ -25763,7 +28659,10 @@
"compositePrimaryKeys": {
"nextauth_verificationtokens_identifier_token_pk": {
"name": "nextauth_verificationtokens_identifier_token_pk",
- "columns": ["identifier", "token"]
+ "columns": [
+ "identifier",
+ "token"
+ ]
}
},
"uniqueConstraints": {},
@@ -25878,8 +28777,12 @@
"name": "notification_deliveries_notification_id_notifications_id_fk",
"tableFrom": "notification_deliveries",
"tableTo": "notifications",
- "columnsFrom": ["notification_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "notification_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
}
@@ -26135,8 +29038,12 @@
"name": "notifications_user_id_users_id_fk",
"tableFrom": "notifications",
"tableTo": "users",
- "columnsFrom": ["user_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "user_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -26144,8 +29051,12 @@
"name": "notifications_workspace_id_workspaces_id_fk",
"tableFrom": "notifications",
"tableTo": "workspaces",
- "columnsFrom": ["workspace_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "workspace_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
}
@@ -26298,8 +29209,12 @@
"name": "oidc_access_tokens_user_id_users_id_fk",
"tableFrom": "oidc_access_tokens",
"tableTo": "users",
- "columnsFrom": ["user_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "user_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
}
@@ -26400,8 +29315,12 @@
"name": "oidc_authorization_codes_user_id_users_id_fk",
"tableFrom": "oidc_authorization_codes",
"tableTo": "users",
- "columnsFrom": ["user_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "user_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
}
@@ -26590,8 +29509,12 @@
"name": "oidc_clients_user_id_users_id_fk",
"tableFrom": "oidc_clients",
"tableTo": "users",
- "columnsFrom": ["user_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "user_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -26599,8 +29522,12 @@
"name": "oidc_clients_workspace_id_workspaces_id_fk",
"tableFrom": "oidc_clients",
"tableTo": "workspaces",
- "columnsFrom": ["workspace_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "workspace_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
}
@@ -26667,8 +29594,12 @@
"name": "oidc_consents_user_id_users_id_fk",
"tableFrom": "oidc_consents",
"tableTo": "users",
- "columnsFrom": ["user_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "user_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -26676,8 +29607,12 @@
"name": "oidc_consents_client_id_oidc_clients_id_fk",
"tableFrom": "oidc_consents",
"tableTo": "oidc_clients",
- "columnsFrom": ["client_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "client_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
}
@@ -26685,7 +29620,10 @@
"compositePrimaryKeys": {
"oidc_consents_user_id_client_id_pk": {
"name": "oidc_consents_user_id_client_id_pk",
- "columns": ["user_id", "client_id"]
+ "columns": [
+ "user_id",
+ "client_id"
+ ]
}
},
"uniqueConstraints": {},
@@ -26789,8 +29727,12 @@
"name": "oidc_device_codes_user_id_users_id_fk",
"tableFrom": "oidc_device_codes",
"tableTo": "users",
- "columnsFrom": ["user_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "user_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
}
@@ -26885,8 +29827,12 @@
"name": "oidc_grants_user_id_users_id_fk",
"tableFrom": "oidc_grants",
"tableTo": "users",
- "columnsFrom": ["user_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "user_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
}
@@ -27039,8 +29985,12 @@
"name": "oidc_refresh_tokens_user_id_users_id_fk",
"tableFrom": "oidc_refresh_tokens",
"tableTo": "users",
- "columnsFrom": ["user_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "user_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
}
@@ -27123,8 +30073,12 @@
"name": "oidc_sessions_user_id_users_id_fk",
"tableFrom": "oidc_sessions",
"tableTo": "users",
- "columnsFrom": ["user_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "user_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
}
@@ -27297,8 +30251,12 @@
"name": "project_agents_project_id_projects_id_fk",
"tableFrom": "project_agents",
"tableTo": "projects",
- "columnsFrom": ["project_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "project_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -27306,8 +30264,12 @@
"name": "project_agents_agent_id_agents_id_fk",
"tableFrom": "project_agents",
"tableTo": "agents",
- "columnsFrom": ["agent_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "agent_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -27315,8 +30277,12 @@
"name": "project_agents_added_by_user_id_users_id_fk",
"tableFrom": "project_agents",
"tableTo": "users",
- "columnsFrom": ["added_by_user_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "added_by_user_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "set null",
"onUpdate": "no action"
},
@@ -27324,8 +30290,12 @@
"name": "project_agents_workspace_id_workspaces_id_fk",
"tableFrom": "project_agents",
"tableTo": "workspaces",
- "columnsFrom": ["workspace_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "workspace_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
}
@@ -27498,8 +30468,12 @@
"name": "project_chat_groups_project_id_projects_id_fk",
"tableFrom": "project_chat_groups",
"tableTo": "projects",
- "columnsFrom": ["project_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "project_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -27507,8 +30481,12 @@
"name": "project_chat_groups_chat_group_id_chat_groups_id_fk",
"tableFrom": "project_chat_groups",
"tableTo": "chat_groups",
- "columnsFrom": ["chat_group_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "chat_group_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -27516,8 +30494,12 @@
"name": "project_chat_groups_added_by_user_id_users_id_fk",
"tableFrom": "project_chat_groups",
"tableTo": "users",
- "columnsFrom": ["added_by_user_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "added_by_user_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "set null",
"onUpdate": "no action"
},
@@ -27525,8 +30507,12 @@
"name": "project_chat_groups_workspace_id_workspaces_id_fk",
"tableFrom": "project_chat_groups",
"tableTo": "workspaces",
- "columnsFrom": ["workspace_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "workspace_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
}
@@ -27685,8 +30671,12 @@
"name": "project_completion_reviews_project_id_projects_id_fk",
"tableFrom": "project_completion_reviews",
"tableTo": "projects",
- "columnsFrom": ["project_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "project_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -27694,8 +30684,12 @@
"name": "project_completion_reviews_reviewer_user_id_users_id_fk",
"tableFrom": "project_completion_reviews",
"tableTo": "users",
- "columnsFrom": ["reviewer_user_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "reviewer_user_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "set null",
"onUpdate": "no action"
},
@@ -27703,8 +30697,12 @@
"name": "project_completion_reviews_workspace_id_workspaces_id_fk",
"tableFrom": "project_completion_reviews",
"tableTo": "workspaces",
- "columnsFrom": ["workspace_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "workspace_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
}
@@ -27870,8 +30868,12 @@
"name": "project_knowledge_bases_project_id_projects_id_fk",
"tableFrom": "project_knowledge_bases",
"tableTo": "projects",
- "columnsFrom": ["project_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "project_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -27879,8 +30881,12 @@
"name": "project_knowledge_bases_knowledge_base_id_knowledge_bases_id_fk",
"tableFrom": "project_knowledge_bases",
"tableTo": "knowledge_bases",
- "columnsFrom": ["knowledge_base_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "knowledge_base_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -27888,8 +30894,12 @@
"name": "project_knowledge_bases_added_by_user_id_users_id_fk",
"tableFrom": "project_knowledge_bases",
"tableTo": "users",
- "columnsFrom": ["added_by_user_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "added_by_user_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "set null",
"onUpdate": "no action"
},
@@ -27897,8 +30907,12 @@
"name": "project_knowledge_bases_workspace_id_workspaces_id_fk",
"tableFrom": "project_knowledge_bases",
"tableTo": "workspaces",
- "columnsFrom": ["workspace_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "workspace_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
}
@@ -28100,8 +31114,12 @@
"name": "project_working_directories_project_id_projects_id_fk",
"tableFrom": "project_working_directories",
"tableTo": "projects",
- "columnsFrom": ["project_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "project_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -28109,8 +31127,12 @@
"name": "project_working_directories_device_id_devices_id_fk",
"tableFrom": "project_working_directories",
"tableTo": "devices",
- "columnsFrom": ["device_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "device_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "set null",
"onUpdate": "no action"
},
@@ -28118,8 +31140,12 @@
"name": "project_working_directories_workspace_id_workspaces_id_fk",
"tableFrom": "project_working_directories",
"tableTo": "workspaces",
- "columnsFrom": ["workspace_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "workspace_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -28127,8 +31153,12 @@
"name": "project_working_directories_added_by_user_id_users_id_fk",
"tableFrom": "project_working_directories",
"tableTo": "users",
- "columnsFrom": ["added_by_user_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "added_by_user_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "set null",
"onUpdate": "no action"
}
@@ -28514,8 +31544,12 @@
"name": "projects_coordinator_agent_id_agents_id_fk",
"tableFrom": "projects",
"tableTo": "agents",
- "columnsFrom": ["coordinator_agent_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "coordinator_agent_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "set null",
"onUpdate": "no action"
},
@@ -28523,8 +31557,12 @@
"name": "projects_user_id_users_id_fk",
"tableFrom": "projects",
"tableTo": "users",
- "columnsFrom": ["user_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "user_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -28532,8 +31570,12 @@
"name": "projects_workspace_id_workspaces_id_fk",
"tableFrom": "projects",
"tableTo": "workspaces",
- "columnsFrom": ["workspace_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "workspace_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
}
@@ -28758,8 +31800,12 @@
"name": "project_environments_project_id_projects_id_fk",
"tableFrom": "project_environments",
"tableTo": "projects",
- "columnsFrom": ["project_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "project_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -28767,8 +31813,12 @@
"name": "project_environments_environment_id_environments_id_fk",
"tableFrom": "project_environments",
"tableTo": "environments",
- "columnsFrom": ["environment_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "environment_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "restrict",
"onUpdate": "no action"
},
@@ -28776,8 +31826,12 @@
"name": "project_environments_workspace_id_workspaces_id_fk",
"tableFrom": "project_environments",
"tableTo": "workspaces",
- "columnsFrom": ["workspace_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "workspace_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -28785,8 +31839,12 @@
"name": "project_environments_added_by_user_id_users_id_fk",
"tableFrom": "project_environments",
"tableTo": "users",
- "columnsFrom": ["added_by_user_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "added_by_user_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "set null",
"onUpdate": "no action"
},
@@ -28794,8 +31852,14 @@
"name": "project_environments_default_instance_fk",
"tableFrom": "project_environments",
"tableTo": "environment_instances",
- "columnsFrom": ["environment_id", "default_instance_id"],
- "columnsTo": ["environment_id", "id"],
+ "columnsFrom": [
+ "environment_id",
+ "default_instance_id"
+ ],
+ "columnsTo": [
+ "environment_id",
+ "id"
+ ],
"onDelete": "restrict",
"onUpdate": "no action"
}
@@ -28933,8 +31997,12 @@
"name": "project_members_project_id_projects_id_fk",
"tableFrom": "project_members",
"tableTo": "projects",
- "columnsFrom": ["project_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "project_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -28942,8 +32010,12 @@
"name": "project_members_user_id_users_id_fk",
"tableFrom": "project_members",
"tableTo": "users",
- "columnsFrom": ["user_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "user_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -28951,8 +32023,12 @@
"name": "project_members_added_by_user_id_users_id_fk",
"tableFrom": "project_members",
"tableTo": "users",
- "columnsFrom": ["added_by_user_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "added_by_user_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "set null",
"onUpdate": "no action"
}
@@ -29009,6 +32085,12 @@
"primaryKey": false,
"notNull": false
},
+ "last_seen_at": {
+ "name": "last_seen_at",
+ "type": "timestamp with time zone",
+ "primaryKey": false,
+ "notNull": false
+ },
"accessed_at": {
"name": "accessed_at",
"type": "timestamp with time zone",
@@ -29068,8 +32150,12 @@
"name": "project_sites_project_id_projects_id_fk",
"tableFrom": "project_sites",
"tableTo": "projects",
- "columnsFrom": ["project_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "project_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -29077,8 +32163,12 @@
"name": "project_sites_workspace_id_workspaces_id_fk",
"tableFrom": "project_sites",
"tableTo": "workspaces",
- "columnsFrom": ["workspace_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "workspace_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -29086,8 +32176,12 @@
"name": "project_sites_created_by_user_id_users_id_fk",
"tableFrom": "project_sites",
"tableTo": "users",
- "columnsFrom": ["created_by_user_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "created_by_user_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "set null",
"onUpdate": "no action"
},
@@ -29095,8 +32189,12 @@
"name": "project_sites_acceptance_id_acceptances_id_fk",
"tableFrom": "project_sites",
"tableTo": "acceptances",
- "columnsFrom": ["acceptance_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "acceptance_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "set null",
"onUpdate": "no action"
}
@@ -29259,8 +32357,12 @@
"name": "project_works_project_id_projects_id_fk",
"tableFrom": "project_works",
"tableTo": "projects",
- "columnsFrom": ["project_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "project_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -29268,8 +32370,12 @@
"name": "project_works_work_id_works_id_fk",
"tableFrom": "project_works",
"tableTo": "works",
- "columnsFrom": ["work_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "work_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -29277,8 +32383,12 @@
"name": "project_works_added_by_user_id_users_id_fk",
"tableFrom": "project_works",
"tableTo": "users",
- "columnsFrom": ["added_by_user_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "added_by_user_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "set null",
"onUpdate": "no action"
},
@@ -29286,8 +32396,12 @@
"name": "project_works_workspace_id_workspaces_id_fk",
"tableFrom": "project_works",
"tableTo": "workspaces",
- "columnsFrom": ["workspace_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "workspace_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
}
@@ -29457,8 +32571,12 @@
"name": "push_live_activities_user_id_users_id_fk",
"tableFrom": "push_live_activities",
"tableTo": "users",
- "columnsFrom": ["user_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "user_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
}
@@ -29606,8 +32724,12 @@
"name": "push_tokens_user_id_users_id_fk",
"tableFrom": "push_tokens",
"tableTo": "users",
- "columnsFrom": ["user_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "user_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
}
@@ -29762,8 +32884,12 @@
"name": "chunks_user_id_users_id_fk",
"tableFrom": "chunks",
"tableTo": "users",
- "columnsFrom": ["user_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "user_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -29771,8 +32897,12 @@
"name": "chunks_workspace_id_workspaces_id_fk",
"tableFrom": "chunks",
"tableTo": "workspaces",
- "columnsFrom": ["workspace_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "workspace_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
}
@@ -29892,8 +33022,12 @@
"name": "document_chunks_document_id_documents_id_fk",
"tableFrom": "document_chunks",
"tableTo": "documents",
- "columnsFrom": ["document_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "document_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -29901,8 +33035,12 @@
"name": "document_chunks_chunk_id_chunks_id_fk",
"tableFrom": "document_chunks",
"tableTo": "chunks",
- "columnsFrom": ["chunk_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "chunk_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -29910,8 +33048,12 @@
"name": "document_chunks_user_id_users_id_fk",
"tableFrom": "document_chunks",
"tableTo": "users",
- "columnsFrom": ["user_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "user_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -29919,8 +33061,12 @@
"name": "document_chunks_workspace_id_workspaces_id_fk",
"tableFrom": "document_chunks",
"tableTo": "workspaces",
- "columnsFrom": ["workspace_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "workspace_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
}
@@ -29928,7 +33074,10 @@
"compositePrimaryKeys": {
"document_chunks_document_id_chunk_id_pk": {
"name": "document_chunks_document_id_chunk_id_pk",
- "columns": ["document_id", "chunk_id"]
+ "columns": [
+ "document_id",
+ "chunk_id"
+ ]
}
},
"uniqueConstraints": {},
@@ -30057,8 +33206,12 @@
"name": "embeddings_chunk_id_chunks_id_fk",
"tableFrom": "embeddings",
"tableTo": "chunks",
- "columnsFrom": ["chunk_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "chunk_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -30066,8 +33219,12 @@
"name": "embeddings_user_id_users_id_fk",
"tableFrom": "embeddings",
"tableTo": "users",
- "columnsFrom": ["user_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "user_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -30075,8 +33232,12 @@
"name": "embeddings_workspace_id_workspaces_id_fk",
"tableFrom": "embeddings",
"tableTo": "workspaces",
- "columnsFrom": ["workspace_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "workspace_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
}
@@ -30086,7 +33247,9 @@
"embeddings_chunk_id_unique": {
"name": "embeddings_chunk_id_unique",
"nullsNotDistinct": false,
- "columns": ["chunk_id"]
+ "columns": [
+ "chunk_id"
+ ]
}
},
"policies": {},
@@ -30274,8 +33437,12 @@
"name": "unstructured_chunks_composite_id_chunks_id_fk",
"tableFrom": "unstructured_chunks",
"tableTo": "chunks",
- "columnsFrom": ["composite_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "composite_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -30283,8 +33450,12 @@
"name": "unstructured_chunks_user_id_users_id_fk",
"tableFrom": "unstructured_chunks",
"tableTo": "users",
- "columnsFrom": ["user_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "user_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -30292,8 +33463,12 @@
"name": "unstructured_chunks_workspace_id_workspaces_id_fk",
"tableFrom": "unstructured_chunks",
"tableTo": "workspaces",
- "columnsFrom": ["workspace_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "workspace_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -30301,8 +33476,12 @@
"name": "unstructured_chunks_file_id_files_id_fk",
"tableFrom": "unstructured_chunks",
"tableTo": "files",
- "columnsFrom": ["file_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "file_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
}
@@ -30424,8 +33603,12 @@
"name": "rag_eval_dataset_records_dataset_id_rag_eval_datasets_id_fk",
"tableFrom": "rag_eval_dataset_records",
"tableTo": "rag_eval_datasets",
- "columnsFrom": ["dataset_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "dataset_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -30433,8 +33616,12 @@
"name": "rag_eval_dataset_records_user_id_users_id_fk",
"tableFrom": "rag_eval_dataset_records",
"tableTo": "users",
- "columnsFrom": ["user_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "user_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -30442,8 +33629,12 @@
"name": "rag_eval_dataset_records_workspace_id_workspaces_id_fk",
"tableFrom": "rag_eval_dataset_records",
"tableTo": "workspaces",
- "columnsFrom": ["workspace_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "workspace_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
}
@@ -30553,8 +33744,12 @@
"name": "rag_eval_datasets_knowledge_base_id_knowledge_bases_id_fk",
"tableFrom": "rag_eval_datasets",
"tableTo": "knowledge_bases",
- "columnsFrom": ["knowledge_base_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "knowledge_base_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -30562,8 +33757,12 @@
"name": "rag_eval_datasets_user_id_users_id_fk",
"tableFrom": "rag_eval_datasets",
"tableTo": "users",
- "columnsFrom": ["user_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "user_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -30571,8 +33770,12 @@
"name": "rag_eval_datasets_workspace_id_workspaces_id_fk",
"tableFrom": "rag_eval_datasets",
"tableTo": "workspaces",
- "columnsFrom": ["workspace_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "workspace_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
}
@@ -30718,8 +33921,12 @@
"name": "rag_eval_evaluations_dataset_id_rag_eval_datasets_id_fk",
"tableFrom": "rag_eval_evaluations",
"tableTo": "rag_eval_datasets",
- "columnsFrom": ["dataset_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "dataset_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -30727,8 +33934,12 @@
"name": "rag_eval_evaluations_knowledge_base_id_knowledge_bases_id_fk",
"tableFrom": "rag_eval_evaluations",
"tableTo": "knowledge_bases",
- "columnsFrom": ["knowledge_base_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "knowledge_base_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -30736,8 +33947,12 @@
"name": "rag_eval_evaluations_user_id_users_id_fk",
"tableFrom": "rag_eval_evaluations",
"tableTo": "users",
- "columnsFrom": ["user_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "user_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -30745,8 +33960,12 @@
"name": "rag_eval_evaluations_workspace_id_workspaces_id_fk",
"tableFrom": "rag_eval_evaluations",
"tableTo": "workspaces",
- "columnsFrom": ["workspace_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "workspace_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
}
@@ -30910,8 +34129,12 @@
"name": "rag_eval_evaluation_records_question_embedding_id_embeddings_id_fk",
"tableFrom": "rag_eval_evaluation_records",
"tableTo": "embeddings",
- "columnsFrom": ["question_embedding_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "question_embedding_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "set null",
"onUpdate": "no action"
},
@@ -30919,8 +34142,12 @@
"name": "rag_eval_evaluation_records_dataset_record_id_rag_eval_dataset_records_id_fk",
"tableFrom": "rag_eval_evaluation_records",
"tableTo": "rag_eval_dataset_records",
- "columnsFrom": ["dataset_record_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "dataset_record_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -30928,8 +34155,12 @@
"name": "rag_eval_evaluation_records_evaluation_id_rag_eval_evaluations_id_fk",
"tableFrom": "rag_eval_evaluation_records",
"tableTo": "rag_eval_evaluations",
- "columnsFrom": ["evaluation_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "evaluation_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -30937,8 +34168,12 @@
"name": "rag_eval_evaluation_records_user_id_users_id_fk",
"tableFrom": "rag_eval_evaluation_records",
"tableTo": "users",
- "columnsFrom": ["user_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "user_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -30946,8 +34181,12 @@
"name": "rag_eval_evaluation_records_workspace_id_workspaces_id_fk",
"tableFrom": "rag_eval_evaluation_records",
"tableTo": "workspaces",
- "columnsFrom": ["workspace_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "workspace_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
}
@@ -31028,7 +34267,9 @@
"rbac_permissions_code_unique": {
"name": "rbac_permissions_code_unique",
"nullsNotDistinct": false,
- "columns": ["code"]
+ "columns": [
+ "code"
+ ]
}
},
"policies": {},
@@ -31096,8 +34337,12 @@
"name": "rbac_role_permissions_role_id_rbac_roles_id_fk",
"tableFrom": "rbac_role_permissions",
"tableTo": "rbac_roles",
- "columnsFrom": ["role_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "role_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -31105,8 +34350,12 @@
"name": "rbac_role_permissions_permission_id_rbac_permissions_id_fk",
"tableFrom": "rbac_role_permissions",
"tableTo": "rbac_permissions",
- "columnsFrom": ["permission_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "permission_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
}
@@ -31114,7 +34363,10 @@
"compositePrimaryKeys": {
"rbac_role_permissions_role_id_permission_id_pk": {
"name": "rbac_role_permissions_role_id_permission_id_pk",
- "columns": ["role_id", "permission_id"]
+ "columns": [
+ "role_id",
+ "permission_id"
+ ]
}
},
"uniqueConstraints": {},
@@ -31242,8 +34494,12 @@
"name": "rbac_roles_workspace_id_workspaces_id_fk",
"tableFrom": "rbac_roles",
"tableTo": "workspaces",
- "columnsFrom": ["workspace_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "workspace_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
}
@@ -31376,8 +34632,12 @@
"name": "rbac_user_roles_user_id_users_id_fk",
"tableFrom": "rbac_user_roles",
"tableTo": "users",
- "columnsFrom": ["user_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "user_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -31385,8 +34645,12 @@
"name": "rbac_user_roles_role_id_rbac_roles_id_fk",
"tableFrom": "rbac_user_roles",
"tableTo": "rbac_roles",
- "columnsFrom": ["role_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "role_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -31394,8 +34658,12 @@
"name": "rbac_user_roles_workspace_id_workspaces_id_fk",
"tableFrom": "rbac_user_roles",
"tableTo": "workspaces",
- "columnsFrom": ["workspace_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "workspace_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
}
@@ -31502,8 +34770,12 @@
"name": "agents_to_sessions_agent_id_agents_id_fk",
"tableFrom": "agents_to_sessions",
"tableTo": "agents",
- "columnsFrom": ["agent_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "agent_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -31511,8 +34783,12 @@
"name": "agents_to_sessions_session_id_sessions_id_fk",
"tableFrom": "agents_to_sessions",
"tableTo": "sessions",
- "columnsFrom": ["session_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "session_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -31520,8 +34796,12 @@
"name": "agents_to_sessions_user_id_users_id_fk",
"tableFrom": "agents_to_sessions",
"tableTo": "users",
- "columnsFrom": ["user_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "user_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -31529,8 +34809,12 @@
"name": "agents_to_sessions_workspace_id_workspaces_id_fk",
"tableFrom": "agents_to_sessions",
"tableTo": "workspaces",
- "columnsFrom": ["workspace_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "workspace_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
}
@@ -31538,7 +34822,10 @@
"compositePrimaryKeys": {
"agents_to_sessions_agent_id_session_id_pk": {
"name": "agents_to_sessions_agent_id_session_id_pk",
- "columns": ["agent_id", "session_id"]
+ "columns": [
+ "agent_id",
+ "session_id"
+ ]
}
},
"uniqueConstraints": {},
@@ -31649,8 +34936,12 @@
"name": "file_chunks_file_id_files_id_fk",
"tableFrom": "file_chunks",
"tableTo": "files",
- "columnsFrom": ["file_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "file_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -31658,8 +34949,12 @@
"name": "file_chunks_chunk_id_chunks_id_fk",
"tableFrom": "file_chunks",
"tableTo": "chunks",
- "columnsFrom": ["chunk_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "chunk_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -31667,8 +34962,12 @@
"name": "file_chunks_user_id_users_id_fk",
"tableFrom": "file_chunks",
"tableTo": "users",
- "columnsFrom": ["user_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "user_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -31676,8 +34975,12 @@
"name": "file_chunks_workspace_id_workspaces_id_fk",
"tableFrom": "file_chunks",
"tableTo": "workspaces",
- "columnsFrom": ["workspace_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "workspace_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
}
@@ -31685,7 +34988,10 @@
"compositePrimaryKeys": {
"file_chunks_file_id_chunk_id_pk": {
"name": "file_chunks_file_id_chunk_id_pk",
- "columns": ["file_id", "chunk_id"]
+ "columns": [
+ "file_id",
+ "chunk_id"
+ ]
}
},
"uniqueConstraints": {},
@@ -31789,8 +35095,12 @@
"name": "files_to_sessions_file_id_files_id_fk",
"tableFrom": "files_to_sessions",
"tableTo": "files",
- "columnsFrom": ["file_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "file_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -31798,8 +35108,12 @@
"name": "files_to_sessions_session_id_sessions_id_fk",
"tableFrom": "files_to_sessions",
"tableTo": "sessions",
- "columnsFrom": ["session_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "session_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -31807,8 +35121,12 @@
"name": "files_to_sessions_user_id_users_id_fk",
"tableFrom": "files_to_sessions",
"tableTo": "users",
- "columnsFrom": ["user_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "user_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -31816,8 +35134,12 @@
"name": "files_to_sessions_workspace_id_workspaces_id_fk",
"tableFrom": "files_to_sessions",
"tableTo": "workspaces",
- "columnsFrom": ["workspace_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "workspace_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
}
@@ -31825,7 +35147,10 @@
"compositePrimaryKeys": {
"files_to_sessions_file_id_session_id_pk": {
"name": "files_to_sessions_file_id_session_id_pk",
- "columns": ["file_id", "session_id"]
+ "columns": [
+ "file_id",
+ "session_id"
+ ]
}
},
"uniqueConstraints": {},
@@ -32058,8 +35383,12 @@
"name": "resource_permissions_workspace_id_workspaces_id_fk",
"tableFrom": "resource_permissions",
"tableTo": "workspaces",
- "columnsFrom": ["workspace_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "workspace_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -32067,8 +35396,12 @@
"name": "resource_permissions_user_id_users_id_fk",
"tableFrom": "resource_permissions",
"tableTo": "users",
- "columnsFrom": ["user_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "user_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -32076,8 +35409,12 @@
"name": "resource_permissions_created_by_users_id_fk",
"tableFrom": "resource_permissions",
"tableTo": "users",
- "columnsFrom": ["created_by"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "created_by"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "set null",
"onUpdate": "no action"
}
@@ -32247,8 +35584,12 @@
"name": "resource_transfer_requests_workspace_id_workspaces_id_fk",
"tableFrom": "resource_transfer_requests",
"tableTo": "workspaces",
- "columnsFrom": ["workspace_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "workspace_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -32256,8 +35597,12 @@
"name": "resource_transfer_requests_initiator_id_users_id_fk",
"tableFrom": "resource_transfer_requests",
"tableTo": "users",
- "columnsFrom": ["initiator_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "initiator_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "set null",
"onUpdate": "no action"
},
@@ -32265,8 +35610,12 @@
"name": "resource_transfer_requests_recipient_id_users_id_fk",
"tableFrom": "resource_transfer_requests",
"tableTo": "users",
- "columnsFrom": ["recipient_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "recipient_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "set null",
"onUpdate": "no action"
},
@@ -32274,8 +35623,12 @@
"name": "resource_transfer_requests_previous_owner_id_users_id_fk",
"tableFrom": "resource_transfer_requests",
"tableTo": "users",
- "columnsFrom": ["previous_owner_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "previous_owner_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "set null",
"onUpdate": "no action"
}
@@ -32670,8 +36023,12 @@
"name": "scm_change_requests_user_id_users_id_fk",
"tableFrom": "scm_change_requests",
"tableTo": "users",
- "columnsFrom": ["user_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "user_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -32679,8 +36036,12 @@
"name": "scm_change_requests_workspace_id_workspaces_id_fk",
"tableFrom": "scm_change_requests",
"tableTo": "workspaces",
- "columnsFrom": ["workspace_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "workspace_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -32688,8 +36049,12 @@
"name": "scm_change_requests_installation_id_scm_installations_id_fk",
"tableFrom": "scm_change_requests",
"tableTo": "scm_installations",
- "columnsFrom": ["installation_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "installation_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "set null",
"onUpdate": "no action"
},
@@ -32697,8 +36062,12 @@
"name": "scm_change_requests_acceptance_id_acceptances_id_fk",
"tableFrom": "scm_change_requests",
"tableTo": "acceptances",
- "columnsFrom": ["acceptance_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "acceptance_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "set null",
"onUpdate": "no action"
},
@@ -32706,8 +36075,12 @@
"name": "scm_change_requests_work_id_works_id_fk",
"tableFrom": "scm_change_requests",
"tableTo": "works",
- "columnsFrom": ["work_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "work_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "set null",
"onUpdate": "no action"
},
@@ -32715,8 +36088,12 @@
"name": "scm_change_requests_topic_id_topics_id_fk",
"tableFrom": "scm_change_requests",
"tableTo": "topics",
- "columnsFrom": ["topic_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "topic_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "set null",
"onUpdate": "no action"
},
@@ -32724,8 +36101,12 @@
"name": "scm_change_requests_task_id_tasks_id_fk",
"tableFrom": "scm_change_requests",
"tableTo": "tasks",
- "columnsFrom": ["task_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "task_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "set null",
"onUpdate": "no action"
}
@@ -32876,8 +36257,12 @@
"name": "scm_identities_user_id_users_id_fk",
"tableFrom": "scm_identities",
"tableTo": "users",
- "columnsFrom": ["user_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "user_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
}
@@ -33086,8 +36471,12 @@
"name": "scm_installations_user_id_users_id_fk",
"tableFrom": "scm_installations",
"tableTo": "users",
- "columnsFrom": ["user_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "user_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -33095,8 +36484,12 @@
"name": "scm_installations_workspace_id_workspaces_id_fk",
"tableFrom": "scm_installations",
"tableTo": "workspaces",
- "columnsFrom": ["workspace_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "workspace_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
}
@@ -33397,8 +36790,12 @@
"name": "session_groups_user_id_users_id_fk",
"tableFrom": "session_groups",
"tableTo": "users",
- "columnsFrom": ["user_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "user_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -33406,8 +36803,12 @@
"name": "session_groups_workspace_id_workspaces_id_fk",
"tableFrom": "session_groups",
"tableTo": "workspaces",
- "columnsFrom": ["workspace_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "workspace_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
}
@@ -33677,8 +37078,12 @@
"name": "sessions_user_id_users_id_fk",
"tableFrom": "sessions",
"tableTo": "users",
- "columnsFrom": ["user_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "user_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -33686,8 +37091,12 @@
"name": "sessions_group_id_session_groups_id_fk",
"tableFrom": "sessions",
"tableTo": "session_groups",
- "columnsFrom": ["group_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "group_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "set null",
"onUpdate": "no action"
},
@@ -33695,8 +37104,12 @@
"name": "sessions_workspace_id_workspaces_id_fk",
"tableFrom": "sessions",
"tableTo": "workspaces",
- "columnsFrom": ["workspace_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "workspace_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
}
@@ -33974,8 +37387,12 @@
"name": "signals_user_id_users_id_fk",
"tableFrom": "signals",
"tableTo": "users",
- "columnsFrom": ["user_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "user_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -33983,8 +37400,12 @@
"name": "signals_workspace_id_workspaces_id_fk",
"tableFrom": "signals",
"tableTo": "workspaces",
- "columnsFrom": ["workspace_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "workspace_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -33992,8 +37413,12 @@
"name": "signals_account_id_agent_accounts_id_fk",
"tableFrom": "signals",
"tableTo": "agent_accounts",
- "columnsFrom": ["account_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "account_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "set null",
"onUpdate": "no action"
},
@@ -34001,8 +37426,12 @@
"name": "signals_agent_id_agents_id_fk",
"tableFrom": "signals",
"tableTo": "agents",
- "columnsFrom": ["agent_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "agent_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "set null",
"onUpdate": "no action"
}
@@ -34097,8 +37526,12 @@
"name": "signal_decision_labels_decision_id_signal_decisions_id_fk",
"tableFrom": "signal_decision_labels",
"tableTo": "signal_decisions",
- "columnsFrom": ["decision_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "decision_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
}
@@ -34312,8 +37745,12 @@
"name": "signal_decisions_signal_id_signals_id_fk",
"tableFrom": "signal_decisions",
"tableTo": "signals",
- "columnsFrom": ["signal_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "signal_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -34321,8 +37758,12 @@
"name": "signal_decisions_agent_id_agents_id_fk",
"tableFrom": "signal_decisions",
"tableTo": "agents",
- "columnsFrom": ["agent_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "agent_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "set null",
"onUpdate": "no action"
},
@@ -34330,8 +37771,12 @@
"name": "signal_decisions_user_id_users_id_fk",
"tableFrom": "signal_decisions",
"tableTo": "users",
- "columnsFrom": ["user_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "user_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -34339,8 +37784,12 @@
"name": "signal_decisions_workspace_id_workspaces_id_fk",
"tableFrom": "signal_decisions",
"tableTo": "workspaces",
- "columnsFrom": ["workspace_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "workspace_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -34348,8 +37797,12 @@
"name": "signal_decisions_topic_id_topics_id_fk",
"tableFrom": "signal_decisions",
"tableTo": "topics",
- "columnsFrom": ["topic_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "topic_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "set null",
"onUpdate": "no action"
}
@@ -34730,8 +38183,12 @@
"name": "briefs_user_id_users_id_fk",
"tableFrom": "briefs",
"tableTo": "users",
- "columnsFrom": ["user_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "user_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -34739,8 +38196,12 @@
"name": "briefs_workspace_id_workspaces_id_fk",
"tableFrom": "briefs",
"tableTo": "workspaces",
- "columnsFrom": ["workspace_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "workspace_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -34748,8 +38209,12 @@
"name": "briefs_task_id_tasks_id_fk",
"tableFrom": "briefs",
"tableTo": "tasks",
- "columnsFrom": ["task_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "task_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -34757,8 +38222,12 @@
"name": "briefs_cron_job_id_agent_cron_jobs_id_fk",
"tableFrom": "briefs",
"tableTo": "agent_cron_jobs",
- "columnsFrom": ["cron_job_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "cron_job_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
}
@@ -34916,8 +38385,12 @@
"name": "task_activities_task_id_tasks_id_fk",
"tableFrom": "task_activities",
"tableTo": "tasks",
- "columnsFrom": ["task_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "task_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -34925,8 +38398,12 @@
"name": "task_activities_user_id_users_id_fk",
"tableFrom": "task_activities",
"tableTo": "users",
- "columnsFrom": ["user_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "user_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -34934,8 +38411,12 @@
"name": "task_activities_workspace_id_workspaces_id_fk",
"tableFrom": "task_activities",
"tableTo": "workspaces",
- "columnsFrom": ["workspace_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "workspace_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -34943,8 +38424,12 @@
"name": "task_activities_actor_user_id_users_id_fk",
"tableFrom": "task_activities",
"tableTo": "users",
- "columnsFrom": ["actor_user_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "actor_user_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "set null",
"onUpdate": "no action"
},
@@ -34952,8 +38437,12 @@
"name": "task_activities_actor_agent_id_agents_id_fk",
"tableFrom": "task_activities",
"tableTo": "agents",
- "columnsFrom": ["actor_agent_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "actor_agent_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "set null",
"onUpdate": "no action"
}
@@ -35196,8 +38685,12 @@
"name": "task_comments_task_id_tasks_id_fk",
"tableFrom": "task_comments",
"tableTo": "tasks",
- "columnsFrom": ["task_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "task_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -35205,8 +38698,12 @@
"name": "task_comments_user_id_users_id_fk",
"tableFrom": "task_comments",
"tableTo": "users",
- "columnsFrom": ["user_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "user_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -35214,8 +38711,12 @@
"name": "task_comments_workspace_id_workspaces_id_fk",
"tableFrom": "task_comments",
"tableTo": "workspaces",
- "columnsFrom": ["workspace_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "workspace_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -35223,8 +38724,12 @@
"name": "task_comments_author_user_id_users_id_fk",
"tableFrom": "task_comments",
"tableTo": "users",
- "columnsFrom": ["author_user_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "author_user_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "set null",
"onUpdate": "no action"
},
@@ -35232,8 +38737,12 @@
"name": "task_comments_author_agent_id_agents_id_fk",
"tableFrom": "task_comments",
"tableTo": "agents",
- "columnsFrom": ["author_agent_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "author_agent_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "set null",
"onUpdate": "no action"
},
@@ -35241,8 +38750,12 @@
"name": "task_comments_brief_id_briefs_id_fk",
"tableFrom": "task_comments",
"tableTo": "briefs",
- "columnsFrom": ["brief_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "brief_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "set null",
"onUpdate": "no action"
},
@@ -35250,8 +38763,12 @@
"name": "task_comments_topic_id_topics_id_fk",
"tableFrom": "task_comments",
"tableTo": "topics",
- "columnsFrom": ["topic_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "topic_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "set null",
"onUpdate": "no action"
}
@@ -35440,8 +38957,12 @@
"name": "task_dependencies_task_id_tasks_id_fk",
"tableFrom": "task_dependencies",
"tableTo": "tasks",
- "columnsFrom": ["task_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "task_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -35449,8 +38970,12 @@
"name": "task_dependencies_depends_on_id_tasks_id_fk",
"tableFrom": "task_dependencies",
"tableTo": "tasks",
- "columnsFrom": ["depends_on_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "depends_on_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -35458,8 +38983,12 @@
"name": "task_dependencies_user_id_users_id_fk",
"tableFrom": "task_dependencies",
"tableTo": "users",
- "columnsFrom": ["user_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "user_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -35467,8 +38996,12 @@
"name": "task_dependencies_workspace_id_workspaces_id_fk",
"tableFrom": "task_dependencies",
"tableTo": "workspaces",
- "columnsFrom": ["workspace_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "workspace_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
}
@@ -35651,8 +39184,12 @@
"name": "task_documents_task_id_tasks_id_fk",
"tableFrom": "task_documents",
"tableTo": "tasks",
- "columnsFrom": ["task_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "task_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -35660,8 +39197,12 @@
"name": "task_documents_document_id_documents_id_fk",
"tableFrom": "task_documents",
"tableTo": "documents",
- "columnsFrom": ["document_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "document_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -35669,8 +39210,12 @@
"name": "task_documents_user_id_users_id_fk",
"tableFrom": "task_documents",
"tableTo": "users",
- "columnsFrom": ["user_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "user_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -35678,8 +39223,12 @@
"name": "task_documents_workspace_id_workspaces_id_fk",
"tableFrom": "task_documents",
"tableTo": "workspaces",
- "columnsFrom": ["workspace_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "workspace_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
}
@@ -35951,8 +39500,12 @@
"name": "task_topics_task_id_tasks_id_fk",
"tableFrom": "task_topics",
"tableTo": "tasks",
- "columnsFrom": ["task_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "task_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -35960,8 +39513,12 @@
"name": "task_topics_topic_id_topics_id_fk",
"tableFrom": "task_topics",
"tableTo": "topics",
- "columnsFrom": ["topic_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "topic_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -35969,8 +39526,12 @@
"name": "task_topics_user_id_users_id_fk",
"tableFrom": "task_topics",
"tableTo": "users",
- "columnsFrom": ["user_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "user_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -35978,8 +39539,12 @@
"name": "task_topics_workspace_id_workspaces_id_fk",
"tableFrom": "task_topics",
"tableTo": "workspaces",
- "columnsFrom": ["workspace_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "workspace_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
}
@@ -36489,8 +40054,12 @@
"name": "tasks_created_by_user_id_users_id_fk",
"tableFrom": "tasks",
"tableTo": "users",
- "columnsFrom": ["created_by_user_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "created_by_user_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -36498,8 +40067,12 @@
"name": "tasks_workspace_id_workspaces_id_fk",
"tableFrom": "tasks",
"tableTo": "workspaces",
- "columnsFrom": ["workspace_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "workspace_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -36507,8 +40080,12 @@
"name": "tasks_project_id_projects_id_fk",
"tableFrom": "tasks",
"tableTo": "projects",
- "columnsFrom": ["project_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "project_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "set null",
"onUpdate": "no action"
},
@@ -36516,8 +40093,12 @@
"name": "tasks_created_by_agent_id_agents_id_fk",
"tableFrom": "tasks",
"tableTo": "agents",
- "columnsFrom": ["created_by_agent_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "created_by_agent_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "set null",
"onUpdate": "no action"
},
@@ -36525,8 +40106,12 @@
"name": "tasks_assignee_user_id_users_id_fk",
"tableFrom": "tasks",
"tableTo": "users",
- "columnsFrom": ["assignee_user_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "assignee_user_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "set null",
"onUpdate": "no action"
},
@@ -36534,8 +40119,12 @@
"name": "tasks_assignee_agent_id_agents_id_fk",
"tableFrom": "tasks",
"tableTo": "agents",
- "columnsFrom": ["assignee_agent_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "assignee_agent_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "set null",
"onUpdate": "no action"
},
@@ -36543,8 +40132,12 @@
"name": "tasks_current_topic_id_topics_id_fk",
"tableFrom": "tasks",
"tableTo": "topics",
- "columnsFrom": ["current_topic_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "current_topic_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "set null",
"onUpdate": "no action"
},
@@ -36552,8 +40145,12 @@
"name": "tasks_parent_task_id_tasks_id_fk",
"tableFrom": "tasks",
"tableTo": "tasks",
- "columnsFrom": ["parent_task_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "parent_task_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "set null",
"onUpdate": "no action"
}
@@ -36785,8 +40382,12 @@
"name": "task_external_links_task_id_tasks_id_fk",
"tableFrom": "task_external_links",
"tableTo": "tasks",
- "columnsFrom": ["task_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "task_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -36794,8 +40395,12 @@
"name": "task_external_links_user_id_users_id_fk",
"tableFrom": "task_external_links",
"tableTo": "users",
- "columnsFrom": ["user_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "user_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -36803,8 +40408,12 @@
"name": "task_external_links_workspace_id_workspaces_id_fk",
"tableFrom": "task_external_links",
"tableTo": "workspaces",
- "columnsFrom": ["workspace_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "workspace_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
}
@@ -36931,8 +40540,12 @@
"name": "task_label_links_task_id_tasks_id_fk",
"tableFrom": "task_label_links",
"tableTo": "tasks",
- "columnsFrom": ["task_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "task_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -36940,8 +40553,12 @@
"name": "task_label_links_label_id_task_labels_id_fk",
"tableFrom": "task_label_links",
"tableTo": "task_labels",
- "columnsFrom": ["label_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "label_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -36949,8 +40566,12 @@
"name": "task_label_links_user_id_users_id_fk",
"tableFrom": "task_label_links",
"tableTo": "users",
- "columnsFrom": ["user_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "user_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -36958,8 +40579,12 @@
"name": "task_label_links_workspace_id_workspaces_id_fk",
"tableFrom": "task_label_links",
"tableTo": "workspaces",
- "columnsFrom": ["workspace_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "workspace_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
}
@@ -37149,8 +40774,12 @@
"name": "task_labels_user_id_users_id_fk",
"tableFrom": "task_labels",
"tableTo": "users",
- "columnsFrom": ["user_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "user_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "set null",
"onUpdate": "no action"
},
@@ -37158,8 +40787,12 @@
"name": "task_labels_workspace_id_workspaces_id_fk",
"tableFrom": "task_labels",
"tableTo": "workspaces",
- "columnsFrom": ["workspace_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "workspace_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -37167,8 +40800,12 @@
"name": "task_labels_parent_id_task_labels_id_fk",
"tableFrom": "task_labels",
"tableTo": "task_labels",
- "columnsFrom": ["parent_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "parent_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
}
@@ -37447,8 +41084,12 @@
"name": "threads_topic_id_topics_id_fk",
"tableFrom": "threads",
"tableTo": "topics",
- "columnsFrom": ["topic_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "topic_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -37456,8 +41097,12 @@
"name": "threads_parent_thread_id_threads_id_fk",
"tableFrom": "threads",
"tableTo": "threads",
- "columnsFrom": ["parent_thread_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "parent_thread_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "set null",
"onUpdate": "no action"
},
@@ -37465,8 +41110,12 @@
"name": "threads_agent_id_agents_id_fk",
"tableFrom": "threads",
"tableTo": "agents",
- "columnsFrom": ["agent_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "agent_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -37474,8 +41123,12 @@
"name": "threads_group_id_chat_groups_id_fk",
"tableFrom": "threads",
"tableTo": "chat_groups",
- "columnsFrom": ["group_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "group_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -37483,8 +41136,12 @@
"name": "threads_user_id_users_id_fk",
"tableFrom": "threads",
"tableTo": "users",
- "columnsFrom": ["user_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "user_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -37492,8 +41149,12 @@
"name": "threads_workspace_id_workspaces_id_fk",
"tableFrom": "threads",
"tableTo": "workspaces",
- "columnsFrom": ["workspace_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "workspace_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
}
@@ -37607,8 +41268,12 @@
"name": "topic_documents_document_id_documents_id_fk",
"tableFrom": "topic_documents",
"tableTo": "documents",
- "columnsFrom": ["document_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "document_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -37616,8 +41281,12 @@
"name": "topic_documents_topic_id_topics_id_fk",
"tableFrom": "topic_documents",
"tableTo": "topics",
- "columnsFrom": ["topic_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "topic_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -37625,8 +41294,12 @@
"name": "topic_documents_user_id_users_id_fk",
"tableFrom": "topic_documents",
"tableTo": "users",
- "columnsFrom": ["user_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "user_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -37634,8 +41307,12 @@
"name": "topic_documents_workspace_id_workspaces_id_fk",
"tableFrom": "topic_documents",
"tableTo": "workspaces",
- "columnsFrom": ["workspace_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "workspace_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
}
@@ -37643,7 +41320,10 @@
"compositePrimaryKeys": {
"topic_documents_document_id_topic_id_pk": {
"name": "topic_documents_document_id_topic_id_pk",
- "columns": ["document_id", "topic_id"]
+ "columns": [
+ "document_id",
+ "topic_id"
+ ]
}
},
"uniqueConstraints": {},
@@ -37767,8 +41447,12 @@
"name": "topic_shares_topic_id_topics_id_fk",
"tableFrom": "topic_shares",
"tableTo": "topics",
- "columnsFrom": ["topic_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "topic_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -37776,8 +41460,12 @@
"name": "topic_shares_user_id_users_id_fk",
"tableFrom": "topic_shares",
"tableTo": "users",
- "columnsFrom": ["user_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "user_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -37785,8 +41473,12 @@
"name": "topic_shares_workspace_id_workspaces_id_fk",
"tableFrom": "topic_shares",
"tableTo": "workspaces",
- "columnsFrom": ["workspace_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "workspace_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
}
@@ -38292,8 +41984,12 @@
"name": "topics_session_id_sessions_id_fk",
"tableFrom": "topics",
"tableTo": "sessions",
- "columnsFrom": ["session_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "session_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -38301,8 +41997,12 @@
"name": "topics_agent_id_agents_id_fk",
"tableFrom": "topics",
"tableTo": "agents",
- "columnsFrom": ["agent_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "agent_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -38310,8 +42010,12 @@
"name": "topics_group_id_chat_groups_id_fk",
"tableFrom": "topics",
"tableTo": "chat_groups",
- "columnsFrom": ["group_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "group_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -38319,8 +42023,12 @@
"name": "topics_project_id_projects_id_fk",
"tableFrom": "topics",
"tableTo": "projects",
- "columnsFrom": ["project_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "project_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "set null",
"onUpdate": "no action"
},
@@ -38328,8 +42036,12 @@
"name": "topics_project_working_directory_id_project_working_directories_id_fk",
"tableFrom": "topics",
"tableTo": "project_working_directories",
- "columnsFrom": ["project_working_directory_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "project_working_directory_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "set null",
"onUpdate": "no action"
},
@@ -38337,8 +42049,12 @@
"name": "topics_user_id_users_id_fk",
"tableFrom": "topics",
"tableTo": "users",
- "columnsFrom": ["user_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "user_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -38346,8 +42062,12 @@
"name": "topics_workspace_id_workspaces_id_fk",
"tableFrom": "topics",
"tableTo": "workspaces",
- "columnsFrom": ["workspace_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "workspace_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
}
@@ -38627,8 +42347,12 @@
"name": "topic_analyses_topic_id_topics_id_fk",
"tableFrom": "topic_analyses",
"tableTo": "topics",
- "columnsFrom": ["topic_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "topic_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -38636,8 +42360,12 @@
"name": "topic_analyses_user_id_users_id_fk",
"tableFrom": "topic_analyses",
"tableTo": "users",
- "columnsFrom": ["user_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "user_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -38645,8 +42373,12 @@
"name": "topic_analyses_workspace_id_workspaces_id_fk",
"tableFrom": "topic_analyses",
"tableTo": "workspaces",
- "columnsFrom": ["workspace_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "workspace_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
}
@@ -38758,8 +42490,12 @@
"name": "topic_comment_mentions_comment_id_topic_comments_id_fk",
"tableFrom": "topic_comment_mentions",
"tableTo": "topic_comments",
- "columnsFrom": ["comment_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "comment_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -38767,8 +42503,12 @@
"name": "topic_comment_mentions_mentioned_user_id_users_id_fk",
"tableFrom": "topic_comment_mentions",
"tableTo": "users",
- "columnsFrom": ["mentioned_user_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "mentioned_user_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -38776,8 +42516,12 @@
"name": "topic_comment_mentions_workspace_id_workspaces_id_fk",
"tableFrom": "topic_comment_mentions",
"tableTo": "workspaces",
- "columnsFrom": ["workspace_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "workspace_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
}
@@ -39075,8 +42819,12 @@
"name": "topic_comments_topic_id_topics_id_fk",
"tableFrom": "topic_comments",
"tableTo": "topics",
- "columnsFrom": ["topic_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "topic_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -39084,8 +42832,12 @@
"name": "topic_comments_message_id_messages_id_fk",
"tableFrom": "topic_comments",
"tableTo": "messages",
- "columnsFrom": ["message_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "message_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "set null",
"onUpdate": "no action"
},
@@ -39093,8 +42845,12 @@
"name": "topic_comments_parent_comment_id_topic_comments_id_fk",
"tableFrom": "topic_comments",
"tableTo": "topic_comments",
- "columnsFrom": ["parent_comment_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "parent_comment_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "no action",
"onUpdate": "no action"
},
@@ -39102,8 +42858,12 @@
"name": "topic_comments_author_user_id_users_id_fk",
"tableFrom": "topic_comments",
"tableTo": "users",
- "columnsFrom": ["author_user_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "author_user_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "set null",
"onUpdate": "no action"
},
@@ -39111,8 +42871,12 @@
"name": "topic_comments_workspace_id_workspaces_id_fk",
"tableFrom": "topic_comments",
"tableTo": "workspaces",
- "columnsFrom": ["workspace_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "workspace_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -39120,8 +42884,12 @@
"name": "topic_comments_moderated_by_user_id_users_id_fk",
"tableFrom": "topic_comments",
"tableTo": "users",
- "columnsFrom": ["moderated_by_user_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "moderated_by_user_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "set null",
"onUpdate": "no action"
}
@@ -39368,8 +43136,12 @@
"name": "trash_items_root_id_trash_items_id_fk",
"tableFrom": "trash_items",
"tableTo": "trash_items",
- "columnsFrom": ["root_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "root_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -39377,8 +43149,12 @@
"name": "trash_items_user_id_users_id_fk",
"tableFrom": "trash_items",
"tableTo": "users",
- "columnsFrom": ["user_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "user_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -39386,8 +43162,12 @@
"name": "trash_items_workspace_id_workspaces_id_fk",
"tableFrom": "trash_items",
"tableTo": "workspaces",
- "columnsFrom": ["workspace_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "workspace_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -39395,8 +43175,12 @@
"name": "trash_items_deleted_by_user_id_users_id_fk",
"tableFrom": "trash_items",
"tableTo": "users",
- "columnsFrom": ["deleted_by_user_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "deleted_by_user_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "set null",
"onUpdate": "no action"
}
@@ -39496,8 +43280,12 @@
"name": "user_settings_id_users_id_fk",
"tableFrom": "user_settings",
"tableTo": "users",
- "columnsFrom": ["id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
}
@@ -39752,22 +43540,30 @@
"users_username_unique": {
"name": "users_username_unique",
"nullsNotDistinct": false,
- "columns": ["username"]
+ "columns": [
+ "username"
+ ]
},
"users_email_unique": {
"name": "users_email_unique",
"nullsNotDistinct": false,
- "columns": ["email"]
+ "columns": [
+ "email"
+ ]
},
"users_normalized_email_unique": {
"name": "users_normalized_email_unique",
"nullsNotDistinct": false,
- "columns": ["normalized_email"]
+ "columns": [
+ "normalized_email"
+ ]
},
"users_phone_unique": {
"name": "users_phone_unique",
"nullsNotDistinct": false,
- "columns": ["phone"]
+ "columns": [
+ "phone"
+ ]
}
},
"policies": {},
@@ -40044,8 +43840,12 @@
"name": "user_memories_activities_user_id_users_id_fk",
"tableFrom": "user_memories_activities",
"tableTo": "users",
- "columnsFrom": ["user_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "user_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -40053,8 +43853,12 @@
"name": "user_memories_activities_user_memory_id_user_memories_id_fk",
"tableFrom": "user_memories_activities",
"tableTo": "user_memories",
- "columnsFrom": ["user_memory_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "user_memory_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -40062,8 +43866,12 @@
"name": "user_memories_activities_dossier_id_user_memories_dossiers_id_fk",
"tableFrom": "user_memories_activities",
"tableTo": "user_memories_dossiers",
- "columnsFrom": ["dossier_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "dossier_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "set null",
"onUpdate": "no action"
}
@@ -40277,8 +44085,12 @@
"name": "user_memories_user_id_users_id_fk",
"tableFrom": "user_memories",
"tableTo": "users",
- "columnsFrom": ["user_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "user_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
}
@@ -40424,8 +44236,12 @@
"name": "user_memories_context_projects_context_id_user_memories_contexts_id_fk",
"tableFrom": "user_memories_context_projects",
"tableTo": "user_memories_contexts",
- "columnsFrom": ["context_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "context_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -40433,8 +44249,12 @@
"name": "user_memories_context_projects_project_id_projects_id_fk",
"tableFrom": "user_memories_context_projects",
"tableTo": "projects",
- "columnsFrom": ["project_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "project_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -40442,8 +44262,12 @@
"name": "user_memories_context_projects_user_id_users_id_fk",
"tableFrom": "user_memories_context_projects",
"tableTo": "users",
- "columnsFrom": ["user_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "user_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
}
@@ -40719,8 +44543,12 @@
"name": "user_memories_contexts_user_id_users_id_fk",
"tableFrom": "user_memories_contexts",
"tableTo": "users",
- "columnsFrom": ["user_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "user_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -40728,8 +44556,12 @@
"name": "user_memories_contexts_user_memory_id_user_memories_id_fk",
"tableFrom": "user_memories_contexts",
"tableTo": "user_memories",
- "columnsFrom": ["user_memory_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "user_memory_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
}
@@ -41008,8 +44840,12 @@
"name": "user_memories_dossiers_context_id_user_memories_contexts_id_fk",
"tableFrom": "user_memories_dossiers",
"tableTo": "user_memories_contexts",
- "columnsFrom": ["context_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "context_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "set null",
"onUpdate": "no action"
},
@@ -41017,8 +44853,12 @@
"name": "user_memories_dossiers_user_id_users_id_fk",
"tableFrom": "user_memories_dossiers",
"tableTo": "users",
- "columnsFrom": ["user_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "user_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -41026,8 +44866,12 @@
"name": "user_memories_dossiers_workspace_id_workspaces_id_fk",
"tableFrom": "user_memories_dossiers",
"tableTo": "workspaces",
- "columnsFrom": ["workspace_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "workspace_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -41035,8 +44879,12 @@
"name": "user_memories_dossiers_agent_id_agents_id_fk",
"tableFrom": "user_memories_dossiers",
"tableTo": "agents",
- "columnsFrom": ["agent_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "agent_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -41044,8 +44892,12 @@
"name": "user_memories_dossiers_project_id_projects_id_fk",
"tableFrom": "user_memories_dossiers",
"tableTo": "projects",
- "columnsFrom": ["project_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "project_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -41053,8 +44905,12 @@
"name": "user_memories_dossiers_user_memory_id_user_memories_id_fk",
"tableFrom": "user_memories_dossiers",
"tableTo": "user_memories",
- "columnsFrom": ["user_memory_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "user_memory_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
}
@@ -41238,8 +45094,12 @@
"name": "user_memories_edges_source_memory_id_user_memories_id_fk",
"tableFrom": "user_memories_edges",
"tableTo": "user_memories",
- "columnsFrom": ["source_memory_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "source_memory_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -41247,8 +45107,12 @@
"name": "user_memories_edges_target_memory_id_user_memories_id_fk",
"tableFrom": "user_memories_edges",
"tableTo": "user_memories",
- "columnsFrom": ["target_memory_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "target_memory_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -41256,8 +45120,12 @@
"name": "user_memories_edges_user_id_users_id_fk",
"tableFrom": "user_memories_edges",
"tableTo": "users",
- "columnsFrom": ["user_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "user_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -41265,8 +45133,12 @@
"name": "user_memories_edges_workspace_id_workspaces_id_fk",
"tableFrom": "user_memories_edges",
"tableTo": "workspaces",
- "columnsFrom": ["workspace_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "workspace_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
}
@@ -41543,8 +45415,12 @@
"name": "user_memories_entities_parent_entity_id_user_memories_entities_id_fk",
"tableFrom": "user_memories_entities",
"tableTo": "user_memories_entities",
- "columnsFrom": ["parent_entity_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "parent_entity_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "set null",
"onUpdate": "no action"
},
@@ -41552,8 +45428,12 @@
"name": "user_memories_entities_user_id_users_id_fk",
"tableFrom": "user_memories_entities",
"tableTo": "users",
- "columnsFrom": ["user_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "user_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -41561,8 +45441,12 @@
"name": "user_memories_entities_workspace_id_workspaces_id_fk",
"tableFrom": "user_memories_entities",
"tableTo": "workspaces",
- "columnsFrom": ["workspace_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "workspace_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -41570,8 +45454,12 @@
"name": "user_memories_entities_agent_id_agents_id_fk",
"tableFrom": "user_memories_entities",
"tableTo": "agents",
- "columnsFrom": ["agent_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "agent_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -41579,8 +45467,12 @@
"name": "user_memories_entities_project_id_projects_id_fk",
"tableFrom": "user_memories_entities",
"tableTo": "projects",
- "columnsFrom": ["project_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "project_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -41588,8 +45480,12 @@
"name": "user_memories_entities_user_memory_id_user_memories_id_fk",
"tableFrom": "user_memories_entities",
"tableTo": "user_memories",
- "columnsFrom": ["user_memory_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "user_memory_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
}
@@ -41752,8 +45648,12 @@
"name": "user_memories_entity_names_entity_id_user_memories_entities_id_fk",
"tableFrom": "user_memories_entity_names",
"tableTo": "user_memories_entities",
- "columnsFrom": ["entity_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "entity_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -41761,8 +45661,12 @@
"name": "user_memories_entity_names_user_id_users_id_fk",
"tableFrom": "user_memories_entity_names",
"tableTo": "users",
- "columnsFrom": ["user_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "user_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -41770,8 +45674,12 @@
"name": "user_memories_entity_names_workspace_id_workspaces_id_fk",
"tableFrom": "user_memories_entity_names",
"tableTo": "workspaces",
- "columnsFrom": ["workspace_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "workspace_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -41779,8 +45687,12 @@
"name": "user_memories_entity_names_source_memory_id_user_memories_id_fk",
"tableFrom": "user_memories_entity_names",
"tableTo": "user_memories",
- "columnsFrom": ["source_memory_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "source_memory_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "set null",
"onUpdate": "no action"
}
@@ -42015,8 +45927,12 @@
"name": "user_memories_experiences_user_id_users_id_fk",
"tableFrom": "user_memories_experiences",
"tableTo": "users",
- "columnsFrom": ["user_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "user_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -42024,8 +45940,12 @@
"name": "user_memories_experiences_user_memory_id_user_memories_id_fk",
"tableFrom": "user_memories_experiences",
"tableTo": "user_memories",
- "columnsFrom": ["user_memory_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "user_memory_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
}
@@ -42224,8 +46144,12 @@
"name": "user_memories_identities_user_id_users_id_fk",
"tableFrom": "user_memories_identities",
"tableTo": "users",
- "columnsFrom": ["user_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "user_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -42233,8 +46157,12 @@
"name": "user_memories_identities_user_memory_id_user_memories_id_fk",
"tableFrom": "user_memories_identities",
"tableTo": "user_memories",
- "columnsFrom": ["user_memory_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "user_memory_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -42242,8 +46170,12 @@
"name": "user_memories_identities_entity_id_user_memories_entities_id_fk",
"tableFrom": "user_memories_identities",
"tableTo": "user_memories_entities",
- "columnsFrom": ["entity_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "entity_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "set null",
"onUpdate": "no action"
}
@@ -42425,8 +46357,12 @@
"name": "user_memories_operations_user_id_users_id_fk",
"tableFrom": "user_memories_operations",
"tableTo": "users",
- "columnsFrom": ["user_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "user_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -42434,8 +46370,12 @@
"name": "user_memories_operations_workspace_id_workspaces_id_fk",
"tableFrom": "user_memories_operations",
"tableTo": "workspaces",
- "columnsFrom": ["workspace_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "workspace_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
}
@@ -42635,8 +46575,12 @@
"name": "user_memory_persona_document_histories_user_id_users_id_fk",
"tableFrom": "user_memory_persona_document_histories",
"tableTo": "users",
- "columnsFrom": ["user_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "user_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -42644,8 +46588,12 @@
"name": "user_memory_persona_document_histories_persona_id_user_memory_persona_documents_id_fk",
"tableFrom": "user_memory_persona_document_histories",
"tableTo": "user_memory_persona_documents",
- "columnsFrom": ["persona_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "persona_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
}
@@ -42788,8 +46736,12 @@
"name": "user_memory_persona_documents_user_id_users_id_fk",
"tableFrom": "user_memory_persona_documents",
"tableTo": "users",
- "columnsFrom": ["user_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "user_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
}
@@ -43014,8 +46966,12 @@
"name": "user_memories_preferences_user_id_users_id_fk",
"tableFrom": "user_memories_preferences",
"tableTo": "users",
- "columnsFrom": ["user_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "user_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -43023,8 +46979,12 @@
"name": "user_memories_preferences_user_memory_id_user_memories_id_fk",
"tableFrom": "user_memories_preferences",
"tableTo": "user_memories",
- "columnsFrom": ["user_memory_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "user_memory_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -43032,8 +46992,12 @@
"name": "user_memories_preferences_holder_entity_id_user_memories_entities_id_fk",
"tableFrom": "user_memories_preferences",
"tableTo": "user_memories_entities",
- "columnsFrom": ["holder_entity_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "holder_entity_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "set null",
"onUpdate": "no action"
},
@@ -43041,8 +47005,12 @@
"name": "user_memories_preferences_applies_to_entity_id_user_memories_entities_id_fk",
"tableFrom": "user_memories_preferences",
"tableTo": "user_memories_entities",
- "columnsFrom": ["applies_to_entity_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "applies_to_entity_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "set null",
"onUpdate": "no action"
}
@@ -43332,8 +47300,12 @@
"name": "acceptances_user_id_users_id_fk",
"tableFrom": "acceptances",
"tableTo": "users",
- "columnsFrom": ["user_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "user_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -43341,8 +47313,12 @@
"name": "acceptances_workspace_id_workspaces_id_fk",
"tableFrom": "acceptances",
"tableTo": "workspaces",
- "columnsFrom": ["workspace_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "workspace_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -43350,8 +47326,12 @@
"name": "acceptances_project_id_projects_id_fk",
"tableFrom": "acceptances",
"tableTo": "projects",
- "columnsFrom": ["project_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "project_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "set null",
"onUpdate": "no action"
}
@@ -43738,8 +47718,12 @@
"name": "verify_check_results_verify_run_id_verify_runs_id_fk",
"tableFrom": "verify_check_results",
"tableTo": "verify_runs",
- "columnsFrom": ["verify_run_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "verify_run_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -43747,8 +47731,12 @@
"name": "verify_check_results_operation_id_agent_operations_id_fk",
"tableFrom": "verify_check_results",
"tableTo": "agent_operations",
- "columnsFrom": ["operation_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "operation_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "set null",
"onUpdate": "no action"
},
@@ -43756,8 +47744,12 @@
"name": "verify_check_results_user_id_users_id_fk",
"tableFrom": "verify_check_results",
"tableTo": "users",
- "columnsFrom": ["user_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "user_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -43765,8 +47757,12 @@
"name": "verify_check_results_workspace_id_workspaces_id_fk",
"tableFrom": "verify_check_results",
"tableTo": "workspaces",
- "columnsFrom": ["workspace_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "workspace_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -43774,8 +47770,12 @@
"name": "verify_check_results_source_criterion_id_verify_criteria_id_fk",
"tableFrom": "verify_check_results",
"tableTo": "verify_criteria",
- "columnsFrom": ["source_criterion_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "source_criterion_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "set null",
"onUpdate": "no action"
},
@@ -43783,8 +47783,12 @@
"name": "verify_check_results_verifier_operation_id_agent_operations_id_fk",
"tableFrom": "verify_check_results",
"tableTo": "agent_operations",
- "columnsFrom": ["verifier_operation_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "verifier_operation_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "set null",
"onUpdate": "no action"
},
@@ -43792,8 +47796,12 @@
"name": "verify_check_results_verifier_tracing_id_llm_generation_tracing_id_fk",
"tableFrom": "verify_check_results",
"tableTo": "llm_generation_tracing",
- "columnsFrom": ["verifier_tracing_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "verifier_tracing_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "set null",
"onUpdate": "no action"
},
@@ -43801,8 +47809,12 @@
"name": "verify_check_results_repair_operation_id_agent_operations_id_fk",
"tableFrom": "verify_check_results",
"tableTo": "agent_operations",
- "columnsFrom": ["repair_operation_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "repair_operation_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "set null",
"onUpdate": "no action"
}
@@ -43989,8 +48001,12 @@
"name": "verify_criteria_user_id_users_id_fk",
"tableFrom": "verify_criteria",
"tableTo": "users",
- "columnsFrom": ["user_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "user_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -43998,8 +48014,12 @@
"name": "verify_criteria_document_id_documents_id_fk",
"tableFrom": "verify_criteria",
"tableTo": "documents",
- "columnsFrom": ["document_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "document_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "set null",
"onUpdate": "no action"
},
@@ -44007,8 +48027,12 @@
"name": "verify_criteria_workspace_id_workspaces_id_fk",
"tableFrom": "verify_criteria",
"tableTo": "workspaces",
- "columnsFrom": ["workspace_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "workspace_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
}
@@ -44186,8 +48210,12 @@
"name": "verify_evidence_check_result_id_verify_check_results_id_fk",
"tableFrom": "verify_evidence",
"tableTo": "verify_check_results",
- "columnsFrom": ["check_result_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "check_result_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -44195,8 +48223,12 @@
"name": "verify_evidence_document_id_documents_id_fk",
"tableFrom": "verify_evidence",
"tableTo": "documents",
- "columnsFrom": ["document_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "document_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "set null",
"onUpdate": "no action"
},
@@ -44204,8 +48236,12 @@
"name": "verify_evidence_file_id_files_id_fk",
"tableFrom": "verify_evidence",
"tableTo": "files",
- "columnsFrom": ["file_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "file_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "set null",
"onUpdate": "no action"
},
@@ -44213,8 +48249,12 @@
"name": "verify_evidence_user_id_users_id_fk",
"tableFrom": "verify_evidence",
"tableTo": "users",
- "columnsFrom": ["user_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "user_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -44222,8 +48262,12 @@
"name": "verify_evidence_workspace_id_workspaces_id_fk",
"tableFrom": "verify_evidence",
"tableTo": "workspaces",
- "columnsFrom": ["workspace_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "workspace_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
}
@@ -44413,8 +48457,12 @@
"name": "verify_reports_verify_run_id_verify_runs_id_fk",
"tableFrom": "verify_reports",
"tableTo": "verify_runs",
- "columnsFrom": ["verify_run_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "verify_run_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -44422,8 +48470,12 @@
"name": "verify_reports_operation_id_agent_operations_id_fk",
"tableFrom": "verify_reports",
"tableTo": "agent_operations",
- "columnsFrom": ["operation_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "operation_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "set null",
"onUpdate": "no action"
},
@@ -44431,8 +48483,12 @@
"name": "verify_reports_user_id_users_id_fk",
"tableFrom": "verify_reports",
"tableTo": "users",
- "columnsFrom": ["user_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "user_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -44440,8 +48496,12 @@
"name": "verify_reports_workspace_id_workspaces_id_fk",
"tableFrom": "verify_reports",
"tableTo": "workspaces",
- "columnsFrom": ["workspace_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "workspace_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
}
@@ -44691,8 +48751,12 @@
"name": "verify_review_predictions_check_result_id_verify_check_results_id_fk",
"tableFrom": "verify_review_predictions",
"tableTo": "verify_check_results",
- "columnsFrom": ["check_result_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "check_result_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -44700,8 +48764,12 @@
"name": "verify_review_predictions_user_id_users_id_fk",
"tableFrom": "verify_review_predictions",
"tableTo": "users",
- "columnsFrom": ["user_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "user_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -44709,8 +48777,12 @@
"name": "verify_review_predictions_workspace_id_workspaces_id_fk",
"tableFrom": "verify_review_predictions",
"tableTo": "workspaces",
- "columnsFrom": ["workspace_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "workspace_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
}
@@ -44820,8 +48892,12 @@
"name": "verify_rubric_criteria_rubric_id_verify_rubrics_id_fk",
"tableFrom": "verify_rubric_criteria",
"tableTo": "verify_rubrics",
- "columnsFrom": ["rubric_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "rubric_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -44829,8 +48905,12 @@
"name": "verify_rubric_criteria_criterion_id_verify_criteria_id_fk",
"tableFrom": "verify_rubric_criteria",
"tableTo": "verify_criteria",
- "columnsFrom": ["criterion_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "criterion_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -44838,8 +48918,12 @@
"name": "verify_rubric_criteria_user_id_users_id_fk",
"tableFrom": "verify_rubric_criteria",
"tableTo": "users",
- "columnsFrom": ["user_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "user_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -44847,8 +48931,12 @@
"name": "verify_rubric_criteria_workspace_id_workspaces_id_fk",
"tableFrom": "verify_rubric_criteria",
"tableTo": "workspaces",
- "columnsFrom": ["workspace_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "workspace_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
}
@@ -44856,7 +48944,10 @@
"compositePrimaryKeys": {
"verify_rubric_criteria_rubric_id_criterion_id_pk": {
"name": "verify_rubric_criteria_rubric_id_criterion_id_pk",
- "columns": ["rubric_id", "criterion_id"]
+ "columns": [
+ "rubric_id",
+ "criterion_id"
+ ]
}
},
"uniqueConstraints": {},
@@ -44965,8 +49056,12 @@
"name": "verify_rubrics_user_id_users_id_fk",
"tableFrom": "verify_rubrics",
"tableTo": "users",
- "columnsFrom": ["user_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "user_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -44974,8 +49069,12 @@
"name": "verify_rubrics_workspace_id_workspaces_id_fk",
"tableFrom": "verify_rubrics",
"tableTo": "workspaces",
- "columnsFrom": ["workspace_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "workspace_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
}
@@ -45247,8 +49346,12 @@
"name": "verify_runs_user_id_users_id_fk",
"tableFrom": "verify_runs",
"tableTo": "users",
- "columnsFrom": ["user_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "user_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -45256,8 +49359,12 @@
"name": "verify_runs_workspace_id_workspaces_id_fk",
"tableFrom": "verify_runs",
"tableTo": "workspaces",
- "columnsFrom": ["workspace_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "workspace_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -45265,8 +49372,12 @@
"name": "verify_runs_acceptance_id_acceptances_id_fk",
"tableFrom": "verify_runs",
"tableTo": "acceptances",
- "columnsFrom": ["acceptance_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "acceptance_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "set null",
"onUpdate": "no action"
},
@@ -45274,8 +49385,12 @@
"name": "verify_runs_operation_id_agent_operations_id_fk",
"tableFrom": "verify_runs",
"tableTo": "agent_operations",
- "columnsFrom": ["operation_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "operation_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "set null",
"onUpdate": "no action"
}
@@ -45481,8 +49596,12 @@
"name": "widget_runs_widget_id_widgets_id_fk",
"tableFrom": "widget_runs",
"tableTo": "widgets",
- "columnsFrom": ["widget_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "widget_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -45490,8 +49609,12 @@
"name": "widget_runs_version_id_widget_versions_id_fk",
"tableFrom": "widget_runs",
"tableTo": "widget_versions",
- "columnsFrom": ["version_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "version_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -45499,8 +49622,12 @@
"name": "widget_runs_user_id_users_id_fk",
"tableFrom": "widget_runs",
"tableTo": "users",
- "columnsFrom": ["user_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "user_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -45508,8 +49635,12 @@
"name": "widget_runs_workspace_id_workspaces_id_fk",
"tableFrom": "widget_runs",
"tableTo": "workspaces",
- "columnsFrom": ["workspace_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "workspace_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
}
@@ -45770,8 +49901,12 @@
"name": "widget_versions_widget_id_widgets_id_fk",
"tableFrom": "widget_versions",
"tableTo": "widgets",
- "columnsFrom": ["widget_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "widget_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -45779,8 +49914,12 @@
"name": "widget_versions_user_id_users_id_fk",
"tableFrom": "widget_versions",
"tableTo": "users",
- "columnsFrom": ["user_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "user_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -45788,8 +49927,12 @@
"name": "widget_versions_workspace_id_workspaces_id_fk",
"tableFrom": "widget_versions",
"tableTo": "workspaces",
- "columnsFrom": ["workspace_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "workspace_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -45797,8 +49940,12 @@
"name": "widget_versions_published_by_user_id_users_id_fk",
"tableFrom": "widget_versions",
"tableTo": "users",
- "columnsFrom": ["published_by_user_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "published_by_user_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "set null",
"onUpdate": "no action"
},
@@ -45806,8 +49953,12 @@
"name": "widget_versions_source_agent_id_agents_id_fk",
"tableFrom": "widget_versions",
"tableTo": "agents",
- "columnsFrom": ["source_agent_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "source_agent_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "set null",
"onUpdate": "no action"
},
@@ -45815,8 +49966,12 @@
"name": "widget_versions_source_topic_id_topics_id_fk",
"tableFrom": "widget_versions",
"tableTo": "topics",
- "columnsFrom": ["source_topic_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "source_topic_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "set null",
"onUpdate": "no action"
},
@@ -45824,8 +49979,12 @@
"name": "widget_versions_parent_version_id_widget_versions_id_fk",
"tableFrom": "widget_versions",
"tableTo": "widget_versions",
- "columnsFrom": ["parent_version_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "parent_version_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "set null",
"onUpdate": "no action"
}
@@ -46195,8 +50354,12 @@
"name": "widgets_user_id_users_id_fk",
"tableFrom": "widgets",
"tableTo": "users",
- "columnsFrom": ["user_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "user_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -46204,8 +50367,12 @@
"name": "widgets_workspace_id_workspaces_id_fk",
"tableFrom": "widgets",
"tableTo": "workspaces",
- "columnsFrom": ["workspace_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "workspace_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -46213,8 +50380,12 @@
"name": "widgets_project_id_projects_id_fk",
"tableFrom": "widgets",
"tableTo": "projects",
- "columnsFrom": ["project_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "project_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -46222,8 +50393,12 @@
"name": "widgets_agent_id_agents_id_fk",
"tableFrom": "widgets",
"tableTo": "agents",
- "columnsFrom": ["agent_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "agent_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -46231,8 +50406,12 @@
"name": "widgets_published_version_id_widget_versions_id_fk",
"tableFrom": "widgets",
"tableTo": "widget_versions",
- "columnsFrom": ["published_version_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "published_version_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "set null",
"onUpdate": "no action"
},
@@ -46240,8 +50419,12 @@
"name": "widgets_draft_version_id_widget_versions_id_fk",
"tableFrom": "widgets",
"tableTo": "widget_versions",
- "columnsFrom": ["draft_version_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "draft_version_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "set null",
"onUpdate": "no action"
},
@@ -46249,8 +50432,12 @@
"name": "widgets_metric_id_metrics_id_fk",
"tableFrom": "widgets",
"tableTo": "metrics",
- "columnsFrom": ["metric_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "metric_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "set null",
"onUpdate": "no action"
}
@@ -46564,8 +50751,12 @@
"name": "work_versions_work_id_works_id_fk",
"tableFrom": "work_versions",
"tableTo": "works",
- "columnsFrom": ["work_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "work_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -46573,8 +50764,12 @@
"name": "work_versions_topic_id_topics_id_fk",
"tableFrom": "work_versions",
"tableTo": "topics",
- "columnsFrom": ["topic_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "topic_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "set null",
"onUpdate": "no action"
},
@@ -46582,8 +50777,12 @@
"name": "work_versions_thread_id_threads_id_fk",
"tableFrom": "work_versions",
"tableTo": "threads",
- "columnsFrom": ["thread_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "thread_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "set null",
"onUpdate": "no action"
},
@@ -46591,8 +50790,12 @@
"name": "work_versions_message_id_messages_id_fk",
"tableFrom": "work_versions",
"tableTo": "messages",
- "columnsFrom": ["message_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "message_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "set null",
"onUpdate": "no action"
},
@@ -46600,8 +50803,12 @@
"name": "work_versions_agent_id_agents_id_fk",
"tableFrom": "work_versions",
"tableTo": "agents",
- "columnsFrom": ["agent_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "agent_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "set null",
"onUpdate": "no action"
}
@@ -46990,8 +51197,12 @@
"name": "works_origin_topic_id_topics_id_fk",
"tableFrom": "works",
"tableTo": "topics",
- "columnsFrom": ["origin_topic_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "origin_topic_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "set null",
"onUpdate": "no action"
},
@@ -46999,8 +51210,12 @@
"name": "works_origin_thread_id_threads_id_fk",
"tableFrom": "works",
"tableTo": "threads",
- "columnsFrom": ["origin_thread_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "origin_thread_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "set null",
"onUpdate": "no action"
},
@@ -47008,8 +51223,12 @@
"name": "works_origin_agent_id_agents_id_fk",
"tableFrom": "works",
"tableTo": "agents",
- "columnsFrom": ["origin_agent_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "origin_agent_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "set null",
"onUpdate": "no action"
},
@@ -47017,8 +51236,12 @@
"name": "works_user_id_users_id_fk",
"tableFrom": "works",
"tableTo": "users",
- "columnsFrom": ["user_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "user_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -47026,8 +51249,12 @@
"name": "works_workspace_id_workspaces_id_fk",
"tableFrom": "works",
"tableTo": "workspaces",
- "columnsFrom": ["workspace_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "workspace_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
}
@@ -47151,8 +51378,12 @@
"name": "workspace_audit_logs_workspace_id_workspaces_id_fk",
"tableFrom": "workspace_audit_logs",
"tableTo": "workspaces",
- "columnsFrom": ["workspace_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "workspace_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
}
@@ -47211,11 +51442,18 @@
"notNull": true,
"default": "'pending'"
},
+ "reusable": {
+ "name": "reusable",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": true,
+ "default": false
+ },
"expires_at": {
"name": "expires_at",
"type": "timestamp with time zone",
"primaryKey": false,
- "notNull": true
+ "notNull": false
},
"created_at": {
"name": "created_at",
@@ -47299,8 +51537,12 @@
"name": "workspace_invitations_workspace_id_workspaces_id_fk",
"tableFrom": "workspace_invitations",
"tableTo": "workspaces",
- "columnsFrom": ["workspace_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "workspace_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -47308,8 +51550,12 @@
"name": "workspace_invitations_inviter_id_users_id_fk",
"tableFrom": "workspace_invitations",
"tableTo": "users",
- "columnsFrom": ["inviter_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "inviter_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
}
@@ -47319,11 +51565,18 @@
"workspace_invitations_token_unique": {
"name": "workspace_invitations_token_unique",
"nullsNotDistinct": false,
- "columns": ["token"]
+ "columns": [
+ "token"
+ ]
}
},
"policies": {},
- "checkConstraints": {},
+ "checkConstraints": {
+ "workspace_invitations_expiry_required": {
+ "name": "workspace_invitations_expiry_required",
+ "value": "\"workspace_invitations\".\"reusable\" OR \"workspace_invitations\".\"expires_at\" IS NOT NULL"
+ }
+ },
"isRLSEnabled": false
},
"public.workspace_members": {
@@ -47361,6 +51614,13 @@
"primaryKey": false,
"notNull": false
},
+ "config": {
+ "name": "config",
+ "type": "jsonb",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "'{}'::jsonb"
+ },
"joined_at": {
"name": "joined_at",
"type": "timestamp with time zone",
@@ -47420,8 +51680,12 @@
"name": "workspace_members_workspace_id_workspaces_id_fk",
"tableFrom": "workspace_members",
"tableTo": "workspaces",
- "columnsFrom": ["workspace_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "workspace_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -47429,8 +51693,12 @@
"name": "workspace_members_user_id_users_id_fk",
"tableFrom": "workspace_members",
"tableTo": "users",
- "columnsFrom": ["user_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "user_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
}
@@ -47438,7 +51706,10 @@
"compositePrimaryKeys": {
"workspace_members_workspace_id_user_id_pk": {
"name": "workspace_members_workspace_id_user_id_pk",
- "columns": ["workspace_id", "user_id"]
+ "columns": [
+ "workspace_id",
+ "user_id"
+ ]
}
},
"uniqueConstraints": {},
@@ -47554,8 +51825,12 @@
"name": "workspace_team_members_workspace_id_workspaces_id_fk",
"tableFrom": "workspace_team_members",
"tableTo": "workspaces",
- "columnsFrom": ["workspace_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "workspace_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -47563,8 +51838,12 @@
"name": "workspace_team_members_user_id_users_id_fk",
"tableFrom": "workspace_team_members",
"tableTo": "users",
- "columnsFrom": ["user_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "user_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -47572,8 +51851,14 @@
"name": "workspace_team_members_team_workspace_fk",
"tableFrom": "workspace_team_members",
"tableTo": "workspace_teams",
- "columnsFrom": ["team_id", "workspace_id"],
- "columnsTo": ["id", "workspace_id"],
+ "columnsFrom": [
+ "team_id",
+ "workspace_id"
+ ],
+ "columnsTo": [
+ "id",
+ "workspace_id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
}
@@ -47703,8 +51988,12 @@
"name": "workspace_teams_workspace_id_workspaces_id_fk",
"tableFrom": "workspace_teams",
"tableTo": "workspaces",
- "columnsFrom": ["workspace_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "workspace_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -47712,8 +52001,12 @@
"name": "workspace_teams_created_by_users_id_fk",
"tableFrom": "workspace_teams",
"tableTo": "users",
- "columnsFrom": ["created_by"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "created_by"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "set null",
"onUpdate": "no action"
}
@@ -47723,7 +52016,10 @@
"workspace_teams_id_workspace_unique": {
"name": "workspace_teams_id_workspace_unique",
"nullsNotDistinct": false,
- "columns": ["id", "workspace_id"]
+ "columns": [
+ "id",
+ "workspace_id"
+ ]
}
},
"policies": {},
@@ -47818,8 +52114,12 @@
"name": "workspace_user_settings_workspace_id_workspaces_id_fk",
"tableFrom": "workspace_user_settings",
"tableTo": "workspaces",
- "columnsFrom": ["workspace_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "workspace_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -47827,8 +52127,12 @@
"name": "workspace_user_settings_user_id_users_id_fk",
"tableFrom": "workspace_user_settings",
"tableTo": "users",
- "columnsFrom": ["user_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "user_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
}
@@ -47957,8 +52261,12 @@
"name": "workspaces_primary_owner_id_users_id_fk",
"tableFrom": "workspaces",
"tableTo": "users",
- "columnsFrom": ["primary_owner_id"],
- "columnsTo": ["id"],
+ "columnsFrom": [
+ "primary_owner_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
"onDelete": "cascade",
"onUpdate": "no action"
}
@@ -47970,6 +52278,26 @@
"isRLSEnabled": false
}
},
- "version": "7",
- "views": {}
-}
+ "enums": {},
+ "schemas": {},
+ "sequences": {
+ "public.fts_search_sync_revision_seq": {
+ "name": "fts_search_sync_revision_seq",
+ "schema": "public",
+ "increment": "1",
+ "startWith": "1",
+ "minValue": "1",
+ "maxValue": "9223372036854775807",
+ "cache": "1",
+ "cycle": false
+ }
+ },
+ "roles": {},
+ "policies": {},
+ "views": {},
+ "_meta": {
+ "columns": {},
+ "schemas": {},
+ "tables": {}
+ }
+}
\ No newline at end of file
diff --git a/packages/database/migrations/meta/_journal.json b/packages/database/migrations/meta/_journal.json
index c14a9f668df..11ec60a9944 100644
--- a/packages/database/migrations/meta/_journal.json
+++ b/packages/database/migrations/meta/_journal.json
@@ -1484,7 +1484,14 @@
"when": 1794233764532,
"tag": "0211_add_documents_created_by_agent_id",
"breakpoints": true
+ },
+ {
+ "idx": 212,
+ "version": "7",
+ "when": 1794296581452,
+ "tag": "0212_workspace_member_config",
+ "breakpoints": true
}
],
"version": "6"
-}
+}
\ No newline at end of file
diff --git a/packages/database/src/schemas/workspace.ts b/packages/database/src/schemas/workspace.ts
index 834b260198e..92b498d1baf 100644
--- a/packages/database/src/schemas/workspace.ts
+++ b/packages/database/src/schemas/workspace.ts
@@ -1,4 +1,4 @@
-import type { WorkspaceUserPreference } from '@lobechat/types';
+import type { WorkspaceMemberConfig, WorkspaceUserPreference } from '@lobechat/types';
import { sql } from 'drizzle-orm';
import {
boolean,
@@ -69,6 +69,8 @@ export const workspaceMembers = pgTable(
// duties in each workspace. Lengths are enforced by the API, not the column.
title: text('title'),
responsibilities: text('responsibilities'),
+ /** Per-member display settings; see {@link WorkspaceMemberConfig}. */
+ config: jsonb('config').$type<WorkspaceMemberConfig>().notNull().default({}),
joinedAt: timestamptz('joined_at').notNull().defaultNow(),
updatedAt: updatedAt(),
deletedAt: timestamptz('deleted_at'),
diff --git a/packages/types/src/index.ts b/packages/types/src/index.ts
index c5366a59cae..73f31e95a4d 100644
--- a/packages/types/src/index.ts
+++ b/packages/types/src/index.ts
@@ -87,6 +87,7 @@ export * from './userSkill';
export * from './verify';
export * from './widget';
export * from './work';
+export * from './workspaceMember';
// FIXME: I think we need a refactor for the "openai" types
// it more likes the UI message payload
export * from './acceptanceComment';
diff --git a/packages/types/src/workspaceMember.ts b/packages/types/src/workspaceMember.ts
new file mode 100644
index 00000000000..601e9d84fd1
--- /dev/null
+++ b/packages/types/src/workspaceMember.ts
@@ -0,0 +1,9 @@
+/**
+ * A workspace member's own display settings (`workspace_members.config`),
+ * kept with their membership so they go when the member leaves. Absent keys
+ * mean the default.
+ */
+export interface WorkspaceMemberConfig {
+ /** The color the member picked for their profile card, `#rrggbb`. */
+ badgeColor?: string;
+}