@storyshelf/db-sqlite 0.6.2 → 0.8.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 +9 -9
- package/dist/better-sqlite3.d.mts +0 -2
- package/dist/better-sqlite3.mjs +8 -4
- package/dist/better-sqlite3.mjs.map +1 -1
- package/dist/bun-sqlite.d.mts +0 -2
- package/dist/bun-sqlite.mjs +8 -4
- package/dist/bun-sqlite.mjs.map +1 -1
- package/dist/d1.d.mts +0 -2
- package/dist/d1.mjs +6 -5
- package/dist/d1.mjs.map +1 -1
- package/dist/ddl.d.mts +10 -4
- package/dist/ddl.mjs +247 -16
- package/dist/ddl.mjs.map +1 -1
- package/dist/drizzle-factory.d.mts +0 -2
- package/dist/drizzle-factory.mjs +6 -3
- package/dist/drizzle-factory.mjs.map +1 -1
- package/dist/ensure-db-dir.mjs +2 -4
- package/dist/ensure-db-dir.mjs.map +1 -1
- package/dist/index.d.mts +4 -3
- package/dist/index.mjs +9 -5
- package/dist/index.mjs.map +1 -1
- package/dist/schema/baseline.d.mts +87 -13
- package/dist/schema/baseline.mjs +6 -3
- package/dist/schema/baseline.mjs.map +1 -1
- package/dist/schema/{status-config.d.mts → build-component.d.mts} +41 -36
- package/dist/schema/build-component.mjs +21 -0
- package/dist/schema/build-component.mjs.map +1 -0
- package/dist/schema/build-review.d.mts +127 -0
- package/dist/schema/build-review.mjs +19 -0
- package/dist/schema/build-review.mjs.map +1 -0
- package/dist/schema/build.d.mts +81 -25
- package/dist/schema/build.mjs +5 -2
- package/dist/schema/build.mjs.map +1 -1
- package/dist/schema/capture-attempt.d.mts +25 -27
- package/dist/schema/capture-attempt.mjs +1 -2
- package/dist/schema/capture-job.d.mts +357 -0
- package/dist/schema/capture-job.mjs +37 -0
- package/dist/schema/capture-job.mjs.map +1 -0
- package/dist/schema/capture-shard.d.mts +279 -0
- package/dist/schema/capture-shard.mjs +27 -0
- package/dist/schema/capture-shard.mjs.map +1 -0
- package/dist/schema/comment.d.mts +31 -13
- package/dist/schema/comment.mjs +4 -4
- package/dist/schema/comment.mjs.map +1 -1
- package/dist/schema/connection.d.mts +189 -0
- package/dist/schema/connection.mjs +25 -0
- package/dist/schema/connection.mjs.map +1 -0
- package/dist/schema/content-refs.d.mts +0 -2
- package/dist/schema/content-refs.mjs +1 -2
- package/dist/schema/design.d.mts +647 -0
- package/dist/schema/design.mjs +48 -0
- package/dist/schema/design.mjs.map +1 -0
- package/dist/schema/insight.d.mts +687 -0
- package/dist/schema/insight.mjs +52 -0
- package/dist/schema/insight.mjs.map +1 -0
- package/dist/schema/label.d.mts +15 -17
- package/dist/schema/label.mjs +1 -2
- package/dist/schema/member.d.mts +7 -9
- package/dist/schema/member.mjs +1 -2
- package/dist/schema/notification.d.mts +58 -20
- package/dist/schema/notification.mjs +3 -2
- package/dist/schema/notification.mjs.map +1 -1
- package/dist/schema/project-group-mapping.d.mts +6 -8
- package/dist/schema/project-group-mapping.mjs +1 -2
- package/dist/schema/project.d.mts +132 -2
- package/dist/schema/project.mjs +9 -3
- package/dist/schema/project.mjs.map +1 -1
- package/dist/schema/site-setting.d.mts +107 -0
- package/dist/schema/site-setting.mjs +16 -0
- package/dist/schema/site-setting.mjs.map +1 -0
- package/dist/schema/snapshot.d.mts +203 -27
- package/dist/schema/snapshot.mjs +15 -3
- package/dist/schema/snapshot.mjs.map +1 -1
- package/dist/schema/token.d.mts +8 -10
- package/dist/schema/token.mjs +1 -2
- package/dist/schema/usage.d.mts +291 -0
- package/dist/schema/usage.mjs +29 -0
- package/dist/schema/usage.mjs.map +1 -0
- package/dist/schema/user-invite.d.mts +7 -9
- package/dist/schema/user-invite.mjs +1 -2
- package/dist/schema/user.d.mts +0 -2
- package/dist/schema/user.mjs +1 -2
- package/dist/schema/webhook.d.mts +8 -10
- package/dist/schema/webhook.mjs +1 -2
- package/dist/schema.d.mts +24 -5
- package/dist/schema.mjs +26 -6
- package/dist/schema.mjs.map +1 -1
- package/dist/turso.d.mts +2 -4
- package/dist/turso.mjs +20 -8
- package/dist/turso.mjs.map +1 -1
- package/package.json +7 -7
- package/dist/schema/status-config.mjs +0 -20
- package/dist/schema/status-config.mjs.map +0 -1
package/dist/schema/build.d.mts
CHANGED
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
import __tsdown_shims_path from 'node:path';
|
|
2
2
|
import __tsdown_shims_url from 'node:url';
|
|
3
3
|
import { BuildStatus } from "@storyshelf/core/types";
|
|
4
|
-
//#region src/schema/build.d.ts
|
|
5
4
|
/** Narrow `builds` table definition. */
|
|
6
|
-
declare const builds: import("drizzle-orm/sqlite-core").SQLiteTableWithColumns<{
|
|
5
|
+
declare const builds: import("drizzle-orm/sqlite-core/table.js").SQLiteTableWithColumns<{
|
|
7
6
|
name: "builds";
|
|
8
7
|
schema: undefined;
|
|
9
8
|
columns: {
|
|
10
|
-
id: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
9
|
+
id: import("drizzle-orm/sqlite-core/index.js").SQLiteColumn<{
|
|
11
10
|
name: "id";
|
|
12
11
|
tableName: "builds";
|
|
13
12
|
dataType: "string";
|
|
@@ -26,7 +25,7 @@ declare const builds: import("drizzle-orm/sqlite-core").SQLiteTableWithColumns<{
|
|
|
26
25
|
}, {}, {
|
|
27
26
|
length: number | undefined;
|
|
28
27
|
}>;
|
|
29
|
-
projectId: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
28
|
+
projectId: import("drizzle-orm/sqlite-core/index.js").SQLiteColumn<{
|
|
30
29
|
name: "project_id";
|
|
31
30
|
tableName: "builds";
|
|
32
31
|
dataType: "string";
|
|
@@ -45,7 +44,7 @@ declare const builds: import("drizzle-orm/sqlite-core").SQLiteTableWithColumns<{
|
|
|
45
44
|
}, {}, {
|
|
46
45
|
length: number | undefined;
|
|
47
46
|
}>;
|
|
48
|
-
gitSha: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
47
|
+
gitSha: import("drizzle-orm/sqlite-core/index.js").SQLiteColumn<{
|
|
49
48
|
name: "git_sha";
|
|
50
49
|
tableName: "builds";
|
|
51
50
|
dataType: "string";
|
|
@@ -64,7 +63,7 @@ declare const builds: import("drizzle-orm/sqlite-core").SQLiteTableWithColumns<{
|
|
|
64
63
|
}, {}, {
|
|
65
64
|
length: number | undefined;
|
|
66
65
|
}>;
|
|
67
|
-
gitBranch: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
66
|
+
gitBranch: import("drizzle-orm/sqlite-core/index.js").SQLiteColumn<{
|
|
68
67
|
name: "git_branch";
|
|
69
68
|
tableName: "builds";
|
|
70
69
|
dataType: "string";
|
|
@@ -83,7 +82,7 @@ declare const builds: import("drizzle-orm/sqlite-core").SQLiteTableWithColumns<{
|
|
|
83
82
|
}, {}, {
|
|
84
83
|
length: number | undefined;
|
|
85
84
|
}>;
|
|
86
|
-
isDefault: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
85
|
+
isDefault: import("drizzle-orm/sqlite-core/index.js").SQLiteColumn<{
|
|
87
86
|
name: "is_default";
|
|
88
87
|
tableName: "builds";
|
|
89
88
|
dataType: "boolean";
|
|
@@ -100,7 +99,7 @@ declare const builds: import("drizzle-orm/sqlite-core").SQLiteTableWithColumns<{
|
|
|
100
99
|
identity: undefined;
|
|
101
100
|
generated: undefined;
|
|
102
101
|
}, {}, {}>;
|
|
103
|
-
authorEmail: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
102
|
+
authorEmail: import("drizzle-orm/sqlite-core/index.js").SQLiteColumn<{
|
|
104
103
|
name: "author_email";
|
|
105
104
|
tableName: "builds";
|
|
106
105
|
dataType: "string";
|
|
@@ -119,7 +118,7 @@ declare const builds: import("drizzle-orm/sqlite-core").SQLiteTableWithColumns<{
|
|
|
119
118
|
}, {}, {
|
|
120
119
|
length: number | undefined;
|
|
121
120
|
}>;
|
|
122
|
-
authorName: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
121
|
+
authorName: import("drizzle-orm/sqlite-core/index.js").SQLiteColumn<{
|
|
123
122
|
name: "author_name";
|
|
124
123
|
tableName: "builds";
|
|
125
124
|
dataType: "string";
|
|
@@ -138,7 +137,7 @@ declare const builds: import("drizzle-orm/sqlite-core").SQLiteTableWithColumns<{
|
|
|
138
137
|
}, {}, {
|
|
139
138
|
length: number | undefined;
|
|
140
139
|
}>;
|
|
141
|
-
message: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
140
|
+
message: import("drizzle-orm/sqlite-core/index.js").SQLiteColumn<{
|
|
142
141
|
name: "message";
|
|
143
142
|
tableName: "builds";
|
|
144
143
|
dataType: "string";
|
|
@@ -157,7 +156,7 @@ declare const builds: import("drizzle-orm/sqlite-core").SQLiteTableWithColumns<{
|
|
|
157
156
|
}, {}, {
|
|
158
157
|
length: number | undefined;
|
|
159
158
|
}>;
|
|
160
|
-
public: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
159
|
+
public: import("drizzle-orm/sqlite-core/index.js").SQLiteColumn<{
|
|
161
160
|
name: "public";
|
|
162
161
|
tableName: "builds";
|
|
163
162
|
dataType: "boolean";
|
|
@@ -174,12 +173,12 @@ declare const builds: import("drizzle-orm/sqlite-core").SQLiteTableWithColumns<{
|
|
|
174
173
|
identity: undefined;
|
|
175
174
|
generated: undefined;
|
|
176
175
|
}, {}, {}>;
|
|
177
|
-
status: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
176
|
+
status: import("drizzle-orm/sqlite-core/index.js").SQLiteColumn<{
|
|
178
177
|
name: "status";
|
|
179
178
|
tableName: "builds";
|
|
180
179
|
dataType: "string";
|
|
181
180
|
columnType: "SQLiteText";
|
|
182
|
-
data: "approved" | "capturing" | "comparing" | "failed" | "pending" | "rejected" | "reviewing";
|
|
181
|
+
data: "approved" | "cancelled" | "capturing" | "comparing" | "failed" | "pending" | "rejected" | "reviewing";
|
|
183
182
|
driverParam: string;
|
|
184
183
|
notNull: true;
|
|
185
184
|
hasDefault: true;
|
|
@@ -192,9 +191,28 @@ declare const builds: import("drizzle-orm/sqlite-core").SQLiteTableWithColumns<{
|
|
|
192
191
|
generated: undefined;
|
|
193
192
|
}, {}, {
|
|
194
193
|
length: number | undefined;
|
|
195
|
-
$type: "approved" | "capturing" | "comparing" | "failed" | "pending" | "rejected" | "reviewing";
|
|
194
|
+
$type: "approved" | "cancelled" | "capturing" | "comparing" | "failed" | "pending" | "rejected" | "reviewing";
|
|
196
195
|
}>;
|
|
197
|
-
|
|
196
|
+
retentionState: import("drizzle-orm/sqlite-core/index.js").SQLiteColumn<{
|
|
197
|
+
name: "retention_state";
|
|
198
|
+
tableName: "builds";
|
|
199
|
+
dataType: "string";
|
|
200
|
+
columnType: "SQLiteText";
|
|
201
|
+
data: string;
|
|
202
|
+
driverParam: string;
|
|
203
|
+
notNull: true;
|
|
204
|
+
hasDefault: true;
|
|
205
|
+
isPrimaryKey: false;
|
|
206
|
+
isAutoincrement: false;
|
|
207
|
+
hasRuntimeDefault: false;
|
|
208
|
+
enumValues: [string, ...string[]];
|
|
209
|
+
baseColumn: never;
|
|
210
|
+
identity: undefined;
|
|
211
|
+
generated: undefined;
|
|
212
|
+
}, {}, {
|
|
213
|
+
length: number | undefined;
|
|
214
|
+
}>;
|
|
215
|
+
snapshotCount: import("drizzle-orm/sqlite-core/index.js").SQLiteColumn<{
|
|
198
216
|
name: "snapshot_count";
|
|
199
217
|
tableName: "builds";
|
|
200
218
|
dataType: "number";
|
|
@@ -211,7 +229,7 @@ declare const builds: import("drizzle-orm/sqlite-core").SQLiteTableWithColumns<{
|
|
|
211
229
|
identity: undefined;
|
|
212
230
|
generated: undefined;
|
|
213
231
|
}, {}, {}>;
|
|
214
|
-
changedCount: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
232
|
+
changedCount: import("drizzle-orm/sqlite-core/index.js").SQLiteColumn<{
|
|
215
233
|
name: "changed_count";
|
|
216
234
|
tableName: "builds";
|
|
217
235
|
dataType: "number";
|
|
@@ -228,7 +246,7 @@ declare const builds: import("drizzle-orm/sqlite-core").SQLiteTableWithColumns<{
|
|
|
228
246
|
identity: undefined;
|
|
229
247
|
generated: undefined;
|
|
230
248
|
}, {}, {}>;
|
|
231
|
-
approvedCount: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
249
|
+
approvedCount: import("drizzle-orm/sqlite-core/index.js").SQLiteColumn<{
|
|
232
250
|
name: "approved_count";
|
|
233
251
|
tableName: "builds";
|
|
234
252
|
dataType: "number";
|
|
@@ -245,7 +263,7 @@ declare const builds: import("drizzle-orm/sqlite-core").SQLiteTableWithColumns<{
|
|
|
245
263
|
identity: undefined;
|
|
246
264
|
generated: undefined;
|
|
247
265
|
}, {}, {}>;
|
|
248
|
-
rejectedCount: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
266
|
+
rejectedCount: import("drizzle-orm/sqlite-core/index.js").SQLiteColumn<{
|
|
249
267
|
name: "rejected_count";
|
|
250
268
|
tableName: "builds";
|
|
251
269
|
dataType: "number";
|
|
@@ -262,7 +280,24 @@ declare const builds: import("drizzle-orm/sqlite-core").SQLiteTableWithColumns<{
|
|
|
262
280
|
identity: undefined;
|
|
263
281
|
generated: undefined;
|
|
264
282
|
}, {}, {}>;
|
|
265
|
-
|
|
283
|
+
inheritedCount: import("drizzle-orm/sqlite-core/index.js").SQLiteColumn<{
|
|
284
|
+
name: "inherited_count";
|
|
285
|
+
tableName: "builds";
|
|
286
|
+
dataType: "number";
|
|
287
|
+
columnType: "SQLiteInteger";
|
|
288
|
+
data: number;
|
|
289
|
+
driverParam: number;
|
|
290
|
+
notNull: true;
|
|
291
|
+
hasDefault: true;
|
|
292
|
+
isPrimaryKey: false;
|
|
293
|
+
isAutoincrement: false;
|
|
294
|
+
hasRuntimeDefault: false;
|
|
295
|
+
enumValues: undefined;
|
|
296
|
+
baseColumn: never;
|
|
297
|
+
identity: undefined;
|
|
298
|
+
generated: undefined;
|
|
299
|
+
}, {}, {}>;
|
|
300
|
+
affectedOnly: import("drizzle-orm/sqlite-core/index.js").SQLiteColumn<{
|
|
266
301
|
name: "affected_only";
|
|
267
302
|
tableName: "builds";
|
|
268
303
|
dataType: "boolean";
|
|
@@ -279,7 +314,7 @@ declare const builds: import("drizzle-orm/sqlite-core").SQLiteTableWithColumns<{
|
|
|
279
314
|
identity: undefined;
|
|
280
315
|
generated: undefined;
|
|
281
316
|
}, {}, {}>;
|
|
282
|
-
baselineSha: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
317
|
+
baselineSha: import("drizzle-orm/sqlite-core/index.js").SQLiteColumn<{
|
|
283
318
|
name: "baseline_sha";
|
|
284
319
|
tableName: "builds";
|
|
285
320
|
dataType: "string";
|
|
@@ -298,7 +333,7 @@ declare const builds: import("drizzle-orm/sqlite-core").SQLiteTableWithColumns<{
|
|
|
298
333
|
}, {}, {
|
|
299
334
|
length: number | undefined;
|
|
300
335
|
}>;
|
|
301
|
-
changedFiles: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
336
|
+
changedFiles: import("drizzle-orm/sqlite-core/index.js").SQLiteColumn<{
|
|
302
337
|
name: "changed_files";
|
|
303
338
|
tableName: "builds";
|
|
304
339
|
dataType: "string";
|
|
@@ -317,7 +352,7 @@ declare const builds: import("drizzle-orm/sqlite-core").SQLiteTableWithColumns<{
|
|
|
317
352
|
}, {}, {
|
|
318
353
|
length: number | undefined;
|
|
319
354
|
}>;
|
|
320
|
-
affectedImportPaths: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
355
|
+
affectedImportPaths: import("drizzle-orm/sqlite-core/index.js").SQLiteColumn<{
|
|
321
356
|
name: "affected_import_paths";
|
|
322
357
|
tableName: "builds";
|
|
323
358
|
dataType: "string";
|
|
@@ -336,7 +371,26 @@ declare const builds: import("drizzle-orm/sqlite-core").SQLiteTableWithColumns<{
|
|
|
336
371
|
}, {}, {
|
|
337
372
|
length: number | undefined;
|
|
338
373
|
}>;
|
|
339
|
-
|
|
374
|
+
testResults: import("drizzle-orm/sqlite-core/index.js").SQLiteColumn<{
|
|
375
|
+
name: "test_results";
|
|
376
|
+
tableName: "builds";
|
|
377
|
+
dataType: "string";
|
|
378
|
+
columnType: "SQLiteText";
|
|
379
|
+
data: string;
|
|
380
|
+
driverParam: string;
|
|
381
|
+
notNull: false;
|
|
382
|
+
hasDefault: false;
|
|
383
|
+
isPrimaryKey: false;
|
|
384
|
+
isAutoincrement: false;
|
|
385
|
+
hasRuntimeDefault: false;
|
|
386
|
+
enumValues: [string, ...string[]];
|
|
387
|
+
baseColumn: never;
|
|
388
|
+
identity: undefined;
|
|
389
|
+
generated: undefined;
|
|
390
|
+
}, {}, {
|
|
391
|
+
length: number | undefined;
|
|
392
|
+
}>;
|
|
393
|
+
createdAt: import("drizzle-orm/sqlite-core/index.js").SQLiteColumn<{
|
|
340
394
|
name: "created_at";
|
|
341
395
|
tableName: "builds";
|
|
342
396
|
dataType: "string";
|
|
@@ -355,7 +409,7 @@ declare const builds: import("drizzle-orm/sqlite-core").SQLiteTableWithColumns<{
|
|
|
355
409
|
}, {}, {
|
|
356
410
|
length: number | undefined;
|
|
357
411
|
}>;
|
|
358
|
-
updatedAt: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
412
|
+
updatedAt: import("drizzle-orm/sqlite-core/index.js").SQLiteColumn<{
|
|
359
413
|
name: "updated_at";
|
|
360
414
|
tableName: "builds";
|
|
361
415
|
dataType: "string";
|
|
@@ -389,17 +443,19 @@ interface Build {
|
|
|
389
443
|
message: string | null;
|
|
390
444
|
public: boolean;
|
|
391
445
|
status: BuildStatus;
|
|
446
|
+
retentionState: string;
|
|
392
447
|
snapshotCount: number;
|
|
393
448
|
changedCount: number;
|
|
394
449
|
approvedCount: number;
|
|
395
450
|
rejectedCount: number;
|
|
451
|
+
inheritedCount: number;
|
|
396
452
|
affectedOnly: boolean;
|
|
397
453
|
baselineSha: string | null;
|
|
398
454
|
changedFiles: string | null;
|
|
399
455
|
affectedImportPaths: string | null;
|
|
456
|
+
testResults: string | null;
|
|
400
457
|
createdAt: string;
|
|
401
458
|
updatedAt: string;
|
|
402
459
|
}
|
|
403
|
-
//#endregion
|
|
404
460
|
export { Build, builds };
|
|
405
461
|
//# sourceMappingURL=build.d.mts.map
|
package/dist/schema/build.mjs
CHANGED
|
@@ -3,7 +3,7 @@ import "node:url";
|
|
|
3
3
|
import.meta.url;
|
|
4
4
|
import { projects } from "./project.mjs";
|
|
5
5
|
import { index, integer, sqliteTable, text } from "drizzle-orm/sqlite-core";
|
|
6
|
-
|
|
6
|
+
// src/schema/build.ts
|
|
7
7
|
/** Narrow `builds` table definition. */
|
|
8
8
|
const builds = sqliteTable("builds", {
|
|
9
9
|
id: text("id").primaryKey(),
|
|
@@ -16,18 +16,21 @@ const builds = sqliteTable("builds", {
|
|
|
16
16
|
message: text("message"),
|
|
17
17
|
public: integer("public", { mode: "boolean" }).notNull().default(false),
|
|
18
18
|
status: text("status").$type().notNull().default("pending"),
|
|
19
|
+
retentionState: text("retention_state").notNull().default("available"),
|
|
19
20
|
snapshotCount: integer("snapshot_count").notNull().default(0),
|
|
20
21
|
changedCount: integer("changed_count").notNull().default(0),
|
|
21
22
|
approvedCount: integer("approved_count").notNull().default(0),
|
|
22
23
|
rejectedCount: integer("rejected_count").notNull().default(0),
|
|
24
|
+
/** Snapshots inherited from the baseline without rendering (affected capture). */
|
|
25
|
+
inheritedCount: integer("inherited_count").notNull().default(0),
|
|
23
26
|
affectedOnly: integer("affected_only", { mode: "boolean" }).notNull().default(true),
|
|
24
27
|
baselineSha: text("baseline_sha"),
|
|
25
28
|
changedFiles: text("changed_files"),
|
|
26
29
|
affectedImportPaths: text("affected_import_paths"),
|
|
30
|
+
testResults: text("test_results"),
|
|
27
31
|
createdAt: text("created_at").notNull(),
|
|
28
32
|
updatedAt: text("updated_at").notNull()
|
|
29
33
|
}, (t) => [index("builds_project_gitsha_idx").on(t.projectId, t.gitSha), index("builds_git_branch_idx").on(t.gitBranch)]);
|
|
30
|
-
//#endregion
|
|
31
34
|
export { builds };
|
|
32
35
|
|
|
33
36
|
//# sourceMappingURL=build.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"build.mjs","names":[],"sources":["../../src/schema/build.ts"],"sourcesContent":["import type { BuildStatus } from \"@storyshelf/core/types\";\nimport { index, integer, sqliteTable, text } from \"drizzle-orm/sqlite-core\";\nimport { projects } from \"./project.ts\";\n\n/** Narrow `builds` table definition. */\nexport const builds = sqliteTable(\n \"builds\",\n {\n id: text(\"id\").primaryKey(),\n projectId: text(\"project_id\")\n .notNull()\n .references(() => projects.id, { onDelete: \"cascade\" }),\n gitSha: text(\"git_sha\").notNull(),\n gitBranch: text(\"git_branch\").notNull(),\n isDefault: integer(\"is_default\", { mode: \"boolean\" }).notNull().default(false),\n authorEmail: text(\"author_email\"),\n authorName: text(\"author_name\"),\n message: text(\"message\"),\n public: integer(\"public\", { mode: \"boolean\" }).notNull().default(false),\n status: text(\"status\").$type<BuildStatus>().notNull().default(\"pending\"),\n snapshotCount: integer(\"snapshot_count\").notNull().default(0),\n changedCount: integer(\"changed_count\").notNull().default(0),\n approvedCount: integer(\"approved_count\").notNull().default(0),\n rejectedCount: integer(\"rejected_count\").notNull().default(0),\n affectedOnly: integer(\"affected_only\", { mode: \"boolean\" }).notNull().default(true),\n baselineSha: text(\"baseline_sha\"),\n changedFiles: text(\"changed_files\"),\n affectedImportPaths: text(\"affected_import_paths\"),\n createdAt: text(\"created_at\").notNull(),\n updatedAt: text(\"updated_at\").notNull(),\n },\n (t) => [\n index(\"builds_project_gitsha_idx\").on(t.projectId, t.gitSha),\n index(\"builds_git_branch_idx\").on(t.gitBranch),\n ],\n);\n\n/** A build row. */\nexport interface Build {\n id: string;\n projectId: string;\n gitSha: string;\n gitBranch: string;\n isDefault: boolean;\n authorEmail: string | null;\n authorName: string | null;\n message: string | null;\n public: boolean;\n status: BuildStatus;\n snapshotCount: number;\n changedCount: number;\n approvedCount: number;\n rejectedCount: number;\n affectedOnly: boolean;\n baselineSha: string | null;\n changedFiles: string | null;\n affectedImportPaths: string | null;\n createdAt: string;\n updatedAt: string;\n}\n"],"mappings":";;;;;;;AAKA,MAAa,SAAS,YACpB,UACA;CACE,IAAI,KAAK,IAAI,CAAC,CAAC,WAAW;CAC1B,WAAW,KAAK,YAAY,CAAC,CAC1B,QAAQ,CAAC,CACT,iBAAiB,SAAS,IAAI,EAAE,UAAU,UAAU,CAAC;CACxD,QAAQ,KAAK,SAAS,CAAC,CAAC,QAAQ;CAChC,WAAW,KAAK,YAAY,CAAC,CAAC,QAAQ;CACtC,WAAW,QAAQ,cAAc,EAAE,MAAM,UAAU,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,QAAQ,KAAK;CAC7E,aAAa,KAAK,cAAc;CAChC,YAAY,KAAK,aAAa;CAC9B,SAAS,KAAK,SAAS;CACvB,QAAQ,QAAQ,UAAU,EAAE,MAAM,UAAU,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,QAAQ,KAAK;CACtE,QAAQ,KAAK,QAAQ,CAAC,CAAC,MAAmB,CAAC,CAAC,QAAQ,CAAC,CAAC,QAAQ,SAAS;CACvE,eAAe,QAAQ,gBAAgB,CAAC,CAAC,QAAQ,CAAC,CAAC,QAAQ,CAAC;CAC5D,cAAc,QAAQ,eAAe,CAAC,CAAC,QAAQ,CAAC,CAAC,QAAQ,CAAC;CAC1D,eAAe,QAAQ,gBAAgB,CAAC,CAAC,QAAQ,CAAC,CAAC,QAAQ,CAAC;CAC5D,eAAe,QAAQ,gBAAgB,CAAC,CAAC,QAAQ,CAAC,CAAC,QAAQ,CAAC;
|
|
1
|
+
{"version":3,"file":"build.mjs","names":[],"sources":["../../src/schema/build.ts"],"sourcesContent":["import type { BuildStatus } from \"@storyshelf/core/types\";\nimport { index, integer, sqliteTable, text } from \"drizzle-orm/sqlite-core\";\nimport { projects } from \"./project.ts\";\n\n/** Narrow `builds` table definition. */\nexport const builds = sqliteTable(\n \"builds\",\n {\n id: text(\"id\").primaryKey(),\n projectId: text(\"project_id\")\n .notNull()\n .references(() => projects.id, { onDelete: \"cascade\" }),\n gitSha: text(\"git_sha\").notNull(),\n gitBranch: text(\"git_branch\").notNull(),\n isDefault: integer(\"is_default\", { mode: \"boolean\" }).notNull().default(false),\n authorEmail: text(\"author_email\"),\n authorName: text(\"author_name\"),\n message: text(\"message\"),\n public: integer(\"public\", { mode: \"boolean\" }).notNull().default(false),\n status: text(\"status\").$type<BuildStatus>().notNull().default(\"pending\"),\n retentionState: text(\"retention_state\").notNull().default(\"available\"),\n snapshotCount: integer(\"snapshot_count\").notNull().default(0),\n changedCount: integer(\"changed_count\").notNull().default(0),\n approvedCount: integer(\"approved_count\").notNull().default(0),\n rejectedCount: integer(\"rejected_count\").notNull().default(0),\n /** Snapshots inherited from the baseline without rendering (affected capture). */\n inheritedCount: integer(\"inherited_count\").notNull().default(0),\n affectedOnly: integer(\"affected_only\", { mode: \"boolean\" }).notNull().default(true),\n baselineSha: text(\"baseline_sha\"),\n changedFiles: text(\"changed_files\"),\n affectedImportPaths: text(\"affected_import_paths\"),\n testResults: text(\"test_results\"),\n createdAt: text(\"created_at\").notNull(),\n updatedAt: text(\"updated_at\").notNull(),\n },\n (t) => [\n index(\"builds_project_gitsha_idx\").on(t.projectId, t.gitSha),\n index(\"builds_git_branch_idx\").on(t.gitBranch),\n ],\n);\n\n/** A build row. */\nexport interface Build {\n id: string;\n projectId: string;\n gitSha: string;\n gitBranch: string;\n isDefault: boolean;\n authorEmail: string | null;\n authorName: string | null;\n message: string | null;\n public: boolean;\n status: BuildStatus;\n retentionState: string;\n snapshotCount: number;\n changedCount: number;\n approvedCount: number;\n rejectedCount: number;\n inheritedCount: number;\n affectedOnly: boolean;\n baselineSha: string | null;\n changedFiles: string | null;\n affectedImportPaths: string | null;\n testResults: string | null;\n createdAt: string;\n updatedAt: string;\n}\n"],"mappings":";;;;;;;AAKA,MAAa,SAAS,YACpB,UACA;CACE,IAAI,KAAK,IAAI,CAAC,CAAC,WAAW;CAC1B,WAAW,KAAK,YAAY,CAAC,CAC1B,QAAQ,CAAC,CACT,iBAAiB,SAAS,IAAI,EAAE,UAAU,UAAU,CAAC;CACxD,QAAQ,KAAK,SAAS,CAAC,CAAC,QAAQ;CAChC,WAAW,KAAK,YAAY,CAAC,CAAC,QAAQ;CACtC,WAAW,QAAQ,cAAc,EAAE,MAAM,UAAU,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,QAAQ,KAAK;CAC7E,aAAa,KAAK,cAAc;CAChC,YAAY,KAAK,aAAa;CAC9B,SAAS,KAAK,SAAS;CACvB,QAAQ,QAAQ,UAAU,EAAE,MAAM,UAAU,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,QAAQ,KAAK;CACtE,QAAQ,KAAK,QAAQ,CAAC,CAAC,MAAmB,CAAC,CAAC,QAAQ,CAAC,CAAC,QAAQ,SAAS;CACvE,gBAAgB,KAAK,iBAAiB,CAAC,CAAC,QAAQ,CAAC,CAAC,QAAQ,WAAW;CACrE,eAAe,QAAQ,gBAAgB,CAAC,CAAC,QAAQ,CAAC,CAAC,QAAQ,CAAC;CAC5D,cAAc,QAAQ,eAAe,CAAC,CAAC,QAAQ,CAAC,CAAC,QAAQ,CAAC;CAC1D,eAAe,QAAQ,gBAAgB,CAAC,CAAC,QAAQ,CAAC,CAAC,QAAQ,CAAC;CAC5D,eAAe,QAAQ,gBAAgB,CAAC,CAAC,QAAQ,CAAC,CAAC,QAAQ,CAAC;;CAE5D,gBAAgB,QAAQ,iBAAiB,CAAC,CAAC,QAAQ,CAAC,CAAC,QAAQ,CAAC;CAC9D,cAAc,QAAQ,iBAAiB,EAAE,MAAM,UAAU,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,QAAQ,IAAI;CAClF,aAAa,KAAK,cAAc;CAChC,cAAc,KAAK,eAAe;CAClC,qBAAqB,KAAK,uBAAuB;CACjD,aAAa,KAAK,cAAc;CAChC,WAAW,KAAK,YAAY,CAAC,CAAC,QAAQ;CACtC,WAAW,KAAK,YAAY,CAAC,CAAC,QAAQ;AACxC,IACC,MAAM,CACL,MAAM,2BAA2B,CAAC,CAAC,GAAG,EAAE,WAAW,EAAE,MAAM,GAC3D,MAAM,uBAAuB,CAAC,CAAC,GAAG,EAAE,SAAS,CAC/C,CACF"}
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
import __tsdown_shims_path from 'node:path';
|
|
2
2
|
import __tsdown_shims_url from 'node:url';
|
|
3
3
|
import { JobStatus } from "@storyshelf/core/adapter/capture-queue";
|
|
4
|
-
//#region src/schema/capture-attempt.d.ts
|
|
5
4
|
/** Narrow `capture_attempts` table definition: one row per build capture run. */
|
|
6
|
-
declare const captureAttempts: import("drizzle-orm/sqlite-core").SQLiteTableWithColumns<{
|
|
5
|
+
declare const captureAttempts: import("drizzle-orm/sqlite-core/table.js").SQLiteTableWithColumns<{
|
|
7
6
|
name: "capture_attempts";
|
|
8
7
|
schema: undefined;
|
|
9
8
|
columns: {
|
|
10
|
-
id: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
9
|
+
id: import("drizzle-orm/sqlite-core/index.js").SQLiteColumn<{
|
|
11
10
|
name: "id";
|
|
12
11
|
tableName: "capture_attempts";
|
|
13
12
|
dataType: "string";
|
|
@@ -26,7 +25,7 @@ declare const captureAttempts: import("drizzle-orm/sqlite-core").SQLiteTableWith
|
|
|
26
25
|
}, {}, {
|
|
27
26
|
length: number | undefined;
|
|
28
27
|
}>;
|
|
29
|
-
projectId: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
28
|
+
projectId: import("drizzle-orm/sqlite-core/index.js").SQLiteColumn<{
|
|
30
29
|
name: "project_id";
|
|
31
30
|
tableName: "capture_attempts";
|
|
32
31
|
dataType: "string";
|
|
@@ -45,7 +44,7 @@ declare const captureAttempts: import("drizzle-orm/sqlite-core").SQLiteTableWith
|
|
|
45
44
|
}, {}, {
|
|
46
45
|
length: number | undefined;
|
|
47
46
|
}>;
|
|
48
|
-
buildId: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
47
|
+
buildId: import("drizzle-orm/sqlite-core/index.js").SQLiteColumn<{
|
|
49
48
|
name: "build_id";
|
|
50
49
|
tableName: "capture_attempts";
|
|
51
50
|
dataType: "string";
|
|
@@ -64,7 +63,7 @@ declare const captureAttempts: import("drizzle-orm/sqlite-core").SQLiteTableWith
|
|
|
64
63
|
}, {}, {
|
|
65
64
|
length: number | undefined;
|
|
66
65
|
}>;
|
|
67
|
-
attemptNo: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
66
|
+
attemptNo: import("drizzle-orm/sqlite-core/index.js").SQLiteColumn<{
|
|
68
67
|
name: "attempt_no";
|
|
69
68
|
tableName: "capture_attempts";
|
|
70
69
|
dataType: "number";
|
|
@@ -81,7 +80,7 @@ declare const captureAttempts: import("drizzle-orm/sqlite-core").SQLiteTableWith
|
|
|
81
80
|
identity: undefined;
|
|
82
81
|
generated: undefined;
|
|
83
82
|
}, {}, {}>;
|
|
84
|
-
status: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
83
|
+
status: import("drizzle-orm/sqlite-core/index.js").SQLiteColumn<{
|
|
85
84
|
name: "status";
|
|
86
85
|
tableName: "capture_attempts";
|
|
87
86
|
dataType: "string";
|
|
@@ -101,7 +100,7 @@ declare const captureAttempts: import("drizzle-orm/sqlite-core").SQLiteTableWith
|
|
|
101
100
|
length: number | undefined;
|
|
102
101
|
$type: JobStatus;
|
|
103
102
|
}>;
|
|
104
|
-
error: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
103
|
+
error: import("drizzle-orm/sqlite-core/index.js").SQLiteColumn<{
|
|
105
104
|
name: "error";
|
|
106
105
|
tableName: "capture_attempts";
|
|
107
106
|
dataType: "string";
|
|
@@ -120,7 +119,7 @@ declare const captureAttempts: import("drizzle-orm/sqlite-core").SQLiteTableWith
|
|
|
120
119
|
}, {}, {
|
|
121
120
|
length: number | undefined;
|
|
122
121
|
}>;
|
|
123
|
-
reqId: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
122
|
+
reqId: import("drizzle-orm/sqlite-core/index.js").SQLiteColumn<{
|
|
124
123
|
name: "req_id";
|
|
125
124
|
tableName: "capture_attempts";
|
|
126
125
|
dataType: "string";
|
|
@@ -139,7 +138,7 @@ declare const captureAttempts: import("drizzle-orm/sqlite-core").SQLiteTableWith
|
|
|
139
138
|
}, {}, {
|
|
140
139
|
length: number | undefined;
|
|
141
140
|
}>;
|
|
142
|
-
storyCount: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
141
|
+
storyCount: import("drizzle-orm/sqlite-core/index.js").SQLiteColumn<{
|
|
143
142
|
name: "story_count";
|
|
144
143
|
tableName: "capture_attempts";
|
|
145
144
|
dataType: "number";
|
|
@@ -156,7 +155,7 @@ declare const captureAttempts: import("drizzle-orm/sqlite-core").SQLiteTableWith
|
|
|
156
155
|
identity: undefined;
|
|
157
156
|
generated: undefined;
|
|
158
157
|
}, {}, {}>;
|
|
159
|
-
failedCount: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
158
|
+
failedCount: import("drizzle-orm/sqlite-core/index.js").SQLiteColumn<{
|
|
160
159
|
name: "failed_count";
|
|
161
160
|
tableName: "capture_attempts";
|
|
162
161
|
dataType: "number";
|
|
@@ -173,7 +172,7 @@ declare const captureAttempts: import("drizzle-orm/sqlite-core").SQLiteTableWith
|
|
|
173
172
|
identity: undefined;
|
|
174
173
|
generated: undefined;
|
|
175
174
|
}, {}, {}>;
|
|
176
|
-
queuedAt: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
175
|
+
queuedAt: import("drizzle-orm/sqlite-core/index.js").SQLiteColumn<{
|
|
177
176
|
name: "queued_at";
|
|
178
177
|
tableName: "capture_attempts";
|
|
179
178
|
dataType: "string";
|
|
@@ -192,7 +191,7 @@ declare const captureAttempts: import("drizzle-orm/sqlite-core").SQLiteTableWith
|
|
|
192
191
|
}, {}, {
|
|
193
192
|
length: number | undefined;
|
|
194
193
|
}>;
|
|
195
|
-
startedAt: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
194
|
+
startedAt: import("drizzle-orm/sqlite-core/index.js").SQLiteColumn<{
|
|
196
195
|
name: "started_at";
|
|
197
196
|
tableName: "capture_attempts";
|
|
198
197
|
dataType: "string";
|
|
@@ -211,7 +210,7 @@ declare const captureAttempts: import("drizzle-orm/sqlite-core").SQLiteTableWith
|
|
|
211
210
|
}, {}, {
|
|
212
211
|
length: number | undefined;
|
|
213
212
|
}>;
|
|
214
|
-
finishedAt: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
213
|
+
finishedAt: import("drizzle-orm/sqlite-core/index.js").SQLiteColumn<{
|
|
215
214
|
name: "finished_at";
|
|
216
215
|
tableName: "capture_attempts";
|
|
217
216
|
dataType: "string";
|
|
@@ -230,7 +229,7 @@ declare const captureAttempts: import("drizzle-orm/sqlite-core").SQLiteTableWith
|
|
|
230
229
|
}, {}, {
|
|
231
230
|
length: number | undefined;
|
|
232
231
|
}>;
|
|
233
|
-
createdAt: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
232
|
+
createdAt: import("drizzle-orm/sqlite-core/index.js").SQLiteColumn<{
|
|
234
233
|
name: "created_at";
|
|
235
234
|
tableName: "capture_attempts";
|
|
236
235
|
dataType: "string";
|
|
@@ -249,7 +248,7 @@ declare const captureAttempts: import("drizzle-orm/sqlite-core").SQLiteTableWith
|
|
|
249
248
|
}, {}, {
|
|
250
249
|
length: number | undefined;
|
|
251
250
|
}>;
|
|
252
|
-
updatedAt: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
251
|
+
updatedAt: import("drizzle-orm/sqlite-core/index.js").SQLiteColumn<{
|
|
253
252
|
name: "updated_at";
|
|
254
253
|
tableName: "capture_attempts";
|
|
255
254
|
dataType: "string";
|
|
@@ -272,11 +271,11 @@ declare const captureAttempts: import("drizzle-orm/sqlite-core").SQLiteTableWith
|
|
|
272
271
|
dialect: 'sqlite';
|
|
273
272
|
}>;
|
|
274
273
|
/** Narrow `capture_logs` table definition: every log line of an attempt. */
|
|
275
|
-
declare const captureLogs: import("drizzle-orm/sqlite-core").SQLiteTableWithColumns<{
|
|
274
|
+
declare const captureLogs: import("drizzle-orm/sqlite-core/table.js").SQLiteTableWithColumns<{
|
|
276
275
|
name: "capture_logs";
|
|
277
276
|
schema: undefined;
|
|
278
277
|
columns: {
|
|
279
|
-
id: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
278
|
+
id: import("drizzle-orm/sqlite-core/index.js").SQLiteColumn<{
|
|
280
279
|
name: "id";
|
|
281
280
|
tableName: "capture_logs";
|
|
282
281
|
dataType: "string";
|
|
@@ -295,7 +294,7 @@ declare const captureLogs: import("drizzle-orm/sqlite-core").SQLiteTableWithColu
|
|
|
295
294
|
}, {}, {
|
|
296
295
|
length: number | undefined;
|
|
297
296
|
}>;
|
|
298
|
-
projectId: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
297
|
+
projectId: import("drizzle-orm/sqlite-core/index.js").SQLiteColumn<{
|
|
299
298
|
name: "project_id";
|
|
300
299
|
tableName: "capture_logs";
|
|
301
300
|
dataType: "string";
|
|
@@ -314,7 +313,7 @@ declare const captureLogs: import("drizzle-orm/sqlite-core").SQLiteTableWithColu
|
|
|
314
313
|
}, {}, {
|
|
315
314
|
length: number | undefined;
|
|
316
315
|
}>;
|
|
317
|
-
buildId: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
316
|
+
buildId: import("drizzle-orm/sqlite-core/index.js").SQLiteColumn<{
|
|
318
317
|
name: "build_id";
|
|
319
318
|
tableName: "capture_logs";
|
|
320
319
|
dataType: "string";
|
|
@@ -333,7 +332,7 @@ declare const captureLogs: import("drizzle-orm/sqlite-core").SQLiteTableWithColu
|
|
|
333
332
|
}, {}, {
|
|
334
333
|
length: number | undefined;
|
|
335
334
|
}>;
|
|
336
|
-
attemptId: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
335
|
+
attemptId: import("drizzle-orm/sqlite-core/index.js").SQLiteColumn<{
|
|
337
336
|
name: "attempt_id";
|
|
338
337
|
tableName: "capture_logs";
|
|
339
338
|
dataType: "string";
|
|
@@ -352,7 +351,7 @@ declare const captureLogs: import("drizzle-orm/sqlite-core").SQLiteTableWithColu
|
|
|
352
351
|
}, {}, {
|
|
353
352
|
length: number | undefined;
|
|
354
353
|
}>;
|
|
355
|
-
seq: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
354
|
+
seq: import("drizzle-orm/sqlite-core/index.js").SQLiteColumn<{
|
|
356
355
|
name: "seq";
|
|
357
356
|
tableName: "capture_logs";
|
|
358
357
|
dataType: "number";
|
|
@@ -369,7 +368,7 @@ declare const captureLogs: import("drizzle-orm/sqlite-core").SQLiteTableWithColu
|
|
|
369
368
|
identity: undefined;
|
|
370
369
|
generated: undefined;
|
|
371
370
|
}, {}, {}>;
|
|
372
|
-
level: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
371
|
+
level: import("drizzle-orm/sqlite-core/index.js").SQLiteColumn<{
|
|
373
372
|
name: "level";
|
|
374
373
|
tableName: "capture_logs";
|
|
375
374
|
dataType: "string";
|
|
@@ -388,7 +387,7 @@ declare const captureLogs: import("drizzle-orm/sqlite-core").SQLiteTableWithColu
|
|
|
388
387
|
}, {}, {
|
|
389
388
|
length: number | undefined;
|
|
390
389
|
}>;
|
|
391
|
-
message: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
390
|
+
message: import("drizzle-orm/sqlite-core/index.js").SQLiteColumn<{
|
|
392
391
|
name: "message";
|
|
393
392
|
tableName: "capture_logs";
|
|
394
393
|
dataType: "string";
|
|
@@ -407,7 +406,7 @@ declare const captureLogs: import("drizzle-orm/sqlite-core").SQLiteTableWithColu
|
|
|
407
406
|
}, {}, {
|
|
408
407
|
length: number | undefined;
|
|
409
408
|
}>;
|
|
410
|
-
fields: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
409
|
+
fields: import("drizzle-orm/sqlite-core/index.js").SQLiteColumn<{
|
|
411
410
|
name: "fields";
|
|
412
411
|
tableName: "capture_logs";
|
|
413
412
|
dataType: "string";
|
|
@@ -426,7 +425,7 @@ declare const captureLogs: import("drizzle-orm/sqlite-core").SQLiteTableWithColu
|
|
|
426
425
|
}, {}, {
|
|
427
426
|
length: number | undefined;
|
|
428
427
|
}>;
|
|
429
|
-
createdAt: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
428
|
+
createdAt: import("drizzle-orm/sqlite-core/index.js").SQLiteColumn<{
|
|
430
429
|
name: "created_at";
|
|
431
430
|
tableName: "capture_logs";
|
|
432
431
|
dataType: "string";
|
|
@@ -477,6 +476,5 @@ interface CaptureLog {
|
|
|
477
476
|
fields: string | null;
|
|
478
477
|
createdAt: string;
|
|
479
478
|
}
|
|
480
|
-
//#endregion
|
|
481
479
|
export { CaptureAttempt, CaptureLog, captureAttempts, captureLogs };
|
|
482
480
|
//# sourceMappingURL=capture-attempt.d.mts.map
|
|
@@ -4,7 +4,7 @@ import.meta.url;
|
|
|
4
4
|
import { projects } from "./project.mjs";
|
|
5
5
|
import { builds } from "./build.mjs";
|
|
6
6
|
import { index, integer, sqliteTable, text, uniqueIndex } from "drizzle-orm/sqlite-core";
|
|
7
|
-
|
|
7
|
+
// src/schema/capture-attempt.ts
|
|
8
8
|
/** Narrow `capture_attempts` table definition: one row per build capture run. */
|
|
9
9
|
const captureAttempts = sqliteTable("capture_attempts", {
|
|
10
10
|
id: text("id").primaryKey(),
|
|
@@ -34,7 +34,6 @@ const captureLogs = sqliteTable("capture_logs", {
|
|
|
34
34
|
fields: text("fields"),
|
|
35
35
|
createdAt: text("created_at").notNull()
|
|
36
36
|
}, (t) => [index("capture_logs_attempt_seq_idx").on(t.attemptId, t.seq)]);
|
|
37
|
-
//#endregion
|
|
38
37
|
export { captureAttempts, captureLogs };
|
|
39
38
|
|
|
40
39
|
//# sourceMappingURL=capture-attempt.mjs.map
|