mirror of
https://github.com/FranP-code/spooky-spotify-showcase.git
synced 2025-10-13 00:02:36 +00:00
37 lines
1.3 KiB
Plaintext
37 lines
1.3 KiB
Plaintext
// This is your Prisma schema file,
|
|
// learn more about it in the docs: https://pris.ly/d/prisma-schema
|
|
|
|
generator client {
|
|
provider = "prisma-client-js"
|
|
}
|
|
|
|
datasource db {
|
|
provider = "sqlite"
|
|
url = env("DATABASE_URL")
|
|
}
|
|
|
|
model Post {
|
|
id Int @id @default(autoincrement())
|
|
name String
|
|
createdAt DateTime @default(now())
|
|
updatedAt DateTime @updatedAt
|
|
|
|
@@index([name])
|
|
}
|
|
|
|
model SpookyImage {
|
|
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
|
|
}
|
|
|
|
model GeneratedImage {
|
|
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
|
|
}
|