Files
spooky-spotify-showcase/prisma/schema.prisma
2024-10-11 01:30:52 -03:00

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
}