mirror of
https://github.com/FranP-code/spooky-spotify-showcase.git
synced 2025-10-13 00:02:36 +00:00
Add KeyValue model to schema
This commit is contained in:
@@ -18,3 +18,11 @@ model Post {
|
|||||||
|
|
||||||
@@index([name])
|
@@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
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user