Initial commit: Hördle Web App

This commit is contained in:
Hördle Bot
2025-11-21 12:25:19 +01:00
commit c1bd141042
31 changed files with 8259 additions and 0 deletions

27
prisma/schema.prisma Normal file
View File

@@ -0,0 +1,27 @@
// 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 Song {
id Int @id @default(autoincrement())
title String
artist String
filename String // Filename in public/uploads
createdAt DateTime @default(now())
puzzles DailyPuzzle[]
}
model DailyPuzzle {
id Int @id @default(autoincrement())
date String @unique // Format: YYYY-MM-DD
songId Int
song Song @relation(fields: [songId], references: [id])
}