Leader-Service/drizzle/0000_wide_darkhawk.sql

14 lines
402 B
MySQL
Raw Permalink Normal View History

2024-12-16 09:57:56 +00:00
CREATE TABLE "IoT-Sensors-Data" (
"id" serial PRIMARY KEY NOT NULL,
"deviceType" integer NOT NULL,
"deviceID" integer NOT NULL,
"timestamp" date NOT NULL,
"xCoordinates" integer NOT NULL,
"yCoordinates" integer NOT NULL,
"zCoordinates" integer NOT NULL,
"dataType" text NOT NULL,
"mean_value" real NOT NULL,
"std_value" real NOT NULL,
CONSTRAINT "IoT-Sensors-Data_id_unique" UNIQUE("id")
);