findDevice tuned

This commit is contained in:
2021-04-29 16:13:27 +02:00
parent 16a54ce20c
commit f2975055fd
2 changed files with 63 additions and 21 deletions

8
schema/createSchema.sql Normal file
View File

@ -0,0 +1,8 @@
CREATE SEQUENCE device_s START WITH 1 INCREMENT BY 1;
CREATE TABLE device_t (
id integer PRIMARY KEY DEFAULT NEXTVAL('device_s'),
deviceid varchar(16) NOT NULL,
sharedsecret varchar(31) NOT NULL,
active boolean NOT NULL DEFAULT false
);