mirror of
https://github.com/darksaid98/Carbon.git
synced 2026-12-03 14:38:51 +00:00
add H2 user storage
This commit is contained in:
1 parent
1409b4981d
commit
1b61afb687
10 files changed
+85
-19
No files matched your search
@@ -0,0 +1,22 @@
|
||||
CREATE TABLE carbon_users (
|
||||
`id` UUID NOT NULL PRIMARY KEY,
|
||||
`muted` BOOLEAN,
|
||||
`deafened` BOOLEAN,
|
||||
`selectedchannel` VARCHAR(256),
|
||||
`displayname` VARCHAR(1024),
|
||||
`lastwhispertarget` UUID,
|
||||
`whisperreplytarget` UUID,
|
||||
`spying` BOOLEAN
|
||||
);
|
||||
|
||||
CREATE TABLE carbon_ignores (
|
||||
`id` UUID NOT NULL,
|
||||
`ignoredplayer` UUID NOT NULL,
|
||||
PRIMARY KEY (id, ignoredplayer)
|
||||
);
|
||||
|
||||
CREATE TABLE carbon_leftchannels (
|
||||
`id` UUID NOT NULL,
|
||||
`channel` VARCHAR(256) NOT NULL,
|
||||
PRIMARY KEY (id, channel)
|
||||
);
|
||||
@@ -1,17 +1,17 @@
|
||||
CREATE TABLE carbon_users (
|
||||
id uuid NOT NULL PRIMARY KEY,
|
||||
id UUID NOT NULL PRIMARY KEY,
|
||||
muted BOOLEAN,
|
||||
deafened BOOLEAN,
|
||||
selectedchannel VARCHAR(256),
|
||||
username VARCHAR(20),
|
||||
displayname VARCHAR(1024),
|
||||
lastwhispertarget uuid,
|
||||
whisperreplytarget uuid,
|
||||
lastwhispertarget UUID,
|
||||
whisperreplytarget UUID,
|
||||
spying BOOLEAN
|
||||
);
|
||||
|
||||
CREATE TABLE carbon_ignores (
|
||||
id uuid NOT NULL,
|
||||
ignoredplayer uuid NOT NULL,
|
||||
id UUID NOT NULL,
|
||||
ignoredplayer UUID NOT NULL,
|
||||
PRIMARY KEY (id, ignoredplayer)
|
||||
);
|
||||
@@ -1,5 +1,5 @@
|
||||
CREATE TABLE carbon_leftchannels (
|
||||
id uuid NOT NULL,
|
||||
id UUID NOT NULL,
|
||||
channel VARCHAR(100) NOT NULL,
|
||||
PRIMARY KEY (id, channel)
|
||||
);
|
||||
Reference in new issue
Block a user