1
0
Fork 0
mirror of https://github.com/processone/ejabberd synced 2025-10-06 03:50:15 +02:00

Reorganize SQL schema files

This commit is contained in:
Evgeniy Khramtsov 2018-07-19 10:24:19 +03:00
parent 8a441b9cac
commit e47475fff6
64 changed files with 2931 additions and 0 deletions

View file

@ -0,0 +1,10 @@
CREATE TABLE private_storage (
username text NOT NULL,
server_host text NOT NULL,
namespace text NOT NULL,
data text NOT NULL,
created_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP
);
CREATE UNIQUE INDEX i_server_host_username_namespace ON private_storage (server_host, username, namespace);
CREATE INDEX i_private_storage_sh_username ON private_storage (server_host, username);