Skip to content

Commit b49f5a1

Browse files
committed
Added idempotencyKeyExpiresAt to Waitpoints
1 parent 720f461 commit b49f5a1

File tree

3 files changed

+6
-1
lines changed

3 files changed

+6
-1
lines changed

internal-packages/database/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,4 @@
2020
"db:reset": "prisma migrate reset",
2121
"typecheck": "tsc --noEmit"
2222
}
23-
}
23+
}
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
-- AlterTable
2+
ALTER TABLE "Waitpoint" ADD COLUMN "idempotencyKeyExpiresAt" TIMESTAMP(3);

internal-packages/database/prisma/schema.prisma

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2051,6 +2051,9 @@ model Waitpoint {
20512051
/// If this is true then we can show it in the dashboard/return it from the SDK
20522052
userProvidedIdempotencyKey Boolean
20532053
2054+
/// If there's a user provided idempotency key, this is the time it expires at
2055+
idempotencyKeyExpiresAt DateTime?
2056+
20542057
//todo
20552058
/// Will automatically deactivate the idempotencyKey when the waitpoint is completed
20562059
/// "Deactivating" means moving it to the inactiveIdempotencyKey field and generating a random new one for the main column

0 commit comments

Comments
 (0)