feat: implement blood glucose tracking form and API with MariaDB database support

This commit is contained in:
jeremy bayse
2026-04-27 11:59:25 +02:00
parent 8df7a5ace8
commit f0ff0ce268
9 changed files with 185 additions and 471 deletions

View File

@@ -4,7 +4,7 @@ generator client {
}
datasource db {
provider = "sqlite"
provider = "mysql"
}
// ─── Auth ────────────────────────────────────────────────────────────────────
@@ -45,7 +45,7 @@ model Reading {
measuredAt DateTime
moment String
value Float
notes String?
notes String? @db.Text
createdAt DateTime @default(now())
@@index([userId, measuredAt])
@@ -71,7 +71,7 @@ model DailyAnalysis {
id String @id @default(cuid())
userId String @unique
user User @relation(fields: [userId], references: [id], onDelete: Cascade)
content String
content String @db.Text
generatedAt DateTime @default(now())
}