From d559cb9315fe95d086438e53710bf11c7879182d Mon Sep 17 00:00:00 2001 From: Alexis Fourmaux Date: Sat, 9 May 2026 15:34:23 +0200 Subject: [PATCH] fix: add pulses to db and changes date to timestamp to allow granularity --- app/consumer/initdb/01_schema.sql | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/consumer/initdb/01_schema.sql b/app/consumer/initdb/01_schema.sql index a813e28..ab2916a 100644 --- a/app/consumer/initdb/01_schema.sql +++ b/app/consumer/initdb/01_schema.sql @@ -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") );