aboutsummaryrefslogtreecommitdiff
path: root/scripts/db-init.sql
diff options
context:
space:
mode:
authorlonkaars <loek@pipeframe.xyz>2022-10-05 20:57:10 +0200
committerlonkaars <loek@pipeframe.xyz>2022-10-05 20:57:10 +0200
commit4625b939aad3537bd130617944e01f5da693b23d (patch)
tree8cd4b9c94d9ca70b7386b369e16d81c659d01c6f /scripts/db-init.sql
parent9c7f4e157f10aa58e4b78636a2f8556be4637a07 (diff)
initial merge of qt client
Diffstat (limited to 'scripts/db-init.sql')
-rw-r--r--scripts/db-init.sql9
1 files changed, 9 insertions, 0 deletions
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);