aboutsummaryrefslogtreecommitdiff
path: root/sql/lite.sql
diff options
context:
space:
mode:
Diffstat (limited to 'sql/lite.sql')
-rw-r--r--sql/lite.sql16
1 files changed, 16 insertions, 0 deletions
diff --git a/sql/lite.sql b/sql/lite.sql
index 8f128c331..e8755029c 100644
--- a/sql/lite.sql
+++ b/sql/lite.sql
@@ -432,3 +432,19 @@ CREATE TABLE mix_pam (
CREATE UNIQUE INDEX i_mix_pam ON mix_pam (username, channel, service);
CREATE INDEX i_mix_pam_us ON mix_pam (username);
+
+CREATE TABLE mqtt_pub (
+ username text NOT NULL,
+ resource text NOT NULL,
+ topic text NOT NULL,
+ qos smallint NOT NULL,
+ payload blob NOT NULL,
+ payload_format smallint NOT NULL,
+ content_type text NOT NULL,
+ response_topic text NOT NULL,
+ correlation_data blob NOT NULL,
+ user_properties blob NOT NULL,
+ expiry bigint NOT NULL
+);
+
+CREATE UNIQUE INDEX i_mqtt_topic ON mqtt_pub (topic);