fix: add pulses to db and changes date to timestamp to allow granularity
This commit is contained in:
parent
54f2a29c19
commit
d559cb9315
1 changed files with 2 additions and 1 deletions
|
|
@ -28,7 +28,8 @@ CREATE TABLE IF NOT EXISTS "user" (
|
||||||
CREATE TABLE IF NOT EXISTS "reading" (
|
CREATE TABLE IF NOT EXISTS "reading" (
|
||||||
"reading_id" UUID NOT NULL DEFAULT uuidv7(),
|
"reading_id" UUID NOT NULL DEFAULT uuidv7(),
|
||||||
"device_id" UUID NOT NULL,
|
"device_id" UUID NOT NULL,
|
||||||
"date" DATE NOT NULL,
|
"date" TIMESTAMP NOT NULL,
|
||||||
|
"pulses" INTEGER NOT NULL,
|
||||||
PRIMARY KEY("reading_id")
|
PRIMARY KEY("reading_id")
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue