Add KeyValue model to schema

This commit is contained in:
2024-10-10 19:37:04 -03:00
parent 4e27ab757c
commit 92036cc5a1

View File

@@ -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
}