feat: implement blood glucose tracking form and API with MariaDB database support
This commit is contained in:
@@ -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())
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user