From 4625b939aad3537bd130617944e01f5da693b23d Mon Sep 17 00:00:00 2001 From: lonkaars Date: Wed, 5 Oct 2022 20:57:10 +0200 Subject: initial merge of qt client --- scripts/db-init.sql | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 scripts/db-init.sql (limited to 'scripts') diff --git a/scripts/db-init.sql b/scripts/db-init.sql new file mode 100644 index 0000000..4c4c4d4 --- /dev/null +++ b/scripts/db-init.sql @@ -0,0 +1,9 @@ +CREATE SCHEMA `WSdb`; +CREATE TABLE `DAB1Pract1`.`tblMain` ( + `ID` INT GENERATED ALWAYS AS (), + `temperature` DECIMAL(5,2) NULL, + `humidity` DECIMAL(5,2) NULL, + `pressure` DECIMAL(5,2) NULL, + `time` DATETIME NULL, + PRIMARY KEY (`ID`), + UNIQUE INDEX `ID_UNIQUE` (`ID` ASC) VISIBLE); -- cgit v1.2.3