@rzx/ohs 1.2.8 → 1.2.20
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/dist/frontend/index.js +136 -13
- package/dist/frontend/index.js.map +17 -15
- package/dist/index.js +4953 -2856
- package/dist/index.js.map +85 -78
- package/dist/migrations/0000_current_schema.sql +47 -0
- package/dist/migrations/0007_goal_simplification.sql +102 -0
- package/dist/migrations/meta/0006_snapshot.json +327 -1
- package/dist/migrations/meta/0007_snapshot.json +3787 -0
- package/dist/migrations/meta/_journal.json +8 -1
- package/package.json +10 -10
|
@@ -283,16 +283,24 @@ CREATE TABLE `session_goal` (
|
|
|
283
283
|
`id` text PRIMARY KEY NOT NULL,
|
|
284
284
|
`session_id` text NOT NULL,
|
|
285
285
|
`objective` text NOT NULL,
|
|
286
|
+
`objective_version` integer DEFAULT 1 NOT NULL,
|
|
287
|
+
`phase` text NOT NULL,
|
|
288
|
+
`requirements_json` text NOT NULL,
|
|
289
|
+
`preparation_episode_id` text,
|
|
286
290
|
`plugin_id` text,
|
|
287
291
|
`revision` integer NOT NULL,
|
|
288
292
|
`status` text NOT NULL,
|
|
289
293
|
`max_auto_turns` integer NOT NULL,
|
|
294
|
+
`token_budget` integer,
|
|
295
|
+
`usage_json` text NOT NULL,
|
|
290
296
|
`auto_turns_used` integer NOT NULL,
|
|
291
297
|
`no_progress_count` integer NOT NULL,
|
|
298
|
+
`stagnation_count` integer NOT NULL,
|
|
292
299
|
`blocker_key` text,
|
|
293
300
|
`last_assessment_json` text,
|
|
294
301
|
`current_run_id` text,
|
|
295
302
|
`reason` text,
|
|
303
|
+
`stop_reason_json` text,
|
|
296
304
|
`wait_json` text,
|
|
297
305
|
`evidence_json` text NOT NULL,
|
|
298
306
|
`created_at` integer NOT NULL,
|
|
@@ -302,6 +310,45 @@ CREATE TABLE `session_goal` (
|
|
|
302
310
|
--> statement-breakpoint
|
|
303
311
|
CREATE INDEX `session_goal_session_updated_idx` ON `session_goal` (`session_id`,`updated_at`);--> statement-breakpoint
|
|
304
312
|
CREATE UNIQUE INDEX `session_goal_session_open_unique` ON `session_goal` (`session_id`) WHERE "session_goal"."status" IN ('active','waiting_user','blocked','paused');--> statement-breakpoint
|
|
313
|
+
CREATE TABLE `session_goal_version` (
|
|
314
|
+
`goal_id` text NOT NULL,
|
|
315
|
+
`objective_version` integer NOT NULL,
|
|
316
|
+
`previous_version` integer,
|
|
317
|
+
`objective` text NOT NULL,
|
|
318
|
+
`requirements_json` text NOT NULL,
|
|
319
|
+
`frozen_at` integer,
|
|
320
|
+
`change_kind` text NOT NULL,
|
|
321
|
+
`change_reason` text NOT NULL,
|
|
322
|
+
`request_id` text NOT NULL,
|
|
323
|
+
`actor_json` text NOT NULL,
|
|
324
|
+
`input_ids_json` text NOT NULL,
|
|
325
|
+
`created_at` integer NOT NULL,
|
|
326
|
+
PRIMARY KEY(`goal_id`, `objective_version`),
|
|
327
|
+
FOREIGN KEY (`goal_id`) REFERENCES `session_goal`(`id`) ON UPDATE no action ON DELETE cascade
|
|
328
|
+
);
|
|
329
|
+
--> statement-breakpoint
|
|
330
|
+
CREATE TABLE `session_goal_model_attempt` (
|
|
331
|
+
`run_id` text NOT NULL,
|
|
332
|
+
`generation_id` text NOT NULL,
|
|
333
|
+
`attempt` integer NOT NULL,
|
|
334
|
+
`goal_id` text NOT NULL,
|
|
335
|
+
`objective_version` integer NOT NULL,
|
|
336
|
+
`session_id` text NOT NULL,
|
|
337
|
+
`provider` text,
|
|
338
|
+
`model` text NOT NULL,
|
|
339
|
+
`purpose` text NOT NULL,
|
|
340
|
+
`state` text NOT NULL,
|
|
341
|
+
`known_input_tokens` integer NOT NULL,
|
|
342
|
+
`known_output_tokens` integer NOT NULL,
|
|
343
|
+
`inconsistent` integer NOT NULL,
|
|
344
|
+
`raw_usage_json` text,
|
|
345
|
+
`started_at` integer NOT NULL,
|
|
346
|
+
`finished_at` integer,
|
|
347
|
+
PRIMARY KEY(`run_id`, `generation_id`, `attempt`),
|
|
348
|
+
FOREIGN KEY (`goal_id`) REFERENCES `session_goal`(`id`) ON UPDATE no action ON DELETE cascade
|
|
349
|
+
);
|
|
350
|
+
--> statement-breakpoint
|
|
351
|
+
CREATE INDEX `session_goal_model_attempt_goal_idx` ON `session_goal_model_attempt` (`goal_id`);--> statement-breakpoint
|
|
305
352
|
CREATE TABLE `session_input_attachment` (
|
|
306
353
|
`id` text PRIMARY KEY NOT NULL,
|
|
307
354
|
`session_id` text NOT NULL,
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
-- Discard only Goal-owned state; sessions, messages, Runs, and tool history remain intact.
|
|
2
|
+
DROP TABLE IF EXISTS `session_goal_assessment`;
|
|
3
|
+
--> statement-breakpoint
|
|
4
|
+
DROP TABLE IF EXISTS `session_goal_continuation`;
|
|
5
|
+
--> statement-breakpoint
|
|
6
|
+
DROP TABLE IF EXISTS `session_goal_model_attempt`;
|
|
7
|
+
--> statement-breakpoint
|
|
8
|
+
DROP TABLE IF EXISTS `session_goal_version`;
|
|
9
|
+
--> statement-breakpoint
|
|
10
|
+
DROP TABLE IF EXISTS `session_goal_request`;
|
|
11
|
+
--> statement-breakpoint
|
|
12
|
+
DROP TABLE IF EXISTS `session_goal`;
|
|
13
|
+
--> statement-breakpoint
|
|
14
|
+
CREATE TABLE `session_goal` (
|
|
15
|
+
`id` text PRIMARY KEY NOT NULL,
|
|
16
|
+
`session_id` text NOT NULL,
|
|
17
|
+
`objective` text NOT NULL,
|
|
18
|
+
`objective_version` integer DEFAULT 1 NOT NULL,
|
|
19
|
+
`plugin_id` text,
|
|
20
|
+
`revision` integer NOT NULL,
|
|
21
|
+
`status` text NOT NULL,
|
|
22
|
+
`max_auto_turns` integer NOT NULL,
|
|
23
|
+
`token_budget` integer,
|
|
24
|
+
`usage_json` text NOT NULL,
|
|
25
|
+
`auto_turns_used` integer NOT NULL,
|
|
26
|
+
`current_run_id` text,
|
|
27
|
+
`reason` text,
|
|
28
|
+
`stop_reason_json` text,
|
|
29
|
+
`wait_json` text,
|
|
30
|
+
`created_at` integer NOT NULL,
|
|
31
|
+
`updated_at` integer NOT NULL,
|
|
32
|
+
FOREIGN KEY (`session_id`) REFERENCES `session`(`id`) ON UPDATE no action ON DELETE cascade
|
|
33
|
+
);
|
|
34
|
+
--> statement-breakpoint
|
|
35
|
+
CREATE INDEX `session_goal_session_updated_idx` ON `session_goal` (`session_id`,`updated_at`);
|
|
36
|
+
--> statement-breakpoint
|
|
37
|
+
CREATE UNIQUE INDEX `session_goal_session_open_unique` ON `session_goal` (`session_id`) WHERE "session_goal"."status" IN ('active','waiting_user','blocked','paused');
|
|
38
|
+
--> statement-breakpoint
|
|
39
|
+
CREATE TABLE `session_goal_version` (
|
|
40
|
+
`goal_id` text NOT NULL,
|
|
41
|
+
`objective_version` integer NOT NULL,
|
|
42
|
+
`previous_version` integer,
|
|
43
|
+
`objective` text NOT NULL,
|
|
44
|
+
`request_id` text NOT NULL,
|
|
45
|
+
`actor_json` text NOT NULL,
|
|
46
|
+
`created_at` integer NOT NULL,
|
|
47
|
+
PRIMARY KEY(`goal_id`, `objective_version`),
|
|
48
|
+
FOREIGN KEY (`goal_id`) REFERENCES `session_goal`(`id`) ON UPDATE no action ON DELETE cascade
|
|
49
|
+
);
|
|
50
|
+
--> statement-breakpoint
|
|
51
|
+
CREATE TABLE `session_goal_model_attempt` (
|
|
52
|
+
`run_id` text NOT NULL,
|
|
53
|
+
`generation_id` text NOT NULL,
|
|
54
|
+
`attempt` integer NOT NULL,
|
|
55
|
+
`goal_id` text NOT NULL,
|
|
56
|
+
`objective_version` integer NOT NULL,
|
|
57
|
+
`session_id` text NOT NULL,
|
|
58
|
+
`provider` text,
|
|
59
|
+
`model` text NOT NULL,
|
|
60
|
+
`purpose` text NOT NULL,
|
|
61
|
+
`state` text NOT NULL,
|
|
62
|
+
`known_input_tokens` integer NOT NULL,
|
|
63
|
+
`known_output_tokens` integer NOT NULL,
|
|
64
|
+
`inconsistent` integer NOT NULL,
|
|
65
|
+
`raw_usage_json` text,
|
|
66
|
+
`started_at` integer NOT NULL,
|
|
67
|
+
`finished_at` integer,
|
|
68
|
+
PRIMARY KEY(`run_id`, `generation_id`, `attempt`),
|
|
69
|
+
FOREIGN KEY (`goal_id`) REFERENCES `session_goal`(`id`) ON UPDATE no action ON DELETE cascade
|
|
70
|
+
);
|
|
71
|
+
--> statement-breakpoint
|
|
72
|
+
CREATE INDEX `session_goal_model_attempt_goal_idx` ON `session_goal_model_attempt` (`goal_id`);
|
|
73
|
+
--> statement-breakpoint
|
|
74
|
+
CREATE TABLE `session_goal_request` (
|
|
75
|
+
`request_id` text PRIMARY KEY NOT NULL,
|
|
76
|
+
`session_id` text NOT NULL,
|
|
77
|
+
`fingerprint` text NOT NULL,
|
|
78
|
+
`status` text NOT NULL,
|
|
79
|
+
`goal_id` text,
|
|
80
|
+
`result_json` text,
|
|
81
|
+
`error` text,
|
|
82
|
+
`created_at` integer NOT NULL,
|
|
83
|
+
`updated_at` integer NOT NULL,
|
|
84
|
+
FOREIGN KEY (`session_id`) REFERENCES `session`(`id`) ON UPDATE no action ON DELETE cascade
|
|
85
|
+
);
|
|
86
|
+
--> statement-breakpoint
|
|
87
|
+
CREATE INDEX `session_goal_request_session_idx` ON `session_goal_request` (`session_id`,`updated_at`);
|
|
88
|
+
--> statement-breakpoint
|
|
89
|
+
CREATE TABLE `session_goal_continuation` (
|
|
90
|
+
`id` text PRIMARY KEY NOT NULL,
|
|
91
|
+
`goal_id` text NOT NULL,
|
|
92
|
+
`revision` integer NOT NULL,
|
|
93
|
+
`previous_run_id` text NOT NULL,
|
|
94
|
+
`input_id` text,
|
|
95
|
+
`run_id` text,
|
|
96
|
+
`status` text NOT NULL,
|
|
97
|
+
`created_at` integer NOT NULL,
|
|
98
|
+
`updated_at` integer NOT NULL,
|
|
99
|
+
FOREIGN KEY (`goal_id`) REFERENCES `session_goal`(`id`) ON UPDATE no action ON DELETE cascade
|
|
100
|
+
);
|
|
101
|
+
--> statement-breakpoint
|
|
102
|
+
CREATE UNIQUE INDEX `session_goal_continuation_previous_unique` ON `session_goal_continuation` (`goal_id`,`revision`,`previous_run_id`);
|
|
@@ -2117,6 +2117,13 @@
|
|
|
2117
2117
|
"notNull": true,
|
|
2118
2118
|
"autoincrement": false
|
|
2119
2119
|
},
|
|
2120
|
+
"stagnation_count": {
|
|
2121
|
+
"name": "stagnation_count",
|
|
2122
|
+
"type": "integer",
|
|
2123
|
+
"primaryKey": false,
|
|
2124
|
+
"notNull": true,
|
|
2125
|
+
"autoincrement": false
|
|
2126
|
+
},
|
|
2120
2127
|
"blocker_key": {
|
|
2121
2128
|
"name": "blocker_key",
|
|
2122
2129
|
"type": "text",
|
|
@@ -2172,6 +2179,56 @@
|
|
|
2172
2179
|
"primaryKey": false,
|
|
2173
2180
|
"notNull": true,
|
|
2174
2181
|
"autoincrement": false
|
|
2182
|
+
},
|
|
2183
|
+
"objective_version": {
|
|
2184
|
+
"name": "objective_version",
|
|
2185
|
+
"type": "integer",
|
|
2186
|
+
"primaryKey": false,
|
|
2187
|
+
"notNull": true,
|
|
2188
|
+
"autoincrement": false,
|
|
2189
|
+
"default": 1
|
|
2190
|
+
},
|
|
2191
|
+
"phase": {
|
|
2192
|
+
"name": "phase",
|
|
2193
|
+
"type": "text",
|
|
2194
|
+
"primaryKey": false,
|
|
2195
|
+
"notNull": true,
|
|
2196
|
+
"autoincrement": false
|
|
2197
|
+
},
|
|
2198
|
+
"requirements_json": {
|
|
2199
|
+
"name": "requirements_json",
|
|
2200
|
+
"type": "text",
|
|
2201
|
+
"primaryKey": false,
|
|
2202
|
+
"notNull": true,
|
|
2203
|
+
"autoincrement": false
|
|
2204
|
+
},
|
|
2205
|
+
"preparation_episode_id": {
|
|
2206
|
+
"name": "preparation_episode_id",
|
|
2207
|
+
"type": "text",
|
|
2208
|
+
"primaryKey": false,
|
|
2209
|
+
"notNull": false,
|
|
2210
|
+
"autoincrement": false
|
|
2211
|
+
},
|
|
2212
|
+
"stop_reason_json": {
|
|
2213
|
+
"name": "stop_reason_json",
|
|
2214
|
+
"type": "text",
|
|
2215
|
+
"primaryKey": false,
|
|
2216
|
+
"notNull": false,
|
|
2217
|
+
"autoincrement": false
|
|
2218
|
+
},
|
|
2219
|
+
"token_budget": {
|
|
2220
|
+
"name": "token_budget",
|
|
2221
|
+
"type": "integer",
|
|
2222
|
+
"primaryKey": false,
|
|
2223
|
+
"notNull": false,
|
|
2224
|
+
"autoincrement": false
|
|
2225
|
+
},
|
|
2226
|
+
"usage_json": {
|
|
2227
|
+
"name": "usage_json",
|
|
2228
|
+
"type": "text",
|
|
2229
|
+
"primaryKey": false,
|
|
2230
|
+
"notNull": true,
|
|
2231
|
+
"autoincrement": false
|
|
2175
2232
|
}
|
|
2176
2233
|
},
|
|
2177
2234
|
"indexes": {
|
|
@@ -3613,6 +3670,275 @@
|
|
|
3613
3670
|
},
|
|
3614
3671
|
"uniqueConstraints": {},
|
|
3615
3672
|
"checkConstraints": {}
|
|
3673
|
+
},
|
|
3674
|
+
"session_goal_model_attempt": {
|
|
3675
|
+
"name": "session_goal_model_attempt",
|
|
3676
|
+
"columns": {
|
|
3677
|
+
"run_id": {
|
|
3678
|
+
"name": "run_id",
|
|
3679
|
+
"type": "text",
|
|
3680
|
+
"primaryKey": false,
|
|
3681
|
+
"notNull": true,
|
|
3682
|
+
"autoincrement": false
|
|
3683
|
+
},
|
|
3684
|
+
"generation_id": {
|
|
3685
|
+
"name": "generation_id",
|
|
3686
|
+
"type": "text",
|
|
3687
|
+
"primaryKey": false,
|
|
3688
|
+
"notNull": true,
|
|
3689
|
+
"autoincrement": false
|
|
3690
|
+
},
|
|
3691
|
+
"goal_id": {
|
|
3692
|
+
"name": "goal_id",
|
|
3693
|
+
"type": "text",
|
|
3694
|
+
"primaryKey": false,
|
|
3695
|
+
"notNull": true,
|
|
3696
|
+
"autoincrement": false
|
|
3697
|
+
},
|
|
3698
|
+
"session_id": {
|
|
3699
|
+
"name": "session_id",
|
|
3700
|
+
"type": "text",
|
|
3701
|
+
"primaryKey": false,
|
|
3702
|
+
"notNull": true,
|
|
3703
|
+
"autoincrement": false
|
|
3704
|
+
},
|
|
3705
|
+
"provider": {
|
|
3706
|
+
"name": "provider",
|
|
3707
|
+
"type": "text",
|
|
3708
|
+
"primaryKey": false,
|
|
3709
|
+
"notNull": false,
|
|
3710
|
+
"autoincrement": false
|
|
3711
|
+
},
|
|
3712
|
+
"model": {
|
|
3713
|
+
"name": "model",
|
|
3714
|
+
"type": "text",
|
|
3715
|
+
"primaryKey": false,
|
|
3716
|
+
"notNull": true,
|
|
3717
|
+
"autoincrement": false
|
|
3718
|
+
},
|
|
3719
|
+
"purpose": {
|
|
3720
|
+
"name": "purpose",
|
|
3721
|
+
"type": "text",
|
|
3722
|
+
"primaryKey": false,
|
|
3723
|
+
"notNull": true,
|
|
3724
|
+
"autoincrement": false
|
|
3725
|
+
},
|
|
3726
|
+
"state": {
|
|
3727
|
+
"name": "state",
|
|
3728
|
+
"type": "text",
|
|
3729
|
+
"primaryKey": false,
|
|
3730
|
+
"notNull": true,
|
|
3731
|
+
"autoincrement": false
|
|
3732
|
+
},
|
|
3733
|
+
"raw_usage_json": {
|
|
3734
|
+
"name": "raw_usage_json",
|
|
3735
|
+
"type": "text",
|
|
3736
|
+
"primaryKey": false,
|
|
3737
|
+
"notNull": false,
|
|
3738
|
+
"autoincrement": false
|
|
3739
|
+
},
|
|
3740
|
+
"attempt": {
|
|
3741
|
+
"name": "attempt",
|
|
3742
|
+
"type": "integer",
|
|
3743
|
+
"primaryKey": false,
|
|
3744
|
+
"notNull": true,
|
|
3745
|
+
"autoincrement": false
|
|
3746
|
+
},
|
|
3747
|
+
"objective_version": {
|
|
3748
|
+
"name": "objective_version",
|
|
3749
|
+
"type": "integer",
|
|
3750
|
+
"primaryKey": false,
|
|
3751
|
+
"notNull": true,
|
|
3752
|
+
"autoincrement": false
|
|
3753
|
+
},
|
|
3754
|
+
"known_input_tokens": {
|
|
3755
|
+
"name": "known_input_tokens",
|
|
3756
|
+
"type": "integer",
|
|
3757
|
+
"primaryKey": false,
|
|
3758
|
+
"notNull": true,
|
|
3759
|
+
"autoincrement": false
|
|
3760
|
+
},
|
|
3761
|
+
"known_output_tokens": {
|
|
3762
|
+
"name": "known_output_tokens",
|
|
3763
|
+
"type": "integer",
|
|
3764
|
+
"primaryKey": false,
|
|
3765
|
+
"notNull": true,
|
|
3766
|
+
"autoincrement": false
|
|
3767
|
+
},
|
|
3768
|
+
"inconsistent": {
|
|
3769
|
+
"name": "inconsistent",
|
|
3770
|
+
"type": "integer",
|
|
3771
|
+
"primaryKey": false,
|
|
3772
|
+
"notNull": true,
|
|
3773
|
+
"autoincrement": false
|
|
3774
|
+
},
|
|
3775
|
+
"started_at": {
|
|
3776
|
+
"name": "started_at",
|
|
3777
|
+
"type": "integer",
|
|
3778
|
+
"primaryKey": false,
|
|
3779
|
+
"notNull": true,
|
|
3780
|
+
"autoincrement": false
|
|
3781
|
+
},
|
|
3782
|
+
"finished_at": {
|
|
3783
|
+
"name": "finished_at",
|
|
3784
|
+
"type": "integer",
|
|
3785
|
+
"primaryKey": false,
|
|
3786
|
+
"notNull": false,
|
|
3787
|
+
"autoincrement": false
|
|
3788
|
+
}
|
|
3789
|
+
},
|
|
3790
|
+
"indexes": {
|
|
3791
|
+
"session_goal_model_attempt_goal_idx": {
|
|
3792
|
+
"name": "session_goal_model_attempt_goal_idx",
|
|
3793
|
+
"columns": [
|
|
3794
|
+
"goal_id"
|
|
3795
|
+
],
|
|
3796
|
+
"isUnique": false
|
|
3797
|
+
}
|
|
3798
|
+
},
|
|
3799
|
+
"foreignKeys": {
|
|
3800
|
+
"session_goal_model_attempt_goal_id_session_goal_id_fk": {
|
|
3801
|
+
"name": "session_goal_model_attempt_goal_id_session_goal_id_fk",
|
|
3802
|
+
"tableFrom": "session_goal_model_attempt",
|
|
3803
|
+
"tableTo": "session_goal",
|
|
3804
|
+
"columnsFrom": [
|
|
3805
|
+
"goal_id"
|
|
3806
|
+
],
|
|
3807
|
+
"columnsTo": [
|
|
3808
|
+
"id"
|
|
3809
|
+
],
|
|
3810
|
+
"onDelete": "cascade",
|
|
3811
|
+
"onUpdate": "no action"
|
|
3812
|
+
}
|
|
3813
|
+
},
|
|
3814
|
+
"compositePrimaryKeys": {
|
|
3815
|
+
"session_goal_model_attempt_run_id_generation_id_attempt_pk": {
|
|
3816
|
+
"columns": [
|
|
3817
|
+
"run_id",
|
|
3818
|
+
"generation_id",
|
|
3819
|
+
"attempt"
|
|
3820
|
+
],
|
|
3821
|
+
"name": "session_goal_model_attempt_run_id_generation_id_attempt_pk"
|
|
3822
|
+
}
|
|
3823
|
+
},
|
|
3824
|
+
"uniqueConstraints": {},
|
|
3825
|
+
"checkConstraints": {}
|
|
3826
|
+
},
|
|
3827
|
+
"session_goal_version": {
|
|
3828
|
+
"name": "session_goal_version",
|
|
3829
|
+
"columns": {
|
|
3830
|
+
"goal_id": {
|
|
3831
|
+
"name": "goal_id",
|
|
3832
|
+
"type": "text",
|
|
3833
|
+
"primaryKey": false,
|
|
3834
|
+
"notNull": true,
|
|
3835
|
+
"autoincrement": false
|
|
3836
|
+
},
|
|
3837
|
+
"objective_version": {
|
|
3838
|
+
"name": "objective_version",
|
|
3839
|
+
"type": "integer",
|
|
3840
|
+
"primaryKey": false,
|
|
3841
|
+
"notNull": true,
|
|
3842
|
+
"autoincrement": false
|
|
3843
|
+
},
|
|
3844
|
+
"previous_version": {
|
|
3845
|
+
"name": "previous_version",
|
|
3846
|
+
"type": "integer",
|
|
3847
|
+
"primaryKey": false,
|
|
3848
|
+
"notNull": false,
|
|
3849
|
+
"autoincrement": false
|
|
3850
|
+
},
|
|
3851
|
+
"objective": {
|
|
3852
|
+
"name": "objective",
|
|
3853
|
+
"type": "text",
|
|
3854
|
+
"primaryKey": false,
|
|
3855
|
+
"notNull": true,
|
|
3856
|
+
"autoincrement": false
|
|
3857
|
+
},
|
|
3858
|
+
"requirements_json": {
|
|
3859
|
+
"name": "requirements_json",
|
|
3860
|
+
"type": "text",
|
|
3861
|
+
"primaryKey": false,
|
|
3862
|
+
"notNull": true,
|
|
3863
|
+
"autoincrement": false
|
|
3864
|
+
},
|
|
3865
|
+
"frozen_at": {
|
|
3866
|
+
"name": "frozen_at",
|
|
3867
|
+
"type": "integer",
|
|
3868
|
+
"primaryKey": false,
|
|
3869
|
+
"notNull": false,
|
|
3870
|
+
"autoincrement": false
|
|
3871
|
+
},
|
|
3872
|
+
"change_kind": {
|
|
3873
|
+
"name": "change_kind",
|
|
3874
|
+
"type": "text",
|
|
3875
|
+
"primaryKey": false,
|
|
3876
|
+
"notNull": true,
|
|
3877
|
+
"autoincrement": false
|
|
3878
|
+
},
|
|
3879
|
+
"change_reason": {
|
|
3880
|
+
"name": "change_reason",
|
|
3881
|
+
"type": "text",
|
|
3882
|
+
"primaryKey": false,
|
|
3883
|
+
"notNull": true,
|
|
3884
|
+
"autoincrement": false
|
|
3885
|
+
},
|
|
3886
|
+
"request_id": {
|
|
3887
|
+
"name": "request_id",
|
|
3888
|
+
"type": "text",
|
|
3889
|
+
"primaryKey": false,
|
|
3890
|
+
"notNull": true,
|
|
3891
|
+
"autoincrement": false
|
|
3892
|
+
},
|
|
3893
|
+
"actor_json": {
|
|
3894
|
+
"name": "actor_json",
|
|
3895
|
+
"type": "text",
|
|
3896
|
+
"primaryKey": false,
|
|
3897
|
+
"notNull": true,
|
|
3898
|
+
"autoincrement": false
|
|
3899
|
+
},
|
|
3900
|
+
"input_ids_json": {
|
|
3901
|
+
"name": "input_ids_json",
|
|
3902
|
+
"type": "text",
|
|
3903
|
+
"primaryKey": false,
|
|
3904
|
+
"notNull": true,
|
|
3905
|
+
"autoincrement": false
|
|
3906
|
+
},
|
|
3907
|
+
"created_at": {
|
|
3908
|
+
"name": "created_at",
|
|
3909
|
+
"type": "integer",
|
|
3910
|
+
"primaryKey": false,
|
|
3911
|
+
"notNull": true,
|
|
3912
|
+
"autoincrement": false
|
|
3913
|
+
}
|
|
3914
|
+
},
|
|
3915
|
+
"indexes": {},
|
|
3916
|
+
"foreignKeys": {
|
|
3917
|
+
"session_goal_version_goal_id_session_goal_id_fk": {
|
|
3918
|
+
"name": "session_goal_version_goal_id_session_goal_id_fk",
|
|
3919
|
+
"tableFrom": "session_goal_version",
|
|
3920
|
+
"tableTo": "session_goal",
|
|
3921
|
+
"columnsFrom": [
|
|
3922
|
+
"goal_id"
|
|
3923
|
+
],
|
|
3924
|
+
"columnsTo": [
|
|
3925
|
+
"id"
|
|
3926
|
+
],
|
|
3927
|
+
"onDelete": "cascade",
|
|
3928
|
+
"onUpdate": "no action"
|
|
3929
|
+
}
|
|
3930
|
+
},
|
|
3931
|
+
"compositePrimaryKeys": {
|
|
3932
|
+
"session_goal_version_goal_id_objective_version_pk": {
|
|
3933
|
+
"columns": [
|
|
3934
|
+
"goal_id",
|
|
3935
|
+
"objective_version"
|
|
3936
|
+
],
|
|
3937
|
+
"name": "session_goal_version_goal_id_objective_version_pk"
|
|
3938
|
+
}
|
|
3939
|
+
},
|
|
3940
|
+
"uniqueConstraints": {},
|
|
3941
|
+
"checkConstraints": {}
|
|
3616
3942
|
}
|
|
3617
3943
|
},
|
|
3618
3944
|
"views": {},
|
|
@@ -3625,4 +3951,4 @@
|
|
|
3625
3951
|
"internal": {
|
|
3626
3952
|
"indexes": {}
|
|
3627
3953
|
}
|
|
3628
|
-
}
|
|
3954
|
+
}
|