privatestaticfinalStringSELECT_USERSTORE_VERSION="SELECT * FROM metainfo WHERE key = 'user_store_version'";
privatestaticfinalStringSET_USERSTORE_VERSION="UPDATE metainfo SET value = ? WHERE key = 'user_store_version'";
privatestaticfinalStringCREATE_USER_TABLE="CREATE TABLE IF NOT EXISTS users(uuid VARCHAR(255) NOT NULL PRIMARY KEY, password VARCHAR(255), email VARCHAR(255), sessionDuration INT NOT NULL DEFAULT 10, username VARCHAR(255), realname VARCHAR(255));";
privatestaticfinalStringCREATE_USER_TABLE="CREATE TABLE IF NOT EXISTS users(uuid VARCHAR(255) NOT NULL PRIMARY KEY, password VARCHAR(255), email VARCHAR(255), session_duration INT NOT NULL DEFAULT 10, username VARCHAR(255), realname VARCHAR(255));";
privatestaticfinalStringCREATE_USER_PERMISSION_TABLE="CREATE TABLE IF NOT EXISTS user_permissions(uuid VARCHAR(255), permission VARCHAR(50), PRIMARY KEY(uuid,permission));";
privatestaticfinalStringCOUNT_USERS="SELECT count(*) FROM users";
privatestaticfinalStringINSERT_USER="INSERT INTO users (uuid,password,email,sessionDuration,username,realname) VALUES (?,?,?,?,?,?)";
privatestaticfinalStringDROP_PERMISSIONS="DELETE FROM user_permissions WHERE uuid = ?";
privatestaticfinalStringINSERT_PERMISSIONS="INSERT INTO user_permissions (uuid, permission) VALUES (?,?)";
privatestaticfinalStringDROP_USER="DELETE FROM users WHERE uuid = ?";
privatestaticfinalStringLOAD_USER="SELECT * FROM users WHERE uuid = ?";
privatestaticfinalStringFIND_USER="SELECT * FROM users WHERE uuid = ? OR username LIKE ? OR realname LIKE ? ORDER BY COALESCE(uuid, ?), username";
privatestaticfinalStringLIST_USERS="SELECT * FROM users";
privatestaticfinalStringLIST_USER_PERMISSIONS="SELECT * FROM user_permissions WHERE uuid = ?";
privatestaticfinalStringSELECT_USERSTORE_VERSION="SELECT * FROM metainfo WHERE key = 'user_store_version'";
privatestaticfinalStringSET_USERSTORE_VERSION="UPDATE metainfo SET value = ? WHERE key = 'user_store_version'";
privatestaticfinalStringINSERT_USER="INSERT INTO users (uuid,password,email,session_duration,username,realname) VALUES (?,?,?,?,?,?)";
privatestaticfinalStringINSERT_PERMISSIONS="INSERT INTO user_permissions (uuid, permission) VALUES (?,?)";
privatestaticfinalStringDROP_PERMISSIONS="DELETE FROM user_permissions WHERE uuid = ?";
privatestaticfinalStringDROP_USER="DELETE FROM users WHERE uuid = ?";
privatestaticfinalStringUPDATE_PASSWORD="UPDATE users SET password = ? WHERE uuid = ?";