add H2 user storage

This commit is contained in:
Jason Penilla authored and Jason committed 2023-08-24 12:41:18 -07:00
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)
);