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:
parent
8a441b9cac
commit
e47475fff6
64 changed files with 2931 additions and 0 deletions
10
sql/sqlite/mod_private.sql
Normal file
10
sql/sqlite/mod_private.sql
Normal 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);
|
Loading…
Add table
Add a link
Reference in a new issue