mirror of
https://github.com/processone/ejabberd
synced 2025-10-05 19:42:11 +02:00
Reorganize SQL schema files
This commit is contained in:
parent
8a441b9cac
commit
e47475fff6
64 changed files with 2931 additions and 0 deletions
18
sql/mysql/mod_shared_roster.sql
Normal file
18
sql/mysql/mod_shared_roster.sql
Normal file
|
@ -0,0 +1,18 @@
|
|||
CREATE TABLE sr_group (
|
||||
name varchar(191) NOT NULL,
|
||||
server_host text NOT NULL,
|
||||
opts text NOT NULL,
|
||||
created_at timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
||||
PRIMARY KEY (server_host(191), name)
|
||||
) ENGINE=InnoDB CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
|
||||
|
||||
CREATE TABLE sr_user (
|
||||
jid varchar(191) NOT NULL,
|
||||
server_host text NOT NULL,
|
||||
grp varchar(191) NOT NULL,
|
||||
created_at timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
||||
PRIMARY KEY (server_host(191), jid, grp)
|
||||
) ENGINE=InnoDB CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
|
||||
|
||||
CREATE INDEX i_sr_user_sh_jid ON sr_user(server_host(191), jid);
|
||||
CREATE INDEX i_sr_user_sh_grp ON sr_user(server_host(191), grp);
|
Loading…
Add table
Add a link
Reference in a new issue