You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
CREATETABLEguacamole_entity (
entity_id INT(11) NOT NULL AUTO_INCREMENT,
name VARCHAR(128) NOT NULL,
type ENUM('USER') NOT NULL,
PRIMARY KEY (entity_id),
UNIQUE KEY UK_guacamole_entity_name_scope (type, name)
);
guacamole_user
CREATETABLEguacamole_user (
user_id INT(11) NOT NULL AUTO_INCREMENT,
entity_id INT(11) NOT NULL,
password_hash BINARY(32) NOT NULL,
password_salt BINARY(32),
password_date DATETIME NOT NULL,
full_name VARCHAR(256),
PRIMARY KEY (user_id),
UNIQUE KEY UK_guacamole_user_single_entity (entity_id),
CONSTRAINT FK_guacamole_user_entity
FOREIGN KEY (entity_id)
REFERENCES guacamole_entity (entity_id)
ON DELETE CASCADE
);
guacamole_connection
CREATETABLEguacamole_connection (
connection_id INT(11) NOT NULL AUTO_INCREMENT,
connection_name VARCHAR(128) NOT NULL,
protocol VARCHAR(32) NOT NULL,
PRIMARY KEY (connection_id)
);
guacamole_connection_parameter
CREATETABLEguacamole_connection_parameter (
connection_id INT(11) NOT NULL,
parameter_name VARCHAR(128) NOT NULL,
parameter_value VARCHAR(4096) NOT NULL,
PRIMARY KEY (connection_id, parameter_name),
CONSTRAINT FK_guacamole_connection_parameter_connection
FOREIGN KEY (connection_id)
REFERENCES guacamole_connection (connection_id)
ON DELETE CASCADE
);
guacamole_connection_permission
CREATETABLEguacamole_connection_permission (
entity_id INT(11) NOT NULL,
connection_id INT(11) NOT NULL,
permission ENUM('READ') NOT NULL,
PRIMARY KEY (entity_id, connection_id, permission),
CONSTRAINT FK_guacamole_connection_permission_entity
FOREIGN KEY (entity_id)
REFERENCES guacamole_entity (entity_id)
ON DELETE CASCADE,
CONSTRAINT FK_guacamole_connection_permission_connection
FOREIGN KEY (connection_id)
REFERENCES guacamole_connection (connection_id)
ON DELETE CASCADE
);