@zonease/aiworker-cli 0.12.2 → 0.13.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +158 -350
- package/aiworker-bun.js +614 -694
- package/drizzle/worker/0000_polite_stellaris.sql +219 -0
- package/drizzle/worker/0001_red_lady_mastermind.sql +29 -0
- package/drizzle/worker/0002_concerned_slyde.sql +45 -0
- package/drizzle/worker/meta/0000_snapshot.json +1055 -194
- package/drizzle/worker/meta/0001_snapshot.json +1244 -222
- package/drizzle/worker/meta/0002_snapshot.json +1557 -273
- package/drizzle/worker/meta/_journal.json +6 -48
- package/official-apps/aiworker-hr/README.md +16 -0
- package/official-apps/aiworker-hr/capabilities/candidate-screen/prompt.md +3 -0
- package/official-apps/aiworker-hr/capabilities/candidate-screen/review.md +5 -0
- package/official-apps/aiworker-hr/capabilities/person-profile/prompt.md +3 -0
- package/official-apps/aiworker-hr/capabilities/person-profile/review.md +5 -0
- package/official-apps/aiworker-hr/dist/host-mounted.js +15677 -0
- package/official-apps/aiworker-hr/dist/index.js +15411 -0
- package/official-apps/aiworker-hr/dist/standalone.js +15451 -0
- package/official-apps/aiworker-hr/migrations/0001_hr.sql +2 -0
- package/official-apps/aiworker-hr/package.json +31 -0
- package/official-apps/aiworker-hr/packs/hr-recruiting/SOUL.md +7 -0
- package/official-apps/aiworker-hr/review/candidate-screen.md +5 -0
- package/official-apps/aiworker-hr/review/person-profile.md +5 -0
- package/official-apps/aiworker-hr/schemas/candidate-screen.schema.json +50 -0
- package/official-apps/aiworker-hr/schemas/person-profile.schema.json +50 -0
- package/official-apps/aiworker-hr/soul-app.manifest.json +374 -0
- package/official-apps/aiworker-hr/src/api.ts +1 -0
- package/official-apps/aiworker-hr/src/host-mounted.ts +308 -0
- package/official-apps/aiworker-hr/src/index.ts +152 -0
- package/official-apps/aiworker-hr/src/protocol/artifact.ts +2 -0
- package/official-apps/aiworker-hr/src/protocol/connectors.ts +2 -0
- package/official-apps/aiworker-hr/src/protocol/lifecycle.ts +2 -0
- package/official-apps/aiworker-hr/src/protocol/review.ts +2 -0
- package/official-apps/aiworker-hr/src/protocol/runtime.ts +2 -0
- package/official-apps/aiworker-hr/src/protocol/ui.ts +2 -0
- package/official-apps/aiworker-hr/src/standalone.ts +43 -0
- package/official-apps/aiworker-hr/src/ui/candidate-screen-preview.tsx +2 -0
- package/official-apps/aiworker-hr/src/ui/hr-route.tsx +1 -0
- package/official-apps/aiworker-hr/src/ui/people-widget.tsx +1 -0
- package/official-apps/aiworker-hr/src/ui/person-profile-preview.tsx +2 -0
- package/official-apps/aiworker-hr/src/ui/profile-panel.tsx +1 -0
- package/official-apps/aiworker-hr/src/ui/review-panel.tsx +1 -0
- package/official-apps/aiworker-hr/tsconfig.json +20 -0
- package/official-apps/aiworker-qa/README.md +14 -0
- package/official-apps/aiworker-qa/capabilities/regression-matrix/prompt.md +3 -0
- package/official-apps/aiworker-qa/capabilities/regression-matrix/review.md +5 -0
- package/official-apps/aiworker-qa/capabilities/release-gate/prompt.md +3 -0
- package/official-apps/aiworker-qa/capabilities/release-gate/review.md +5 -0
- package/official-apps/aiworker-qa/dist/host-mounted.js +15655 -0
- package/official-apps/aiworker-qa/dist/index.js +15395 -0
- package/official-apps/aiworker-qa/dist/standalone.js +15435 -0
- package/official-apps/aiworker-qa/migrations/0001_qa.sql +2 -0
- package/official-apps/aiworker-qa/package.json +31 -0
- package/official-apps/aiworker-qa/packs/qa-reviewer/SOUL.md +7 -0
- package/official-apps/aiworker-qa/review/regression-matrix.md +5 -0
- package/official-apps/aiworker-qa/review/release-gate.md +5 -0
- package/official-apps/aiworker-qa/schemas/regression-matrix.schema.json +50 -0
- package/official-apps/aiworker-qa/schemas/release-gate.schema.json +50 -0
- package/official-apps/aiworker-qa/soul-app.manifest.json +356 -0
- package/official-apps/aiworker-qa/src/api.ts +1 -0
- package/official-apps/aiworker-qa/src/host-mounted.ts +302 -0
- package/official-apps/aiworker-qa/src/index.ts +152 -0
- package/official-apps/aiworker-qa/src/protocol/artifact.ts +2 -0
- package/official-apps/aiworker-qa/src/protocol/connectors.ts +2 -0
- package/official-apps/aiworker-qa/src/protocol/lifecycle.ts +2 -0
- package/official-apps/aiworker-qa/src/protocol/review.ts +2 -0
- package/official-apps/aiworker-qa/src/protocol/runtime.ts +2 -0
- package/official-apps/aiworker-qa/src/protocol/ui.ts +2 -0
- package/official-apps/aiworker-qa/src/standalone.ts +43 -0
- package/official-apps/aiworker-qa/src/ui/qa-route.tsx +1 -0
- package/official-apps/aiworker-qa/src/ui/regression-matrix-preview.tsx +2 -0
- package/official-apps/aiworker-qa/src/ui/release-gate-preview.tsx +2 -0
- package/official-apps/aiworker-qa/src/ui/release-panel.tsx +1 -0
- package/official-apps/aiworker-qa/src/ui/release-review-panel.tsx +1 -0
- package/official-apps/aiworker-qa/src/ui/release-widget.tsx +1 -0
- package/official-apps/aiworker-qa/src/ui/review-panel.tsx +1 -0
- package/official-apps/aiworker-qa/tsconfig.json +20 -0
- package/package.json +5 -4
- package/web/worker/assets/index-ByOwFiyz.js +18 -0
- package/web/worker/assets/index-K-y56wrL.css +2 -0
- package/web/worker/assets/markdown-preview-DFe-rfff.js +29 -0
- package/web/worker/assets/people-workbench-V1Ajqfzv.js +1 -0
- package/web/worker/engine-icons/claude.svg +1 -0
- package/web/worker/engine-icons/cursor.svg +1 -0
- package/web/worker/engine-icons/gemini.svg +1 -0
- package/web/worker/engine-icons/hermesagent.svg +1 -0
- package/web/worker/engine-icons/openai.svg +1 -0
- package/web/worker/engine-icons/opencode.svg +1 -0
- package/web/worker/engine-icons/qwen.svg +1 -0
- package/web/worker/fonts/inter-latin-wght-normal.woff2 +0 -0
- package/web/worker/fonts/jetbrains-mono-latin-wght-normal.woff2 +0 -0
- package/web/worker/fonts/nunito-latin-wght-normal.woff2 +0 -0
- package/web/worker/index.html +8 -4
- package/web/worker/logo.svg +8 -0
- package/drizzle/fleet/0000_fine_havok.sql +0 -23
- package/drizzle/fleet/meta/0000_snapshot.json +0 -165
- package/drizzle/fleet/meta/_journal.json +0 -13
- package/drizzle/worker/0000_spooky_kat_farrell.sql +0 -112
- package/drizzle/worker/0001_secret_dagger.sql +0 -1
- package/drizzle/worker/0002_jazzy_moondragon.sql +0 -13
- package/drizzle/worker/0003_rare_cloak.sql +0 -7
- package/drizzle/worker/0004_daffy_thing.sql +0 -26
- package/drizzle/worker/0005_worthless_whiplash.sql +0 -20
- package/drizzle/worker/0006_fair_jetstream.sql +0 -34
- package/drizzle/worker/0007_solid_bromley.sql +0 -11
- package/drizzle/worker/0008_peaceful_titanium_man.sql +0 -14
- package/drizzle/worker/meta/0003_snapshot.json +0 -873
- package/drizzle/worker/meta/0004_snapshot.json +0 -1058
- package/drizzle/worker/meta/0005_snapshot.json +0 -1192
- package/drizzle/worker/meta/0006_snapshot.json +0 -1420
- package/drizzle/worker/meta/0007_snapshot.json +0 -1489
- package/drizzle/worker/meta/0008_snapshot.json +0 -1593
- package/web/fleet/assets/index-BTknRPEg.js +0 -1372
- package/web/fleet/assets/index-lu-9OhC0.css +0 -2
- package/web/fleet/favicon.svg +0 -4
- package/web/fleet/index.html +0 -14
- package/web/worker/assets/index-DuxsPbd7.js +0 -1382
- package/web/worker/assets/index-lu-9OhC0.css +0 -2
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": "6",
|
|
3
3
|
"dialect": "sqlite",
|
|
4
|
-
"id": "
|
|
4
|
+
"id": "980f0ad5-8c76-43b5-b981-7773c4963cdc",
|
|
5
5
|
"prevId": "00000000-0000-0000-0000-000000000000",
|
|
6
6
|
"tables": {
|
|
7
|
-
"
|
|
8
|
-
"name": "
|
|
7
|
+
"artifacts": {
|
|
8
|
+
"name": "artifacts",
|
|
9
9
|
"columns": {
|
|
10
10
|
"id": {
|
|
11
11
|
"name": "id",
|
|
@@ -14,64 +14,172 @@
|
|
|
14
14
|
"notNull": true,
|
|
15
15
|
"autoincrement": false
|
|
16
16
|
},
|
|
17
|
-
"
|
|
18
|
-
"name": "
|
|
17
|
+
"workspace_id": {
|
|
18
|
+
"name": "workspace_id",
|
|
19
19
|
"type": "text",
|
|
20
20
|
"primaryKey": false,
|
|
21
21
|
"notNull": true,
|
|
22
22
|
"autoincrement": false
|
|
23
23
|
},
|
|
24
|
-
"
|
|
25
|
-
"name": "
|
|
24
|
+
"session_id": {
|
|
25
|
+
"name": "session_id",
|
|
26
26
|
"type": "text",
|
|
27
27
|
"primaryKey": false,
|
|
28
|
-
"notNull":
|
|
28
|
+
"notNull": false,
|
|
29
29
|
"autoincrement": false
|
|
30
30
|
},
|
|
31
|
-
"
|
|
32
|
-
"name": "
|
|
31
|
+
"turn_id": {
|
|
32
|
+
"name": "turn_id",
|
|
33
33
|
"type": "text",
|
|
34
34
|
"primaryKey": false,
|
|
35
35
|
"notNull": false,
|
|
36
36
|
"autoincrement": false
|
|
37
37
|
},
|
|
38
|
-
"
|
|
39
|
-
"name": "
|
|
38
|
+
"invocation_id": {
|
|
39
|
+
"name": "invocation_id",
|
|
40
|
+
"type": "text",
|
|
41
|
+
"primaryKey": false,
|
|
42
|
+
"notNull": false,
|
|
43
|
+
"autoincrement": false
|
|
44
|
+
},
|
|
45
|
+
"path": {
|
|
46
|
+
"name": "path",
|
|
40
47
|
"type": "text",
|
|
41
48
|
"primaryKey": false,
|
|
42
49
|
"notNull": true,
|
|
43
50
|
"autoincrement": false
|
|
44
51
|
},
|
|
45
|
-
"
|
|
46
|
-
"name": "
|
|
52
|
+
"kind": {
|
|
53
|
+
"name": "kind",
|
|
47
54
|
"type": "text",
|
|
48
55
|
"primaryKey": false,
|
|
49
|
-
"notNull":
|
|
56
|
+
"notNull": true,
|
|
57
|
+
"autoincrement": false,
|
|
58
|
+
"default": "'file'"
|
|
59
|
+
},
|
|
60
|
+
"title": {
|
|
61
|
+
"name": "title",
|
|
62
|
+
"type": "text",
|
|
63
|
+
"primaryKey": false,
|
|
64
|
+
"notNull": true,
|
|
50
65
|
"autoincrement": false
|
|
51
66
|
},
|
|
52
|
-
"
|
|
53
|
-
"name": "
|
|
67
|
+
"status": {
|
|
68
|
+
"name": "status",
|
|
54
69
|
"type": "text",
|
|
55
70
|
"primaryKey": false,
|
|
56
|
-
"notNull":
|
|
71
|
+
"notNull": true,
|
|
72
|
+
"autoincrement": false,
|
|
73
|
+
"default": "'available'"
|
|
74
|
+
},
|
|
75
|
+
"metadata_json": {
|
|
76
|
+
"name": "metadata_json",
|
|
77
|
+
"type": "text",
|
|
78
|
+
"primaryKey": false,
|
|
79
|
+
"notNull": true,
|
|
57
80
|
"autoincrement": false
|
|
58
81
|
},
|
|
59
|
-
"
|
|
60
|
-
"name": "
|
|
82
|
+
"created_at": {
|
|
83
|
+
"name": "created_at",
|
|
61
84
|
"type": "text",
|
|
62
85
|
"primaryKey": false,
|
|
63
|
-
"notNull":
|
|
86
|
+
"notNull": true,
|
|
87
|
+
"autoincrement": false
|
|
88
|
+
},
|
|
89
|
+
"updated_at": {
|
|
90
|
+
"name": "updated_at",
|
|
91
|
+
"type": "text",
|
|
92
|
+
"primaryKey": false,
|
|
93
|
+
"notNull": true,
|
|
64
94
|
"autoincrement": false
|
|
65
95
|
}
|
|
66
96
|
},
|
|
67
|
-
"indexes": {
|
|
68
|
-
|
|
97
|
+
"indexes": {
|
|
98
|
+
"artifacts_session_updated_at_idx": {
|
|
99
|
+
"name": "artifacts_session_updated_at_idx",
|
|
100
|
+
"columns": [
|
|
101
|
+
"session_id",
|
|
102
|
+
"updated_at"
|
|
103
|
+
],
|
|
104
|
+
"isUnique": false
|
|
105
|
+
},
|
|
106
|
+
"artifacts_status_updated_at_idx": {
|
|
107
|
+
"name": "artifacts_status_updated_at_idx",
|
|
108
|
+
"columns": [
|
|
109
|
+
"status",
|
|
110
|
+
"updated_at"
|
|
111
|
+
],
|
|
112
|
+
"isUnique": false
|
|
113
|
+
},
|
|
114
|
+
"artifacts_workspace_updated_at_idx": {
|
|
115
|
+
"name": "artifacts_workspace_updated_at_idx",
|
|
116
|
+
"columns": [
|
|
117
|
+
"workspace_id",
|
|
118
|
+
"updated_at"
|
|
119
|
+
],
|
|
120
|
+
"isUnique": false
|
|
121
|
+
}
|
|
122
|
+
},
|
|
123
|
+
"foreignKeys": {
|
|
124
|
+
"artifacts_workspace_id_workspaces_id_fk": {
|
|
125
|
+
"name": "artifacts_workspace_id_workspaces_id_fk",
|
|
126
|
+
"tableFrom": "artifacts",
|
|
127
|
+
"tableTo": "workspaces",
|
|
128
|
+
"columnsFrom": [
|
|
129
|
+
"workspace_id"
|
|
130
|
+
],
|
|
131
|
+
"columnsTo": [
|
|
132
|
+
"id"
|
|
133
|
+
],
|
|
134
|
+
"onDelete": "cascade",
|
|
135
|
+
"onUpdate": "no action"
|
|
136
|
+
},
|
|
137
|
+
"artifacts_session_id_sessions_id_fk": {
|
|
138
|
+
"name": "artifacts_session_id_sessions_id_fk",
|
|
139
|
+
"tableFrom": "artifacts",
|
|
140
|
+
"tableTo": "sessions",
|
|
141
|
+
"columnsFrom": [
|
|
142
|
+
"session_id"
|
|
143
|
+
],
|
|
144
|
+
"columnsTo": [
|
|
145
|
+
"id"
|
|
146
|
+
],
|
|
147
|
+
"onDelete": "set null",
|
|
148
|
+
"onUpdate": "no action"
|
|
149
|
+
},
|
|
150
|
+
"artifacts_turn_id_turns_id_fk": {
|
|
151
|
+
"name": "artifacts_turn_id_turns_id_fk",
|
|
152
|
+
"tableFrom": "artifacts",
|
|
153
|
+
"tableTo": "turns",
|
|
154
|
+
"columnsFrom": [
|
|
155
|
+
"turn_id"
|
|
156
|
+
],
|
|
157
|
+
"columnsTo": [
|
|
158
|
+
"id"
|
|
159
|
+
],
|
|
160
|
+
"onDelete": "set null",
|
|
161
|
+
"onUpdate": "no action"
|
|
162
|
+
},
|
|
163
|
+
"artifacts_invocation_id_engine_invocations_id_fk": {
|
|
164
|
+
"name": "artifacts_invocation_id_engine_invocations_id_fk",
|
|
165
|
+
"tableFrom": "artifacts",
|
|
166
|
+
"tableTo": "engine_invocations",
|
|
167
|
+
"columnsFrom": [
|
|
168
|
+
"invocation_id"
|
|
169
|
+
],
|
|
170
|
+
"columnsTo": [
|
|
171
|
+
"id"
|
|
172
|
+
],
|
|
173
|
+
"onDelete": "set null",
|
|
174
|
+
"onUpdate": "no action"
|
|
175
|
+
}
|
|
176
|
+
},
|
|
69
177
|
"compositePrimaryKeys": {},
|
|
70
178
|
"uniqueConstraints": {},
|
|
71
179
|
"checkConstraints": {}
|
|
72
180
|
},
|
|
73
|
-
"
|
|
74
|
-
"name": "
|
|
181
|
+
"engine_invocations": {
|
|
182
|
+
"name": "engine_invocations",
|
|
75
183
|
"columns": {
|
|
76
184
|
"id": {
|
|
77
185
|
"name": "id",
|
|
@@ -80,29 +188,36 @@
|
|
|
80
188
|
"notNull": true,
|
|
81
189
|
"autoincrement": false
|
|
82
190
|
},
|
|
83
|
-
"
|
|
84
|
-
"name": "
|
|
191
|
+
"session_id": {
|
|
192
|
+
"name": "session_id",
|
|
85
193
|
"type": "text",
|
|
86
194
|
"primaryKey": false,
|
|
87
|
-
"notNull":
|
|
195
|
+
"notNull": true,
|
|
88
196
|
"autoincrement": false
|
|
89
197
|
},
|
|
90
|
-
"
|
|
91
|
-
"name": "
|
|
198
|
+
"turn_id": {
|
|
199
|
+
"name": "turn_id",
|
|
92
200
|
"type": "text",
|
|
93
201
|
"primaryKey": false,
|
|
94
202
|
"notNull": true,
|
|
95
203
|
"autoincrement": false
|
|
96
204
|
},
|
|
97
|
-
"
|
|
98
|
-
"name": "
|
|
205
|
+
"seq": {
|
|
206
|
+
"name": "seq",
|
|
207
|
+
"type": "integer",
|
|
208
|
+
"primaryKey": false,
|
|
209
|
+
"notNull": true,
|
|
210
|
+
"autoincrement": false
|
|
211
|
+
},
|
|
212
|
+
"engine_id": {
|
|
213
|
+
"name": "engine_id",
|
|
99
214
|
"type": "text",
|
|
100
215
|
"primaryKey": false,
|
|
101
216
|
"notNull": true,
|
|
102
217
|
"autoincrement": false
|
|
103
218
|
},
|
|
104
|
-
"
|
|
105
|
-
"name": "
|
|
219
|
+
"engine_command": {
|
|
220
|
+
"name": "engine_command",
|
|
106
221
|
"type": "text",
|
|
107
222
|
"primaryKey": false,
|
|
108
223
|
"notNull": false,
|
|
@@ -114,7 +229,14 @@
|
|
|
114
229
|
"primaryKey": false,
|
|
115
230
|
"notNull": true,
|
|
116
231
|
"autoincrement": false,
|
|
117
|
-
"default": "'
|
|
232
|
+
"default": "'queued'"
|
|
233
|
+
},
|
|
234
|
+
"prompt": {
|
|
235
|
+
"name": "prompt",
|
|
236
|
+
"type": "text",
|
|
237
|
+
"primaryKey": false,
|
|
238
|
+
"notNull": true,
|
|
239
|
+
"autoincrement": false
|
|
118
240
|
},
|
|
119
241
|
"summary": {
|
|
120
242
|
"name": "summary",
|
|
@@ -123,41 +245,107 @@
|
|
|
123
245
|
"notNull": false,
|
|
124
246
|
"autoincrement": false
|
|
125
247
|
},
|
|
248
|
+
"error": {
|
|
249
|
+
"name": "error",
|
|
250
|
+
"type": "text",
|
|
251
|
+
"primaryKey": false,
|
|
252
|
+
"notNull": false,
|
|
253
|
+
"autoincrement": false
|
|
254
|
+
},
|
|
255
|
+
"metadata_json": {
|
|
256
|
+
"name": "metadata_json",
|
|
257
|
+
"type": "text",
|
|
258
|
+
"primaryKey": false,
|
|
259
|
+
"notNull": true,
|
|
260
|
+
"autoincrement": false
|
|
261
|
+
},
|
|
126
262
|
"started_at": {
|
|
127
263
|
"name": "started_at",
|
|
128
264
|
"type": "text",
|
|
129
265
|
"primaryKey": false,
|
|
130
|
-
"notNull":
|
|
266
|
+
"notNull": false,
|
|
131
267
|
"autoincrement": false
|
|
132
268
|
},
|
|
133
|
-
"
|
|
134
|
-
"name": "
|
|
269
|
+
"finished_at": {
|
|
270
|
+
"name": "finished_at",
|
|
271
|
+
"type": "text",
|
|
272
|
+
"primaryKey": false,
|
|
273
|
+
"notNull": false,
|
|
274
|
+
"autoincrement": false
|
|
275
|
+
},
|
|
276
|
+
"created_at": {
|
|
277
|
+
"name": "created_at",
|
|
135
278
|
"type": "text",
|
|
136
279
|
"primaryKey": false,
|
|
137
280
|
"notNull": true,
|
|
138
281
|
"autoincrement": false
|
|
139
282
|
},
|
|
140
|
-
"
|
|
141
|
-
"name": "
|
|
283
|
+
"updated_at": {
|
|
284
|
+
"name": "updated_at",
|
|
142
285
|
"type": "text",
|
|
143
286
|
"primaryKey": false,
|
|
144
|
-
"notNull":
|
|
287
|
+
"notNull": true,
|
|
145
288
|
"autoincrement": false
|
|
146
289
|
}
|
|
147
290
|
},
|
|
148
|
-
"indexes": {
|
|
291
|
+
"indexes": {
|
|
292
|
+
"engine_invocations_engine_updated_at_idx": {
|
|
293
|
+
"name": "engine_invocations_engine_updated_at_idx",
|
|
294
|
+
"columns": [
|
|
295
|
+
"engine_id",
|
|
296
|
+
"updated_at"
|
|
297
|
+
],
|
|
298
|
+
"isUnique": false
|
|
299
|
+
},
|
|
300
|
+
"engine_invocations_session_seq_idx": {
|
|
301
|
+
"name": "engine_invocations_session_seq_idx",
|
|
302
|
+
"columns": [
|
|
303
|
+
"session_id",
|
|
304
|
+
"seq"
|
|
305
|
+
],
|
|
306
|
+
"isUnique": false
|
|
307
|
+
},
|
|
308
|
+
"engine_invocations_status_updated_at_idx": {
|
|
309
|
+
"name": "engine_invocations_status_updated_at_idx",
|
|
310
|
+
"columns": [
|
|
311
|
+
"status",
|
|
312
|
+
"updated_at"
|
|
313
|
+
],
|
|
314
|
+
"isUnique": false
|
|
315
|
+
},
|
|
316
|
+
"engine_invocations_turn_idx": {
|
|
317
|
+
"name": "engine_invocations_turn_idx",
|
|
318
|
+
"columns": [
|
|
319
|
+
"turn_id"
|
|
320
|
+
],
|
|
321
|
+
"isUnique": false
|
|
322
|
+
}
|
|
323
|
+
},
|
|
149
324
|
"foreignKeys": {
|
|
150
|
-
"
|
|
151
|
-
"name": "
|
|
152
|
-
"tableFrom": "
|
|
153
|
-
"tableTo": "
|
|
325
|
+
"engine_invocations_session_id_sessions_id_fk": {
|
|
326
|
+
"name": "engine_invocations_session_id_sessions_id_fk",
|
|
327
|
+
"tableFrom": "engine_invocations",
|
|
328
|
+
"tableTo": "sessions",
|
|
154
329
|
"columnsFrom": [
|
|
155
|
-
"
|
|
330
|
+
"session_id"
|
|
156
331
|
],
|
|
157
332
|
"columnsTo": [
|
|
158
333
|
"id"
|
|
159
334
|
],
|
|
160
|
-
"onDelete": "
|
|
335
|
+
"onDelete": "cascade",
|
|
336
|
+
"onUpdate": "no action"
|
|
337
|
+
},
|
|
338
|
+
"engine_invocations_turn_id_turns_id_fk": {
|
|
339
|
+
"name": "engine_invocations_turn_id_turns_id_fk",
|
|
340
|
+
"tableFrom": "engine_invocations",
|
|
341
|
+
"tableTo": "turns",
|
|
342
|
+
"columnsFrom": [
|
|
343
|
+
"turn_id"
|
|
344
|
+
],
|
|
345
|
+
"columnsTo": [
|
|
346
|
+
"id"
|
|
347
|
+
],
|
|
348
|
+
"onDelete": "cascade",
|
|
161
349
|
"onUpdate": "no action"
|
|
162
350
|
}
|
|
163
351
|
},
|
|
@@ -165,21 +353,28 @@
|
|
|
165
353
|
"uniqueConstraints": {},
|
|
166
354
|
"checkConstraints": {}
|
|
167
355
|
},
|
|
168
|
-
"
|
|
169
|
-
"name": "
|
|
356
|
+
"files": {
|
|
357
|
+
"name": "files",
|
|
170
358
|
"columns": {
|
|
171
359
|
"id": {
|
|
172
360
|
"name": "id",
|
|
173
|
-
"type": "
|
|
361
|
+
"type": "text",
|
|
174
362
|
"primaryKey": true,
|
|
175
363
|
"notNull": true,
|
|
176
|
-
"autoincrement":
|
|
364
|
+
"autoincrement": false
|
|
177
365
|
},
|
|
178
|
-
"
|
|
179
|
-
"name": "
|
|
366
|
+
"workspace_id": {
|
|
367
|
+
"name": "workspace_id",
|
|
180
368
|
"type": "text",
|
|
181
369
|
"primaryKey": false,
|
|
182
|
-
"notNull":
|
|
370
|
+
"notNull": true,
|
|
371
|
+
"autoincrement": false
|
|
372
|
+
},
|
|
373
|
+
"path": {
|
|
374
|
+
"name": "path",
|
|
375
|
+
"type": "text",
|
|
376
|
+
"primaryKey": false,
|
|
377
|
+
"notNull": true,
|
|
183
378
|
"autoincrement": false
|
|
184
379
|
},
|
|
185
380
|
"kind": {
|
|
@@ -187,74 +382,268 @@
|
|
|
187
382
|
"type": "text",
|
|
188
383
|
"primaryKey": false,
|
|
189
384
|
"notNull": true,
|
|
385
|
+
"autoincrement": false,
|
|
386
|
+
"default": "'file'"
|
|
387
|
+
},
|
|
388
|
+
"size": {
|
|
389
|
+
"name": "size",
|
|
390
|
+
"type": "integer",
|
|
391
|
+
"primaryKey": false,
|
|
392
|
+
"notNull": false,
|
|
190
393
|
"autoincrement": false
|
|
191
394
|
},
|
|
192
|
-
"
|
|
193
|
-
"name": "
|
|
395
|
+
"mtime": {
|
|
396
|
+
"name": "mtime",
|
|
397
|
+
"type": "integer",
|
|
398
|
+
"primaryKey": false,
|
|
399
|
+
"notNull": false,
|
|
400
|
+
"autoincrement": false
|
|
401
|
+
},
|
|
402
|
+
"hash": {
|
|
403
|
+
"name": "hash",
|
|
404
|
+
"type": "text",
|
|
405
|
+
"primaryKey": false,
|
|
406
|
+
"notNull": false,
|
|
407
|
+
"autoincrement": false
|
|
408
|
+
},
|
|
409
|
+
"source": {
|
|
410
|
+
"name": "source",
|
|
411
|
+
"type": "text",
|
|
412
|
+
"primaryKey": false,
|
|
413
|
+
"notNull": true,
|
|
414
|
+
"autoincrement": false,
|
|
415
|
+
"default": "'user'"
|
|
416
|
+
},
|
|
417
|
+
"created_at": {
|
|
418
|
+
"name": "created_at",
|
|
194
419
|
"type": "text",
|
|
195
420
|
"primaryKey": false,
|
|
196
421
|
"notNull": true,
|
|
197
422
|
"autoincrement": false
|
|
198
423
|
},
|
|
199
|
-
"
|
|
200
|
-
"name": "
|
|
424
|
+
"updated_at": {
|
|
425
|
+
"name": "updated_at",
|
|
201
426
|
"type": "text",
|
|
202
427
|
"primaryKey": false,
|
|
203
428
|
"notNull": true,
|
|
204
429
|
"autoincrement": false
|
|
205
430
|
}
|
|
206
431
|
},
|
|
207
|
-
"indexes": {
|
|
208
|
-
|
|
432
|
+
"indexes": {
|
|
433
|
+
"files_kind_idx": {
|
|
434
|
+
"name": "files_kind_idx",
|
|
435
|
+
"columns": [
|
|
436
|
+
"kind"
|
|
437
|
+
],
|
|
438
|
+
"isUnique": false
|
|
439
|
+
},
|
|
440
|
+
"files_workspace_path_idx": {
|
|
441
|
+
"name": "files_workspace_path_idx",
|
|
442
|
+
"columns": [
|
|
443
|
+
"workspace_id",
|
|
444
|
+
"path"
|
|
445
|
+
],
|
|
446
|
+
"isUnique": false
|
|
447
|
+
},
|
|
448
|
+
"files_workspace_updated_at_idx": {
|
|
449
|
+
"name": "files_workspace_updated_at_idx",
|
|
450
|
+
"columns": [
|
|
451
|
+
"workspace_id",
|
|
452
|
+
"updated_at"
|
|
453
|
+
],
|
|
454
|
+
"isUnique": false
|
|
455
|
+
}
|
|
456
|
+
},
|
|
457
|
+
"foreignKeys": {
|
|
458
|
+
"files_workspace_id_workspaces_id_fk": {
|
|
459
|
+
"name": "files_workspace_id_workspaces_id_fk",
|
|
460
|
+
"tableFrom": "files",
|
|
461
|
+
"tableTo": "workspaces",
|
|
462
|
+
"columnsFrom": [
|
|
463
|
+
"workspace_id"
|
|
464
|
+
],
|
|
465
|
+
"columnsTo": [
|
|
466
|
+
"id"
|
|
467
|
+
],
|
|
468
|
+
"onDelete": "cascade",
|
|
469
|
+
"onUpdate": "no action"
|
|
470
|
+
}
|
|
471
|
+
},
|
|
209
472
|
"compositePrimaryKeys": {},
|
|
210
473
|
"uniqueConstraints": {},
|
|
211
474
|
"checkConstraints": {}
|
|
212
475
|
},
|
|
213
|
-
"
|
|
214
|
-
"name": "
|
|
476
|
+
"lessons": {
|
|
477
|
+
"name": "lessons",
|
|
215
478
|
"columns": {
|
|
216
479
|
"id": {
|
|
217
480
|
"name": "id",
|
|
218
|
-
"type": "
|
|
481
|
+
"type": "text",
|
|
219
482
|
"primaryKey": true,
|
|
220
483
|
"notNull": true,
|
|
221
|
-
"autoincrement":
|
|
484
|
+
"autoincrement": false
|
|
485
|
+
},
|
|
486
|
+
"workspace_id": {
|
|
487
|
+
"name": "workspace_id",
|
|
488
|
+
"type": "text",
|
|
489
|
+
"primaryKey": false,
|
|
490
|
+
"notNull": true,
|
|
491
|
+
"autoincrement": false
|
|
222
492
|
},
|
|
223
|
-
"
|
|
224
|
-
"name": "
|
|
493
|
+
"source_review_id": {
|
|
494
|
+
"name": "source_review_id",
|
|
225
495
|
"type": "text",
|
|
226
496
|
"primaryKey": false,
|
|
227
497
|
"notNull": false,
|
|
228
498
|
"autoincrement": false
|
|
229
499
|
},
|
|
230
|
-
"
|
|
231
|
-
"name": "
|
|
500
|
+
"statement": {
|
|
501
|
+
"name": "statement",
|
|
502
|
+
"type": "text",
|
|
503
|
+
"primaryKey": false,
|
|
504
|
+
"notNull": true,
|
|
505
|
+
"autoincrement": false
|
|
506
|
+
},
|
|
507
|
+
"evidence_json": {
|
|
508
|
+
"name": "evidence_json",
|
|
509
|
+
"type": "text",
|
|
510
|
+
"primaryKey": false,
|
|
511
|
+
"notNull": true,
|
|
512
|
+
"autoincrement": false
|
|
513
|
+
},
|
|
514
|
+
"status": {
|
|
515
|
+
"name": "status",
|
|
516
|
+
"type": "text",
|
|
517
|
+
"primaryKey": false,
|
|
518
|
+
"notNull": true,
|
|
519
|
+
"autoincrement": false,
|
|
520
|
+
"default": "'proposed'"
|
|
521
|
+
},
|
|
522
|
+
"created_at": {
|
|
523
|
+
"name": "created_at",
|
|
524
|
+
"type": "text",
|
|
525
|
+
"primaryKey": false,
|
|
526
|
+
"notNull": true,
|
|
527
|
+
"autoincrement": false
|
|
528
|
+
},
|
|
529
|
+
"updated_at": {
|
|
530
|
+
"name": "updated_at",
|
|
531
|
+
"type": "text",
|
|
532
|
+
"primaryKey": false,
|
|
533
|
+
"notNull": true,
|
|
534
|
+
"autoincrement": false
|
|
535
|
+
}
|
|
536
|
+
},
|
|
537
|
+
"indexes": {
|
|
538
|
+
"lessons_status_updated_at_idx": {
|
|
539
|
+
"name": "lessons_status_updated_at_idx",
|
|
540
|
+
"columns": [
|
|
541
|
+
"status",
|
|
542
|
+
"updated_at"
|
|
543
|
+
],
|
|
544
|
+
"isUnique": false
|
|
545
|
+
},
|
|
546
|
+
"lessons_workspace_updated_at_idx": {
|
|
547
|
+
"name": "lessons_workspace_updated_at_idx",
|
|
548
|
+
"columns": [
|
|
549
|
+
"workspace_id",
|
|
550
|
+
"updated_at"
|
|
551
|
+
],
|
|
552
|
+
"isUnique": false
|
|
553
|
+
}
|
|
554
|
+
},
|
|
555
|
+
"foreignKeys": {
|
|
556
|
+
"lessons_workspace_id_workspaces_id_fk": {
|
|
557
|
+
"name": "lessons_workspace_id_workspaces_id_fk",
|
|
558
|
+
"tableFrom": "lessons",
|
|
559
|
+
"tableTo": "workspaces",
|
|
560
|
+
"columnsFrom": [
|
|
561
|
+
"workspace_id"
|
|
562
|
+
],
|
|
563
|
+
"columnsTo": [
|
|
564
|
+
"id"
|
|
565
|
+
],
|
|
566
|
+
"onDelete": "cascade",
|
|
567
|
+
"onUpdate": "no action"
|
|
568
|
+
},
|
|
569
|
+
"lessons_source_review_id_reviews_id_fk": {
|
|
570
|
+
"name": "lessons_source_review_id_reviews_id_fk",
|
|
571
|
+
"tableFrom": "lessons",
|
|
572
|
+
"tableTo": "reviews",
|
|
573
|
+
"columnsFrom": [
|
|
574
|
+
"source_review_id"
|
|
575
|
+
],
|
|
576
|
+
"columnsTo": [
|
|
577
|
+
"id"
|
|
578
|
+
],
|
|
579
|
+
"onDelete": "set null",
|
|
580
|
+
"onUpdate": "no action"
|
|
581
|
+
}
|
|
582
|
+
},
|
|
583
|
+
"compositePrimaryKeys": {},
|
|
584
|
+
"uniqueConstraints": {},
|
|
585
|
+
"checkConstraints": {}
|
|
586
|
+
},
|
|
587
|
+
"reviews": {
|
|
588
|
+
"name": "reviews",
|
|
589
|
+
"columns": {
|
|
590
|
+
"id": {
|
|
591
|
+
"name": "id",
|
|
592
|
+
"type": "text",
|
|
593
|
+
"primaryKey": true,
|
|
594
|
+
"notNull": true,
|
|
595
|
+
"autoincrement": false
|
|
596
|
+
},
|
|
597
|
+
"workspace_id": {
|
|
598
|
+
"name": "workspace_id",
|
|
232
599
|
"type": "text",
|
|
233
600
|
"primaryKey": false,
|
|
234
601
|
"notNull": true,
|
|
235
602
|
"autoincrement": false
|
|
236
603
|
},
|
|
237
|
-
"
|
|
238
|
-
"name": "
|
|
604
|
+
"session_id": {
|
|
605
|
+
"name": "session_id",
|
|
239
606
|
"type": "text",
|
|
240
607
|
"primaryKey": false,
|
|
241
608
|
"notNull": false,
|
|
242
609
|
"autoincrement": false
|
|
243
610
|
},
|
|
244
|
-
"
|
|
245
|
-
"name": "
|
|
611
|
+
"turn_id": {
|
|
612
|
+
"name": "turn_id",
|
|
246
613
|
"type": "text",
|
|
247
614
|
"primaryKey": false,
|
|
248
615
|
"notNull": false,
|
|
249
616
|
"autoincrement": false
|
|
250
617
|
},
|
|
251
|
-
"
|
|
252
|
-
"name": "
|
|
253
|
-
"type": "
|
|
618
|
+
"artifact_id": {
|
|
619
|
+
"name": "artifact_id",
|
|
620
|
+
"type": "text",
|
|
254
621
|
"primaryKey": false,
|
|
255
622
|
"notNull": false,
|
|
256
623
|
"autoincrement": false
|
|
257
624
|
},
|
|
625
|
+
"verdict": {
|
|
626
|
+
"name": "verdict",
|
|
627
|
+
"type": "text",
|
|
628
|
+
"primaryKey": false,
|
|
629
|
+
"notNull": true,
|
|
630
|
+
"autoincrement": false,
|
|
631
|
+
"default": "'needs_review'"
|
|
632
|
+
},
|
|
633
|
+
"findings_json": {
|
|
634
|
+
"name": "findings_json",
|
|
635
|
+
"type": "text",
|
|
636
|
+
"primaryKey": false,
|
|
637
|
+
"notNull": true,
|
|
638
|
+
"autoincrement": false
|
|
639
|
+
},
|
|
640
|
+
"risks_json": {
|
|
641
|
+
"name": "risks_json",
|
|
642
|
+
"type": "text",
|
|
643
|
+
"primaryKey": false,
|
|
644
|
+
"notNull": true,
|
|
645
|
+
"autoincrement": false
|
|
646
|
+
},
|
|
258
647
|
"created_at": {
|
|
259
648
|
"name": "created_at",
|
|
260
649
|
"type": "text",
|
|
@@ -263,14 +652,92 @@
|
|
|
263
652
|
"autoincrement": false
|
|
264
653
|
}
|
|
265
654
|
},
|
|
266
|
-
"indexes": {
|
|
267
|
-
|
|
655
|
+
"indexes": {
|
|
656
|
+
"reviews_artifact_created_at_idx": {
|
|
657
|
+
"name": "reviews_artifact_created_at_idx",
|
|
658
|
+
"columns": [
|
|
659
|
+
"artifact_id",
|
|
660
|
+
"created_at"
|
|
661
|
+
],
|
|
662
|
+
"isUnique": false
|
|
663
|
+
},
|
|
664
|
+
"reviews_session_created_at_idx": {
|
|
665
|
+
"name": "reviews_session_created_at_idx",
|
|
666
|
+
"columns": [
|
|
667
|
+
"session_id",
|
|
668
|
+
"created_at"
|
|
669
|
+
],
|
|
670
|
+
"isUnique": false
|
|
671
|
+
},
|
|
672
|
+
"reviews_workspace_created_at_idx": {
|
|
673
|
+
"name": "reviews_workspace_created_at_idx",
|
|
674
|
+
"columns": [
|
|
675
|
+
"workspace_id",
|
|
676
|
+
"created_at"
|
|
677
|
+
],
|
|
678
|
+
"isUnique": false
|
|
679
|
+
}
|
|
680
|
+
},
|
|
681
|
+
"foreignKeys": {
|
|
682
|
+
"reviews_workspace_id_workspaces_id_fk": {
|
|
683
|
+
"name": "reviews_workspace_id_workspaces_id_fk",
|
|
684
|
+
"tableFrom": "reviews",
|
|
685
|
+
"tableTo": "workspaces",
|
|
686
|
+
"columnsFrom": [
|
|
687
|
+
"workspace_id"
|
|
688
|
+
],
|
|
689
|
+
"columnsTo": [
|
|
690
|
+
"id"
|
|
691
|
+
],
|
|
692
|
+
"onDelete": "cascade",
|
|
693
|
+
"onUpdate": "no action"
|
|
694
|
+
},
|
|
695
|
+
"reviews_session_id_sessions_id_fk": {
|
|
696
|
+
"name": "reviews_session_id_sessions_id_fk",
|
|
697
|
+
"tableFrom": "reviews",
|
|
698
|
+
"tableTo": "sessions",
|
|
699
|
+
"columnsFrom": [
|
|
700
|
+
"session_id"
|
|
701
|
+
],
|
|
702
|
+
"columnsTo": [
|
|
703
|
+
"id"
|
|
704
|
+
],
|
|
705
|
+
"onDelete": "set null",
|
|
706
|
+
"onUpdate": "no action"
|
|
707
|
+
},
|
|
708
|
+
"reviews_turn_id_turns_id_fk": {
|
|
709
|
+
"name": "reviews_turn_id_turns_id_fk",
|
|
710
|
+
"tableFrom": "reviews",
|
|
711
|
+
"tableTo": "turns",
|
|
712
|
+
"columnsFrom": [
|
|
713
|
+
"turn_id"
|
|
714
|
+
],
|
|
715
|
+
"columnsTo": [
|
|
716
|
+
"id"
|
|
717
|
+
],
|
|
718
|
+
"onDelete": "set null",
|
|
719
|
+
"onUpdate": "no action"
|
|
720
|
+
},
|
|
721
|
+
"reviews_artifact_id_artifacts_id_fk": {
|
|
722
|
+
"name": "reviews_artifact_id_artifacts_id_fk",
|
|
723
|
+
"tableFrom": "reviews",
|
|
724
|
+
"tableTo": "artifacts",
|
|
725
|
+
"columnsFrom": [
|
|
726
|
+
"artifact_id"
|
|
727
|
+
],
|
|
728
|
+
"columnsTo": [
|
|
729
|
+
"id"
|
|
730
|
+
],
|
|
731
|
+
"onDelete": "set null",
|
|
732
|
+
"onUpdate": "no action"
|
|
733
|
+
}
|
|
734
|
+
},
|
|
268
735
|
"compositePrimaryKeys": {},
|
|
269
736
|
"uniqueConstraints": {},
|
|
270
737
|
"checkConstraints": {}
|
|
271
738
|
},
|
|
272
|
-
"
|
|
273
|
-
"name": "
|
|
739
|
+
"session_events": {
|
|
740
|
+
"name": "session_events",
|
|
274
741
|
"columns": {
|
|
275
742
|
"id": {
|
|
276
743
|
"name": "id",
|
|
@@ -279,51 +746,198 @@
|
|
|
279
746
|
"notNull": true,
|
|
280
747
|
"autoincrement": true
|
|
281
748
|
},
|
|
282
|
-
"
|
|
283
|
-
"name": "
|
|
749
|
+
"session_id": {
|
|
750
|
+
"name": "session_id",
|
|
284
751
|
"type": "text",
|
|
285
752
|
"primaryKey": false,
|
|
286
753
|
"notNull": true,
|
|
287
754
|
"autoincrement": false
|
|
288
755
|
},
|
|
289
|
-
"
|
|
290
|
-
"name": "
|
|
756
|
+
"turn_id": {
|
|
757
|
+
"name": "turn_id",
|
|
291
758
|
"type": "text",
|
|
292
759
|
"primaryKey": false,
|
|
760
|
+
"notNull": false,
|
|
761
|
+
"autoincrement": false
|
|
762
|
+
},
|
|
763
|
+
"invocation_id": {
|
|
764
|
+
"name": "invocation_id",
|
|
765
|
+
"type": "text",
|
|
766
|
+
"primaryKey": false,
|
|
767
|
+
"notNull": false,
|
|
768
|
+
"autoincrement": false
|
|
769
|
+
},
|
|
770
|
+
"seq": {
|
|
771
|
+
"name": "seq",
|
|
772
|
+
"type": "integer",
|
|
773
|
+
"primaryKey": false,
|
|
293
774
|
"notNull": true,
|
|
294
775
|
"autoincrement": false
|
|
295
776
|
},
|
|
296
|
-
"
|
|
297
|
-
"name": "
|
|
777
|
+
"type": {
|
|
778
|
+
"name": "type",
|
|
298
779
|
"type": "text",
|
|
299
780
|
"primaryKey": false,
|
|
300
781
|
"notNull": true,
|
|
301
782
|
"autoincrement": false
|
|
302
783
|
},
|
|
303
|
-
"
|
|
304
|
-
"name": "
|
|
784
|
+
"payload_json": {
|
|
785
|
+
"name": "payload_json",
|
|
305
786
|
"type": "text",
|
|
306
787
|
"primaryKey": false,
|
|
307
|
-
"notNull":
|
|
788
|
+
"notNull": true,
|
|
308
789
|
"autoincrement": false
|
|
309
790
|
},
|
|
310
|
-
"
|
|
311
|
-
"name": "
|
|
791
|
+
"created_at": {
|
|
792
|
+
"name": "created_at",
|
|
312
793
|
"type": "text",
|
|
313
794
|
"primaryKey": false,
|
|
314
|
-
"notNull":
|
|
795
|
+
"notNull": true,
|
|
315
796
|
"autoincrement": false
|
|
797
|
+
}
|
|
798
|
+
},
|
|
799
|
+
"indexes": {
|
|
800
|
+
"session_events_session_created_at_idx": {
|
|
801
|
+
"name": "session_events_session_created_at_idx",
|
|
802
|
+
"columns": [
|
|
803
|
+
"session_id",
|
|
804
|
+
"created_at"
|
|
805
|
+
],
|
|
806
|
+
"isUnique": false
|
|
316
807
|
},
|
|
317
|
-
"
|
|
318
|
-
"name": "
|
|
319
|
-
"
|
|
808
|
+
"session_events_session_seq_idx": {
|
|
809
|
+
"name": "session_events_session_seq_idx",
|
|
810
|
+
"columns": [
|
|
811
|
+
"session_id",
|
|
812
|
+
"seq"
|
|
813
|
+
],
|
|
814
|
+
"isUnique": false
|
|
815
|
+
},
|
|
816
|
+
"session_events_session_seq_unique_idx": {
|
|
817
|
+
"name": "session_events_session_seq_unique_idx",
|
|
818
|
+
"columns": [
|
|
819
|
+
"session_id",
|
|
820
|
+
"seq"
|
|
821
|
+
],
|
|
822
|
+
"isUnique": true
|
|
823
|
+
}
|
|
824
|
+
},
|
|
825
|
+
"foreignKeys": {
|
|
826
|
+
"session_events_session_id_sessions_id_fk": {
|
|
827
|
+
"name": "session_events_session_id_sessions_id_fk",
|
|
828
|
+
"tableFrom": "session_events",
|
|
829
|
+
"tableTo": "sessions",
|
|
830
|
+
"columnsFrom": [
|
|
831
|
+
"session_id"
|
|
832
|
+
],
|
|
833
|
+
"columnsTo": [
|
|
834
|
+
"id"
|
|
835
|
+
],
|
|
836
|
+
"onDelete": "cascade",
|
|
837
|
+
"onUpdate": "no action"
|
|
838
|
+
},
|
|
839
|
+
"session_events_turn_id_turns_id_fk": {
|
|
840
|
+
"name": "session_events_turn_id_turns_id_fk",
|
|
841
|
+
"tableFrom": "session_events",
|
|
842
|
+
"tableTo": "turns",
|
|
843
|
+
"columnsFrom": [
|
|
844
|
+
"turn_id"
|
|
845
|
+
],
|
|
846
|
+
"columnsTo": [
|
|
847
|
+
"id"
|
|
848
|
+
],
|
|
849
|
+
"onDelete": "set null",
|
|
850
|
+
"onUpdate": "no action"
|
|
851
|
+
},
|
|
852
|
+
"session_events_invocation_id_engine_invocations_id_fk": {
|
|
853
|
+
"name": "session_events_invocation_id_engine_invocations_id_fk",
|
|
854
|
+
"tableFrom": "session_events",
|
|
855
|
+
"tableTo": "engine_invocations",
|
|
856
|
+
"columnsFrom": [
|
|
857
|
+
"invocation_id"
|
|
858
|
+
],
|
|
859
|
+
"columnsTo": [
|
|
860
|
+
"id"
|
|
861
|
+
],
|
|
862
|
+
"onDelete": "set null",
|
|
863
|
+
"onUpdate": "no action"
|
|
864
|
+
}
|
|
865
|
+
},
|
|
866
|
+
"compositePrimaryKeys": {},
|
|
867
|
+
"uniqueConstraints": {},
|
|
868
|
+
"checkConstraints": {}
|
|
869
|
+
},
|
|
870
|
+
"sessions": {
|
|
871
|
+
"name": "sessions",
|
|
872
|
+
"columns": {
|
|
873
|
+
"id": {
|
|
874
|
+
"name": "id",
|
|
875
|
+
"type": "text",
|
|
876
|
+
"primaryKey": true,
|
|
877
|
+
"notNull": true,
|
|
878
|
+
"autoincrement": false
|
|
879
|
+
},
|
|
880
|
+
"worker_id": {
|
|
881
|
+
"name": "worker_id",
|
|
882
|
+
"type": "text",
|
|
883
|
+
"primaryKey": false,
|
|
884
|
+
"notNull": true,
|
|
885
|
+
"autoincrement": false
|
|
886
|
+
},
|
|
887
|
+
"workspace_id": {
|
|
888
|
+
"name": "workspace_id",
|
|
889
|
+
"type": "text",
|
|
890
|
+
"primaryKey": false,
|
|
891
|
+
"notNull": true,
|
|
892
|
+
"autoincrement": false
|
|
893
|
+
},
|
|
894
|
+
"capability_template_id": {
|
|
895
|
+
"name": "capability_template_id",
|
|
896
|
+
"type": "text",
|
|
897
|
+
"primaryKey": false,
|
|
898
|
+
"notNull": true,
|
|
899
|
+
"autoincrement": false
|
|
900
|
+
},
|
|
901
|
+
"title": {
|
|
902
|
+
"name": "title",
|
|
903
|
+
"type": "text",
|
|
904
|
+
"primaryKey": false,
|
|
905
|
+
"notNull": true,
|
|
906
|
+
"autoincrement": false
|
|
907
|
+
},
|
|
908
|
+
"context": {
|
|
909
|
+
"name": "context",
|
|
910
|
+
"type": "text",
|
|
911
|
+
"primaryKey": false,
|
|
912
|
+
"notNull": true,
|
|
913
|
+
"autoincrement": false,
|
|
914
|
+
"default": "''"
|
|
915
|
+
},
|
|
916
|
+
"status": {
|
|
917
|
+
"name": "status",
|
|
918
|
+
"type": "text",
|
|
919
|
+
"primaryKey": false,
|
|
920
|
+
"notNull": true,
|
|
921
|
+
"autoincrement": false,
|
|
922
|
+
"default": "'active'"
|
|
923
|
+
},
|
|
924
|
+
"metadata_json": {
|
|
925
|
+
"name": "metadata_json",
|
|
926
|
+
"type": "text",
|
|
927
|
+
"primaryKey": false,
|
|
928
|
+
"notNull": true,
|
|
929
|
+
"autoincrement": false
|
|
930
|
+
},
|
|
931
|
+
"started_at": {
|
|
932
|
+
"name": "started_at",
|
|
933
|
+
"type": "text",
|
|
320
934
|
"primaryKey": false,
|
|
321
935
|
"notNull": false,
|
|
322
936
|
"autoincrement": false
|
|
323
937
|
},
|
|
324
|
-
"
|
|
325
|
-
"name": "
|
|
326
|
-
"type": "
|
|
938
|
+
"ended_at": {
|
|
939
|
+
"name": "ended_at",
|
|
940
|
+
"type": "text",
|
|
327
941
|
"primaryKey": false,
|
|
328
942
|
"notNull": false,
|
|
329
943
|
"autoincrement": false
|
|
@@ -334,16 +948,69 @@
|
|
|
334
948
|
"primaryKey": false,
|
|
335
949
|
"notNull": true,
|
|
336
950
|
"autoincrement": false
|
|
951
|
+
},
|
|
952
|
+
"updated_at": {
|
|
953
|
+
"name": "updated_at",
|
|
954
|
+
"type": "text",
|
|
955
|
+
"primaryKey": false,
|
|
956
|
+
"notNull": true,
|
|
957
|
+
"autoincrement": false
|
|
958
|
+
}
|
|
959
|
+
},
|
|
960
|
+
"indexes": {
|
|
961
|
+
"sessions_capability_updated_at_idx": {
|
|
962
|
+
"name": "sessions_capability_updated_at_idx",
|
|
963
|
+
"columns": [
|
|
964
|
+
"capability_template_id",
|
|
965
|
+
"updated_at"
|
|
966
|
+
],
|
|
967
|
+
"isUnique": false
|
|
968
|
+
},
|
|
969
|
+
"sessions_status_updated_at_idx": {
|
|
970
|
+
"name": "sessions_status_updated_at_idx",
|
|
971
|
+
"columns": [
|
|
972
|
+
"status",
|
|
973
|
+
"updated_at"
|
|
974
|
+
],
|
|
975
|
+
"isUnique": false
|
|
976
|
+
},
|
|
977
|
+
"sessions_worker_updated_at_idx": {
|
|
978
|
+
"name": "sessions_worker_updated_at_idx",
|
|
979
|
+
"columns": [
|
|
980
|
+
"worker_id",
|
|
981
|
+
"updated_at"
|
|
982
|
+
],
|
|
983
|
+
"isUnique": false
|
|
984
|
+
},
|
|
985
|
+
"sessions_workspace_updated_at_idx": {
|
|
986
|
+
"name": "sessions_workspace_updated_at_idx",
|
|
987
|
+
"columns": [
|
|
988
|
+
"workspace_id",
|
|
989
|
+
"updated_at"
|
|
990
|
+
],
|
|
991
|
+
"isUnique": false
|
|
337
992
|
}
|
|
338
993
|
},
|
|
339
|
-
"indexes": {},
|
|
340
994
|
"foreignKeys": {
|
|
341
|
-
"
|
|
342
|
-
"name": "
|
|
343
|
-
"tableFrom": "
|
|
344
|
-
"tableTo": "
|
|
995
|
+
"sessions_worker_id_workers_id_fk": {
|
|
996
|
+
"name": "sessions_worker_id_workers_id_fk",
|
|
997
|
+
"tableFrom": "sessions",
|
|
998
|
+
"tableTo": "workers",
|
|
999
|
+
"columnsFrom": [
|
|
1000
|
+
"worker_id"
|
|
1001
|
+
],
|
|
1002
|
+
"columnsTo": [
|
|
1003
|
+
"id"
|
|
1004
|
+
],
|
|
1005
|
+
"onDelete": "cascade",
|
|
1006
|
+
"onUpdate": "no action"
|
|
1007
|
+
},
|
|
1008
|
+
"sessions_workspace_id_workspaces_id_fk": {
|
|
1009
|
+
"name": "sessions_workspace_id_workspaces_id_fk",
|
|
1010
|
+
"tableFrom": "sessions",
|
|
1011
|
+
"tableTo": "workspaces",
|
|
345
1012
|
"columnsFrom": [
|
|
346
|
-
"
|
|
1013
|
+
"workspace_id"
|
|
347
1014
|
],
|
|
348
1015
|
"columnsTo": [
|
|
349
1016
|
"id"
|
|
@@ -356,62 +1023,18 @@
|
|
|
356
1023
|
"uniqueConstraints": {},
|
|
357
1024
|
"checkConstraints": {}
|
|
358
1025
|
},
|
|
359
|
-
"
|
|
360
|
-
"name": "
|
|
1026
|
+
"settings": {
|
|
1027
|
+
"name": "settings",
|
|
361
1028
|
"columns": {
|
|
362
|
-
"
|
|
363
|
-
"name": "
|
|
364
|
-
"type": "integer",
|
|
365
|
-
"primaryKey": true,
|
|
366
|
-
"notNull": true,
|
|
367
|
-
"autoincrement": true
|
|
368
|
-
},
|
|
369
|
-
"source": {
|
|
370
|
-
"name": "source",
|
|
371
|
-
"type": "text",
|
|
372
|
-
"primaryKey": false,
|
|
373
|
-
"notNull": true,
|
|
374
|
-
"autoincrement": false
|
|
375
|
-
},
|
|
376
|
-
"brain_name": {
|
|
377
|
-
"name": "brain_name",
|
|
378
|
-
"type": "text",
|
|
379
|
-
"primaryKey": false,
|
|
380
|
-
"notNull": false,
|
|
381
|
-
"autoincrement": false
|
|
382
|
-
},
|
|
383
|
-
"skill_name": {
|
|
384
|
-
"name": "skill_name",
|
|
1029
|
+
"key": {
|
|
1030
|
+
"name": "key",
|
|
385
1031
|
"type": "text",
|
|
386
|
-
"primaryKey":
|
|
387
|
-
"notNull": true,
|
|
388
|
-
"autoincrement": false
|
|
389
|
-
},
|
|
390
|
-
"enabled": {
|
|
391
|
-
"name": "enabled",
|
|
392
|
-
"type": "integer",
|
|
393
|
-
"primaryKey": false,
|
|
394
|
-
"notNull": true,
|
|
395
|
-
"autoincrement": false,
|
|
396
|
-
"default": true
|
|
397
|
-
},
|
|
398
|
-
"priority": {
|
|
399
|
-
"name": "priority",
|
|
400
|
-
"type": "integer",
|
|
401
|
-
"primaryKey": false,
|
|
1032
|
+
"primaryKey": true,
|
|
402
1033
|
"notNull": true,
|
|
403
|
-
"autoincrement": false,
|
|
404
|
-
"default": 0
|
|
405
|
-
},
|
|
406
|
-
"config": {
|
|
407
|
-
"name": "config",
|
|
408
|
-
"type": "text",
|
|
409
|
-
"primaryKey": false,
|
|
410
|
-
"notNull": false,
|
|
411
1034
|
"autoincrement": false
|
|
412
1035
|
},
|
|
413
|
-
"
|
|
414
|
-
"name": "
|
|
1036
|
+
"value_json": {
|
|
1037
|
+
"name": "value_json",
|
|
415
1038
|
"type": "text",
|
|
416
1039
|
"primaryKey": false,
|
|
417
1040
|
"notNull": true,
|
|
@@ -425,60 +1048,49 @@
|
|
|
425
1048
|
"autoincrement": false
|
|
426
1049
|
}
|
|
427
1050
|
},
|
|
428
|
-
"indexes": {
|
|
429
|
-
"skill_bindings_source_brain_name_idx": {
|
|
430
|
-
"name": "skill_bindings_source_brain_name_idx",
|
|
431
|
-
"columns": [
|
|
432
|
-
"source",
|
|
433
|
-
"brain_name",
|
|
434
|
-
"skill_name"
|
|
435
|
-
],
|
|
436
|
-
"isUnique": true
|
|
437
|
-
}
|
|
438
|
-
},
|
|
1051
|
+
"indexes": {},
|
|
439
1052
|
"foreignKeys": {},
|
|
440
1053
|
"compositePrimaryKeys": {},
|
|
441
1054
|
"uniqueConstraints": {},
|
|
442
1055
|
"checkConstraints": {}
|
|
443
1056
|
},
|
|
444
|
-
"
|
|
445
|
-
"name": "
|
|
1057
|
+
"turns": {
|
|
1058
|
+
"name": "turns",
|
|
446
1059
|
"columns": {
|
|
447
1060
|
"id": {
|
|
448
1061
|
"name": "id",
|
|
449
|
-
"type": "
|
|
1062
|
+
"type": "text",
|
|
450
1063
|
"primaryKey": true,
|
|
451
1064
|
"notNull": true,
|
|
452
|
-
"autoincrement":
|
|
1065
|
+
"autoincrement": false
|
|
453
1066
|
},
|
|
454
|
-
"
|
|
455
|
-
"name": "
|
|
1067
|
+
"session_id": {
|
|
1068
|
+
"name": "session_id",
|
|
456
1069
|
"type": "text",
|
|
457
1070
|
"primaryKey": false,
|
|
458
1071
|
"notNull": true,
|
|
459
1072
|
"autoincrement": false
|
|
460
1073
|
},
|
|
461
|
-
"
|
|
462
|
-
"name": "
|
|
463
|
-
"type": "
|
|
1074
|
+
"seq": {
|
|
1075
|
+
"name": "seq",
|
|
1076
|
+
"type": "integer",
|
|
464
1077
|
"primaryKey": false,
|
|
465
1078
|
"notNull": true,
|
|
466
1079
|
"autoincrement": false
|
|
467
1080
|
},
|
|
468
|
-
"
|
|
469
|
-
"name": "
|
|
1081
|
+
"input": {
|
|
1082
|
+
"name": "input",
|
|
470
1083
|
"type": "text",
|
|
471
1084
|
"primaryKey": false,
|
|
472
1085
|
"notNull": true,
|
|
473
1086
|
"autoincrement": false
|
|
474
1087
|
},
|
|
475
|
-
"
|
|
476
|
-
"name": "
|
|
1088
|
+
"response": {
|
|
1089
|
+
"name": "response",
|
|
477
1090
|
"type": "text",
|
|
478
1091
|
"primaryKey": false,
|
|
479
|
-
"notNull":
|
|
480
|
-
"autoincrement": false
|
|
481
|
-
"default": "''"
|
|
1092
|
+
"notNull": false,
|
|
1093
|
+
"autoincrement": false
|
|
482
1094
|
},
|
|
483
1095
|
"status": {
|
|
484
1096
|
"name": "status",
|
|
@@ -486,32 +1098,78 @@
|
|
|
486
1098
|
"primaryKey": false,
|
|
487
1099
|
"notNull": true,
|
|
488
1100
|
"autoincrement": false,
|
|
489
|
-
"default": "'
|
|
1101
|
+
"default": "'queued'"
|
|
490
1102
|
},
|
|
491
|
-
"
|
|
492
|
-
"name": "
|
|
1103
|
+
"error": {
|
|
1104
|
+
"name": "error",
|
|
1105
|
+
"type": "text",
|
|
1106
|
+
"primaryKey": false,
|
|
1107
|
+
"notNull": false,
|
|
1108
|
+
"autoincrement": false
|
|
1109
|
+
},
|
|
1110
|
+
"metadata_json": {
|
|
1111
|
+
"name": "metadata_json",
|
|
493
1112
|
"type": "text",
|
|
494
1113
|
"primaryKey": false,
|
|
495
1114
|
"notNull": true,
|
|
496
1115
|
"autoincrement": false
|
|
497
1116
|
},
|
|
498
|
-
"
|
|
499
|
-
"name": "
|
|
1117
|
+
"created_at": {
|
|
1118
|
+
"name": "created_at",
|
|
500
1119
|
"type": "text",
|
|
501
1120
|
"primaryKey": false,
|
|
502
|
-
"notNull":
|
|
1121
|
+
"notNull": true,
|
|
503
1122
|
"autoincrement": false
|
|
504
1123
|
},
|
|
505
|
-
"
|
|
506
|
-
"name": "
|
|
1124
|
+
"updated_at": {
|
|
1125
|
+
"name": "updated_at",
|
|
507
1126
|
"type": "text",
|
|
508
1127
|
"primaryKey": false,
|
|
509
|
-
"notNull":
|
|
1128
|
+
"notNull": true,
|
|
510
1129
|
"autoincrement": false
|
|
511
1130
|
}
|
|
512
1131
|
},
|
|
513
|
-
"indexes": {
|
|
514
|
-
|
|
1132
|
+
"indexes": {
|
|
1133
|
+
"turns_session_seq_idx": {
|
|
1134
|
+
"name": "turns_session_seq_idx",
|
|
1135
|
+
"columns": [
|
|
1136
|
+
"session_id",
|
|
1137
|
+
"seq"
|
|
1138
|
+
],
|
|
1139
|
+
"isUnique": false
|
|
1140
|
+
},
|
|
1141
|
+
"turns_session_seq_unique_idx": {
|
|
1142
|
+
"name": "turns_session_seq_unique_idx",
|
|
1143
|
+
"columns": [
|
|
1144
|
+
"session_id",
|
|
1145
|
+
"seq"
|
|
1146
|
+
],
|
|
1147
|
+
"isUnique": true
|
|
1148
|
+
},
|
|
1149
|
+
"turns_status_updated_at_idx": {
|
|
1150
|
+
"name": "turns_status_updated_at_idx",
|
|
1151
|
+
"columns": [
|
|
1152
|
+
"status",
|
|
1153
|
+
"updated_at"
|
|
1154
|
+
],
|
|
1155
|
+
"isUnique": false
|
|
1156
|
+
}
|
|
1157
|
+
},
|
|
1158
|
+
"foreignKeys": {
|
|
1159
|
+
"turns_session_id_sessions_id_fk": {
|
|
1160
|
+
"name": "turns_session_id_sessions_id_fk",
|
|
1161
|
+
"tableFrom": "turns",
|
|
1162
|
+
"tableTo": "sessions",
|
|
1163
|
+
"columnsFrom": [
|
|
1164
|
+
"session_id"
|
|
1165
|
+
],
|
|
1166
|
+
"columnsTo": [
|
|
1167
|
+
"id"
|
|
1168
|
+
],
|
|
1169
|
+
"onDelete": "cascade",
|
|
1170
|
+
"onUpdate": "no action"
|
|
1171
|
+
}
|
|
1172
|
+
},
|
|
515
1173
|
"compositePrimaryKeys": {},
|
|
516
1174
|
"uniqueConstraints": {},
|
|
517
1175
|
"checkConstraints": {}
|
|
@@ -704,6 +1362,209 @@
|
|
|
704
1362
|
"compositePrimaryKeys": {},
|
|
705
1363
|
"uniqueConstraints": {},
|
|
706
1364
|
"checkConstraints": {}
|
|
1365
|
+
},
|
|
1366
|
+
"workers": {
|
|
1367
|
+
"name": "workers",
|
|
1368
|
+
"columns": {
|
|
1369
|
+
"id": {
|
|
1370
|
+
"name": "id",
|
|
1371
|
+
"type": "text",
|
|
1372
|
+
"primaryKey": true,
|
|
1373
|
+
"notNull": true,
|
|
1374
|
+
"autoincrement": false
|
|
1375
|
+
},
|
|
1376
|
+
"soul_id": {
|
|
1377
|
+
"name": "soul_id",
|
|
1378
|
+
"type": "text",
|
|
1379
|
+
"primaryKey": false,
|
|
1380
|
+
"notNull": true,
|
|
1381
|
+
"autoincrement": false
|
|
1382
|
+
},
|
|
1383
|
+
"name": {
|
|
1384
|
+
"name": "name",
|
|
1385
|
+
"type": "text",
|
|
1386
|
+
"primaryKey": false,
|
|
1387
|
+
"notNull": true,
|
|
1388
|
+
"autoincrement": false
|
|
1389
|
+
},
|
|
1390
|
+
"status": {
|
|
1391
|
+
"name": "status",
|
|
1392
|
+
"type": "text",
|
|
1393
|
+
"primaryKey": false,
|
|
1394
|
+
"notNull": true,
|
|
1395
|
+
"autoincrement": false,
|
|
1396
|
+
"default": "'active'"
|
|
1397
|
+
},
|
|
1398
|
+
"default_engine_id": {
|
|
1399
|
+
"name": "default_engine_id",
|
|
1400
|
+
"type": "text",
|
|
1401
|
+
"primaryKey": false,
|
|
1402
|
+
"notNull": false,
|
|
1403
|
+
"autoincrement": false
|
|
1404
|
+
},
|
|
1405
|
+
"metadata_json": {
|
|
1406
|
+
"name": "metadata_json",
|
|
1407
|
+
"type": "text",
|
|
1408
|
+
"primaryKey": false,
|
|
1409
|
+
"notNull": true,
|
|
1410
|
+
"autoincrement": false
|
|
1411
|
+
},
|
|
1412
|
+
"created_at": {
|
|
1413
|
+
"name": "created_at",
|
|
1414
|
+
"type": "text",
|
|
1415
|
+
"primaryKey": false,
|
|
1416
|
+
"notNull": true,
|
|
1417
|
+
"autoincrement": false
|
|
1418
|
+
},
|
|
1419
|
+
"updated_at": {
|
|
1420
|
+
"name": "updated_at",
|
|
1421
|
+
"type": "text",
|
|
1422
|
+
"primaryKey": false,
|
|
1423
|
+
"notNull": true,
|
|
1424
|
+
"autoincrement": false
|
|
1425
|
+
}
|
|
1426
|
+
},
|
|
1427
|
+
"indexes": {
|
|
1428
|
+
"workers_soul_idx": {
|
|
1429
|
+
"name": "workers_soul_idx",
|
|
1430
|
+
"columns": [
|
|
1431
|
+
"soul_id"
|
|
1432
|
+
],
|
|
1433
|
+
"isUnique": true
|
|
1434
|
+
},
|
|
1435
|
+
"workers_status_updated_at_idx": {
|
|
1436
|
+
"name": "workers_status_updated_at_idx",
|
|
1437
|
+
"columns": [
|
|
1438
|
+
"status",
|
|
1439
|
+
"updated_at"
|
|
1440
|
+
],
|
|
1441
|
+
"isUnique": false
|
|
1442
|
+
}
|
|
1443
|
+
},
|
|
1444
|
+
"foreignKeys": {},
|
|
1445
|
+
"compositePrimaryKeys": {},
|
|
1446
|
+
"uniqueConstraints": {},
|
|
1447
|
+
"checkConstraints": {}
|
|
1448
|
+
},
|
|
1449
|
+
"workspaces": {
|
|
1450
|
+
"name": "workspaces",
|
|
1451
|
+
"columns": {
|
|
1452
|
+
"id": {
|
|
1453
|
+
"name": "id",
|
|
1454
|
+
"type": "text",
|
|
1455
|
+
"primaryKey": true,
|
|
1456
|
+
"notNull": true,
|
|
1457
|
+
"autoincrement": false
|
|
1458
|
+
},
|
|
1459
|
+
"worker_id": {
|
|
1460
|
+
"name": "worker_id",
|
|
1461
|
+
"type": "text",
|
|
1462
|
+
"primaryKey": false,
|
|
1463
|
+
"notNull": true,
|
|
1464
|
+
"autoincrement": false
|
|
1465
|
+
},
|
|
1466
|
+
"name": {
|
|
1467
|
+
"name": "name",
|
|
1468
|
+
"type": "text",
|
|
1469
|
+
"primaryKey": false,
|
|
1470
|
+
"notNull": true,
|
|
1471
|
+
"autoincrement": false
|
|
1472
|
+
},
|
|
1473
|
+
"root_path": {
|
|
1474
|
+
"name": "root_path",
|
|
1475
|
+
"type": "text",
|
|
1476
|
+
"primaryKey": false,
|
|
1477
|
+
"notNull": true,
|
|
1478
|
+
"autoincrement": false
|
|
1479
|
+
},
|
|
1480
|
+
"type": {
|
|
1481
|
+
"name": "type",
|
|
1482
|
+
"type": "text",
|
|
1483
|
+
"primaryKey": false,
|
|
1484
|
+
"notNull": true,
|
|
1485
|
+
"autoincrement": false,
|
|
1486
|
+
"default": "'workspace'"
|
|
1487
|
+
},
|
|
1488
|
+
"status": {
|
|
1489
|
+
"name": "status",
|
|
1490
|
+
"type": "text",
|
|
1491
|
+
"primaryKey": false,
|
|
1492
|
+
"notNull": true,
|
|
1493
|
+
"autoincrement": false,
|
|
1494
|
+
"default": "'active'"
|
|
1495
|
+
},
|
|
1496
|
+
"source_pointers_json": {
|
|
1497
|
+
"name": "source_pointers_json",
|
|
1498
|
+
"type": "text",
|
|
1499
|
+
"primaryKey": false,
|
|
1500
|
+
"notNull": true,
|
|
1501
|
+
"autoincrement": false
|
|
1502
|
+
},
|
|
1503
|
+
"metadata_json": {
|
|
1504
|
+
"name": "metadata_json",
|
|
1505
|
+
"type": "text",
|
|
1506
|
+
"primaryKey": false,
|
|
1507
|
+
"notNull": true,
|
|
1508
|
+
"autoincrement": false
|
|
1509
|
+
},
|
|
1510
|
+
"created_at": {
|
|
1511
|
+
"name": "created_at",
|
|
1512
|
+
"type": "text",
|
|
1513
|
+
"primaryKey": false,
|
|
1514
|
+
"notNull": true,
|
|
1515
|
+
"autoincrement": false
|
|
1516
|
+
},
|
|
1517
|
+
"updated_at": {
|
|
1518
|
+
"name": "updated_at",
|
|
1519
|
+
"type": "text",
|
|
1520
|
+
"primaryKey": false,
|
|
1521
|
+
"notNull": true,
|
|
1522
|
+
"autoincrement": false
|
|
1523
|
+
}
|
|
1524
|
+
},
|
|
1525
|
+
"indexes": {
|
|
1526
|
+
"workspaces_root_path_idx": {
|
|
1527
|
+
"name": "workspaces_root_path_idx",
|
|
1528
|
+
"columns": [
|
|
1529
|
+
"root_path"
|
|
1530
|
+
],
|
|
1531
|
+
"isUnique": true
|
|
1532
|
+
},
|
|
1533
|
+
"workspaces_status_updated_at_idx": {
|
|
1534
|
+
"name": "workspaces_status_updated_at_idx",
|
|
1535
|
+
"columns": [
|
|
1536
|
+
"status",
|
|
1537
|
+
"updated_at"
|
|
1538
|
+
],
|
|
1539
|
+
"isUnique": false
|
|
1540
|
+
},
|
|
1541
|
+
"workspaces_worker_updated_at_idx": {
|
|
1542
|
+
"name": "workspaces_worker_updated_at_idx",
|
|
1543
|
+
"columns": [
|
|
1544
|
+
"worker_id",
|
|
1545
|
+
"updated_at"
|
|
1546
|
+
],
|
|
1547
|
+
"isUnique": false
|
|
1548
|
+
}
|
|
1549
|
+
},
|
|
1550
|
+
"foreignKeys": {
|
|
1551
|
+
"workspaces_worker_id_workers_id_fk": {
|
|
1552
|
+
"name": "workspaces_worker_id_workers_id_fk",
|
|
1553
|
+
"tableFrom": "workspaces",
|
|
1554
|
+
"tableTo": "workers",
|
|
1555
|
+
"columnsFrom": [
|
|
1556
|
+
"worker_id"
|
|
1557
|
+
],
|
|
1558
|
+
"columnsTo": [
|
|
1559
|
+
"id"
|
|
1560
|
+
],
|
|
1561
|
+
"onDelete": "cascade",
|
|
1562
|
+
"onUpdate": "no action"
|
|
1563
|
+
}
|
|
1564
|
+
},
|
|
1565
|
+
"compositePrimaryKeys": {},
|
|
1566
|
+
"uniqueConstraints": {},
|
|
1567
|
+
"checkConstraints": {}
|
|
707
1568
|
}
|
|
708
1569
|
},
|
|
709
1570
|
"views": {},
|
|
@@ -716,4 +1577,4 @@
|
|
|
716
1577
|
"internal": {
|
|
717
1578
|
"indexes": {}
|
|
718
1579
|
}
|
|
719
|
-
}
|
|
1580
|
+
}
|