From d66fd6a6c81700d9aaf905cddad0870c647f5671 Mon Sep 17 00:00:00 2001 From: Agusti Fernandez Pardo Date: Wed, 6 Apr 2022 16:49:13 +0200 Subject: [PATCH] fix 30 day -> 30 days in expiresAt --- packages/prisma/schema.prisma | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/prisma/schema.prisma b/packages/prisma/schema.prisma index 12acb910cd..f2f83b5279 100644 --- a/packages/prisma/schema.prisma +++ b/packages/prisma/schema.prisma @@ -370,7 +370,7 @@ model ApiKey { userId Int note String? createdAt DateTime @default(now()) - expiresAt DateTime @default(dbgenerated("NOW() + interval '30 day'")) + expiresAt DateTime @default(dbgenerated("NOW() + interval '30 days'")) lastUsedAt DateTime @default(now()) hashedKey String @unique() user User? @relation(fields: [userId], references: [id], onDelete: Cascade)