From 92036cc5a1b41e4232f19e106680db0deca6b4a6 Mon Sep 17 00:00:00 2001 From: Francisco Pessano Date: Thu, 10 Oct 2024 19:37:04 -0300 Subject: [PATCH] Add KeyValue model to schema --- prisma/schema.prisma | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/prisma/schema.prisma b/prisma/schema.prisma index ddb6e09..9472013 100644 --- a/prisma/schema.prisma +++ b/prisma/schema.prisma @@ -18,3 +18,11 @@ model Post { @@index([name]) } + +model KeyValue { + id Int @id @default(autoincrement()) // Auto-incrementing ID + key String @unique // The key must be unique + value String // Value associated with the key + createdAt DateTime @default(now()) // Timestamp for when the entry was created + updatedAt DateTime @updatedAt // Auto-updating timestamp for when the entry was last updated +}