@dudousxd/nestjs-durable-store-prisma 0.8.1 → 0.9.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dudousxd/nestjs-durable-store-prisma",
3
- "version": "0.8.1",
3
+ "version": "0.9.0",
4
4
  "description": "Prisma adapter for the nestjs-durable StateStore",
5
5
  "license": "MIT",
6
6
  "author": "Davide Carvalho",
@@ -26,8 +26,8 @@
26
26
  "prisma": "6.19.3",
27
27
  "typescript": "5.9.3",
28
28
  "tsup": "8.3.5",
29
- "@dudousxd/nestjs-durable-core": "^0.28.1",
30
- "@dudousxd/nestjs-durable-testing": "^0.4.1"
29
+ "@dudousxd/nestjs-durable-core": "^0.28.2",
30
+ "@dudousxd/nestjs-durable-testing": "^0.5.0"
31
31
  },
32
32
  "module": "./dist/index.js",
33
33
  "exports": {
@@ -4,19 +4,19 @@
4
4
  model DurableWorkflowRun {
5
5
  id String @id
6
6
  workflow String
7
- workflowVersion String
7
+ workflowVersion String @map("workflow_version")
8
8
  status String
9
9
  input Json?
10
10
  output Json?
11
11
  error Json?
12
- wakeAt BigInt?
13
- lockedBy String?
14
- lockedUntil DateTime?
15
- recoveryAttempts Int?
12
+ wakeAt BigInt? @map("wake_at")
13
+ lockedBy String? @map("locked_by")
14
+ lockedUntil DateTime? @map("locked_until")
15
+ recoveryAttempts Int? @map("recovery_attempts")
16
16
  tags Json?
17
- searchAttributes Json?
18
- createdAt DateTime
19
- updatedAt DateTime
17
+ searchAttributes Json? @map("search_attributes")
18
+ createdAt DateTime @map("created_at")
19
+ updatedAt DateTime @map("updated_at")
20
20
 
21
21
  attributes DurableRunAttribute[]
22
22
 
@@ -30,10 +30,10 @@ model DurableWorkflowRun {
30
30
  // in-process filter. Maintained on every createRun/updateRun. Numbers land in `numValue`, strings/
31
31
  // booleans in `strValue` (booleans as "true"/"false"); see core normalizeAttributeRows.
32
32
  model DurableRunAttribute {
33
- runId String
33
+ runId String @map("run_id")
34
34
  key String
35
- strValue String?
36
- numValue Float?
35
+ strValue String? @map("str_value")
36
+ numValue Float? @map("num_value")
37
37
 
38
38
  run DurableWorkflowRun @relation(fields: [runId], references: [id], onDelete: Cascade)
39
39
 
@@ -44,22 +44,22 @@ model DurableRunAttribute {
44
44
  }
45
45
 
46
46
  model DurableStepCheckpoint {
47
- runId String
47
+ runId String @map("run_id")
48
48
  seq Int
49
49
  name String
50
50
  kind String
51
- stepId String
51
+ stepId String @map("step_id")
52
52
  status String
53
53
  input Json?
54
54
  output Json?
55
55
  error Json?
56
56
  events Json?
57
57
  attempts Int
58
- workerGroup String?
59
- wakeAt BigInt?
60
- enqueuedAt DateTime?
61
- startedAt DateTime
62
- finishedAt DateTime
58
+ workerGroup String? @map("worker_group")
59
+ wakeAt BigInt? @map("wake_at")
60
+ enqueuedAt DateTime? @map("enqueued_at")
61
+ startedAt DateTime @map("started_at")
62
+ finishedAt DateTime @map("finished_at")
63
63
 
64
64
  @@id([runId, seq])
65
65
  @@map("durable_step_checkpoints")
@@ -67,7 +67,7 @@ model DurableStepCheckpoint {
67
67
 
68
68
  model DurableSignalWaiter {
69
69
  token String @id
70
- runId String
70
+ runId String @map("run_id")
71
71
  seq Int
72
72
 
73
73
  @@map("durable_signal_waiters")