fix: add pulses to db and changes date to timestamp to allow granularity

This commit is contained in:
Alexis Fourmaux 2026-05-09 15:34:23 +02:00
parent 54f2a29c19
commit d559cb9315

View file

@ -28,7 +28,8 @@ CREATE TABLE IF NOT EXISTS "user" (
CREATE TABLE IF NOT EXISTS "reading" (
"reading_id" UUID NOT NULL DEFAULT uuidv7(),
"device_id" UUID NOT NULL,
"date" DATE NOT NULL,
"date" TIMESTAMP NOT NULL,
"pulses" INTEGER NOT NULL,
PRIMARY KEY("reading_id")
);