(611,'SIGNAL',45,'Syntax:\nSIGNAL condition_value\n    [SET signal_information_item\n    [, signal_information_item] ...]\n\ncondition_value: {\n    SQLSTATE [VALUE] sqlstate_value\n  | condition_name\n}\n\nsignal_information_item:\n    condition_information_item_name = simple_value_specification\n\ncondition_information_item_name: {\n    CLASS_ORIGIN\n  | SUBCLASS_ORIGIN\n  | MESSAGE_TEXT\n  | MYSQL_ERRNO\n  | CONSTRAINT_CATALOG\n  | CONSTRAINT_SCHEMA\n  | CONSTRAINT_NAME\n  | CATALOG_NAME\n  | SCHEMA_NAME\n  | TABLE_NAME\n  | COLUMN_NAME\n  | CURSOR_NAME\n}\n\ncondition_name, simple_value_specification:\n    (see following discussion)\n\nSIGNAL is the way to \"return\" an error. SIGNAL provides error\ninformation to a handler, to an outer portion of the application, or to\nthe client. Also, it provides control over the error\'s characteristics\n(error number, SQLSTATE value, message). Without SIGNAL, it is\nnecessary to resort to workarounds such as deliberately referring to a\nnonexistent table to cause a routine to return an error.\n\nNo privileges are required to execute the SIGNAL statement.\n\nTo retrieve information from the diagnostics area, use the GET\nDIAGNOSTICS statement (see [HELP GET DIAGNOSTICS]). For information\nabout the diagnostics area, see\nhttps://dev.mysql.com/doc/refman/8.0/en/diagnostics-area.html.\n\nURL: https://dev.mysql.com/doc/refman/8.0/en/signal.html\n\n','CREATE PROCEDURE p (pval INT)\nBEGIN\n  DECLARE specialty CONDITION FOR SQLSTATE \'45000\';\n  IF pval = 0 THEN\n    SIGNAL SQLSTATE \'01000\';\n  ELSEIF pval = 1 THEN\n    SIGNAL SQLSTATE \'45000\'\n      SET MESSAGE_TEXT = \'An error occurred\';\n  ELSEIF pval = 2 THEN\n    SIGNAL specialty\n      SET MESSAGE_TEXT = \'An error occurred\';\n  ELSE\n    SIGNAL SQLSTATE \'01000\'\n      SET MESSAGE_TEXT = \'A warning occurred\', MYSQL_ERRNO = 1000;\n    SIGNAL SQLSTATE \'45000\'\n      SET MESSAGE_TEXT = \'An error occurred\', MYSQL_ERRNO = 1001;\n  END IF;\nEND;\n','https://dev.mysql.com/doc/refman/8.0/en/signal.html'),(612,'ALTER USER',46,'Syntax:\nALTER USER [IF EXISTS]\n    user [auth_option] [, user [auth_option]] ...\n    [REQUIRE {NONE | tls_option [[AND] tls_option] ...}]\n    [WITH resource_option [resource_option] ...]\n    [password_option | lock_option] ...\n    [COMMENT \'comment_string\' | ATTRIBUTE \'json_object\']\n\nALTER USER [IF EXISTS]\n    USER() user_func_auth_option\n\nALTER USER [IF EXISTS]\n    user [registration_option]\n\nALTER USER [IF EXISTS]\n    USER() [registration_option]\n\nALTER USER [IF EXISTS]\n    user DEFAULT ROLE\n    {NONE | ALL | role [, role ] ...}\n\nuser:\n    (see )\n\nauth_option: {\n    IDENTIFIED BY \'auth_string\'\n        [REPLACE \'current_auth_string\']\n        [RETAIN CURRENT PASSWORD]\n  | IDENTIFIED BY RANDOM PASSWORD\n        [REPLACE \'current_auth_string\']\n        [RETAIN CURRENT PASSWORD]\n  | IDENTIFIED WITH auth_plugin\n  | IDENTIFIED WITH auth_plugin BY \'auth_string\'\n        [REPLACE \'current_auth_string\']\n        [RETAIN CURRENT PASSWORD]\n  | IDENTIFIED WITH auth_plugin BY RANDOM PASSWORD\n        [REPLACE \'current_auth_string\']\n        [RETAIN CURRENT PASSWORD]\n  | IDENTIFIED WITH auth_plugin AS \'auth_string\'\n  | DISCARD OLD PASSWORD\n  | ADD factor factor_auth_option [ADD factor factor_auth_option]\n  | MODIFY factor factor_auth_option [MODIFY factor factor_auth_option]\n  | DROP factor [DROP factor]\n}\n\nuser_func_auth_option: {\n    IDENTIFIED BY \'auth_string\'\n        [REPLACE \'current_auth_string\']\n        [RETAIN CURRENT PASSWORD]\n  | DISCARD OLD PASSWORD\n}\n\nfactor_auth_option: {\n    IDENTIFIED BY \'auth_string\'\n  | IDENTIFIED BY RANDOM PASSWORD\n  | IDENTIFIED WITH auth_plugin BY \'auth_string\'\n  | IDENTIFIED WITH auth_plugin BY RANDOM PASSWORD\n  | IDENTIFIED WITH auth_plugin AS \'auth_string\'\n}\n\nregistration_option: {\n    factor INITIATE REGISTRATION\n  | factor FINISH REGISTRATION SET CHALLENGE_RESPONSE AS \'auth_string\'\n  | factor UNREGISTER\n}\n\nfactor: {2 | 3} FACTOR\n\ntls_option: {\n   SSL\n | X509\n | CIPHER \'cipher\'\n | ISSUER \'issuer\'\n | SUBJECT \'subject\'\n}\n\nresource_option: {\n    MAX_QUERIES_PER_HOUR count\n  | MAX_UPDATES_PER_HOUR count\n  | MAX_CONNECTIONS_PER_HOUR count\n  | MAX_USER_CONNECTIONS count\n}\n\npassword_option: {\n    PASSWORD EXPIRE [DEFAULT | NEVER | INTERVAL N DAY]\n  | PASSWORD HISTORY {DEFAULT | N}\n  | PASSWORD REUSE INTERVAL {DEFAULT | N DAY}\n  | PASSWORD REQUIRE CURRENT [DEFAULT | OPTIONAL]\n  | FAILED_LOGIN_ATTEMPTS N\n  | PASSWORD_LOCK_TIME {N | UNBOUNDED}\n}\n\nlock_option: {\n    ACCOUNT LOCK\n  | ACCOUNT UNLOCK\n}\n\nThe ALTER USER statement modifies MySQL accounts. It enables\nauthentication, role, SSL/TLS, resource-limit, password-management,\ncomment, and attribute properties to be modified for existing accounts.\nIt can also be used to lock and unlock accounts.\n\nIn most cases, ALTER USER requires the global CREATE USER privilege, or\nthe UPDATE privilege for the mysql system schema. The exceptions are:\n\no Any client who connects to the server using a nonanonymous account\n  can change the password for that account. (In particular, you can\n  change your own password.) To see which account the server\n  authenticated you as, invoke the CURRENT_USER() function:\n\nSELECT CURRENT_USER();\n\no For DEFAULT ROLE syntax, ALTER USER requires these privileges:\n\n  o Setting the default roles for another user requires the global\n    CREATE USER privilege, or the UPDATE privilege for the\n    mysql.default_roles system table.\n\n  o Setting the default roles for yourself requires no special\n    privileges, as long as the roles you want as the default have been\n    granted to you.\n\no Statements that modify secondary passwords require these privileges:\n\n  o The APPLICATION_PASSWORD_ADMIN privilege is required to use the\n    RETAIN CURRENT PASSWORD or DISCARD OLD PASSWORD clause for ALTER\n    USER statements that apply to your own account. The privilege is\n    required to manipulate your own secondary password because most\n    users require only one password.\n\n  o If an account is to be permitted to manipulate secondary passwords\n    for all accounts, it requires the CREATE USER privilege rather than\n    APPLICATION_PASSWORD_ADMIN.\n\nWhen the read_only system variable is enabled, ALTER USER additionally\nrequires the CONNECTION_ADMIN privilege (or the deprecated SUPER\nprivilege).\n\nAs of MySQL 8.0.27, these additional privilege considerations apply:\n\no The authentication_policy system variable places certain constraints\n  on how the authentication-related clauses of ALTER USER statements\n  may be used; for details, see the description of that variable. These\n  constraints do not apply if you have the AUTHENTICATION_POLICY_ADMIN\n  privilege.\n\no To modify an account that uses passwordless authentication, you must\n  have the PASSWORDLESS_USER_ADMIN privilege.\n\nBy default, an error occurs if you try to modify a user that does not\nexist. If the IF EXISTS clause is given, the statement produces a\nwarning for each named user that does not exist, rather than an error.\n\nURL: https://dev.mysql.com/doc/refman/8.0/en/alter-user.html\n\n','','https://dev.mysql.com/doc/refman/8.0/en/alter-user.html'),(613,'CREATE ROLE',46,'Syntax:\nCREATE ROLE [IF NOT EXISTS] role [, role ] ...\n\nCREATE ROLE creates one or more roles, which are named collections of\nprivileges. To use this statement, you must have the global CREATE ROLE\nor CREATE USER privilege. When the read_only system variable is\nenabled, CREATE ROLE additionally requires the CONNECTION_ADMIN\nprivilege (or the deprecated SUPER privilege).\n\nA role when created is locked, has no password, and is assigned the\ndefault authentication plugin. (These role attributes can be changed\nlater with the ALTER USER statement, by users who have the global\nCREATE USER privilege.)\n\nCREATE ROLE either succeeds for all named roles or rolls back and has\nno effect if any error occurs. By default, an error occurs if you try\nto create a role that already exists. If the IF NOT EXISTS clause is\ngiven, the statement produces a warning for each named role that\nalready exists, rather than an error.\n\nThe statement is written to the binary log if it succeeds, but not if\nit fails; in that case, rollback occurs and no changes are made. A\nstatement written to the binary log includes all named roles. If the IF\nNOT EXISTS clause is given, this includes even roles that already exist\nand were not created.\n\nEach role name uses the format described in\nhttps://dev.mysql.com/doc/refman/8.0/en/role-names.html. For example:\n\nCREATE ROLE \'admin\', \'developer\';\nCREATE ROLE \'webapp\'@\'localhost\';\n\nThe host name part of the role name, if omitted, defaults to \'%\'.\n\nFor role usage examples, see\nhttps://dev.mysql.com/doc/refman/8.0/en/roles.html.\n\nURL: https://dev.mysql.com/doc/refman/8.0/en/create-role.html\n\n','','https://dev.mysql.com/doc/refman/8.0/en/create-role.html'),(614,'CREATE USER',46,'Syntax:\nCREATE USER [IF NOT EXISTS]\n    user [auth_option] [, user [auth_option]] ...\n    DEFAULT ROLE role [, role ] ...\n    [REQUIRE {NONE | tls_option [[AND] tls_option] ...}]\n    [WITH resource_option [resource_option] ...]\n    [password_option | lock_option] ...\n    [COMMENT \'comment_string\' | ATTRIBUTE \'json_object\']\n\nuser:\n    (see )\n\nauth_option: {\n    IDENTIFIED BY \'auth_string\' [AND 2fa_auth_option]\n  | IDENTIFIED BY RANDOM PASSWORD [AND 2fa_auth_option]\n  | IDENTIFIED WITH auth_plugin [AND 2fa_auth_option]\n  | IDENTIFIED WITH auth_plugin BY \'auth_string\' [AND 2fa_auth_option]\n  | IDENTIFIED WITH auth_plugin BY RANDOM PASSWORD [AND 2fa_auth_option]\n  | IDENTIFIED WITH auth_plugin AS \'auth_string\' [AND 2fa_auth_option]\n  | IDENTIFIED WITH auth_plugin [initial_auth_option]\n}\n\n2fa_auth_option: {\n    IDENTIFIED BY \'auth_string\' [AND 3fa_auth_option]\n  | IDENTIFIED BY RANDOM PASSWORD [AND 3fa_auth_option]\n  | IDENTIFIED WITH auth_plugin [AND 3fa_auth_option]\n  | IDENTIFIED WITH auth_plugin BY \'auth_string\' [AND 3fa_auth_option]\n  | IDENTIFIED WITH auth_plugin BY RANDOM PASSWORD [AND 3fa_auth_option]\n  | IDENTIFIED WITH auth_plugin AS \'auth_string\' [AND 3fa_auth_option]\n}\n\n3fa_auth_option: {\n    IDENTIFIED BY \'auth_string\'\n  | IDENTIFIED BY RANDOM PASSWORD\n  | IDENTIFIED WITH auth_plugin\n  | IDENTIFIED WITH auth_plugin BY \'auth_string\'\n  | IDENTIFIED WITH auth_plugin BY RANDOM PASSWORD\n  | IDENTIFIED WITH auth_plugin AS \'auth_string\'\n}\n\ninitial_auth_option: {\n    INITIAL AUTHENTICATION IDENTIFIED BY {RANDOM PASSWORD | \'auth_string\'}\n  | INITIAL AUTHENTICATION IDENTIFIED WITH auth_plugin AS \'auth_string\'\n}\n\ntls_option: {\n   SSL\n | X509\n | CIPHER \'cipher\'\n | ISSUER \'issuer\'\n | SUBJECT \'subject\'\n}\n\nresource_option: {\n    MAX_QUERIES_PER_HOUR count\n  | MAX_UPDATES_PER_HOUR count\n  | MAX_CONNECTIONS_PER_HOUR count\n  | MAX_USER_CONNECTIONS count\n}\n\npassword_option: {\n    PASSWORD EXPIRE [DEFAULT | NEVER | INTERVAL N DAY]\n  | PASSWORD HISTORY {DEFAULT | N}\n  | PASSWORD REUSE INTERVAL {DEFAULT | N DAY}\n  | PASSWORD REQUIRE CURRENT [DEFAULT | OPTIONAL]\n  | FAILED_LOGIN_ATTEMPTS N\n  | PASSWORD_LOCK_TIME {N | UNBOUNDED}\n}\n\nlock_option: {\n    ACCOUNT LOCK\n  | ACCOUNT UNLOCK\n}\n\nThe CREATE USER statement creates new MySQL accounts. It enables\nauthentication, role, SSL/TLS, resource-limit, password-management,\ncomment, and attribute properties to be established for new accounts.\nIt also controls whether accounts are initially locked or unlocked.\n\nTo use CREATE USER, you must have the global CREATE USER privilege, or\nthe INSERT privilege for the mysql system schema. When the read_only\nsystem variable is enabled, CREATE USER additionally requires the\nCONNECTION_ADMIN privilege (or the deprecated SUPER privilege).\n\nAs of MySQL 8.0.27, these additional privilege considerations apply:\n\no The authentication_policy system variable places certain constraints\n  on how the authentication-related clauses of CREATE USER statements\n  may be used; for details, see the description of that variable. These\n  constraints do not apply if you have the AUTHENTICATION_POLICY_ADMIN\n  privilege.\n\no To create an account that uses passwordless authentication, you must\n  have the PASSWORDLESS_USER_ADMIN privilege.\n\nAs of MySQL 8.0.22, CREATE USER fails with an error if any account to\nbe created is named as the DEFINER attribute for any stored object.\n(That is, the statement fails if creating an account would cause the\naccount to adopt a currently orphaned stored object.) To perform the\noperation anyway, you must have the SET_USER_ID privilege; in this\ncase, the statement succeeds with a warning rather than failing with an\nerror. Without SET_USER_ID, to perform the user-creation operation,\ndrop the orphan objects, create the account and grant its privileges,\nand then re-create the dropped objects. For additional information,\nincluding how to identify which objects name a given account as the\nDEFINER attribute, see\nhttps://dev.mysql.com/doc/refman/8.0/en/stored-objects-security.html#st\nored-objects-security-orphan-objects.\n\nCREATE USER either succeeds for all named users or rolls back and has\nno effect if any error occurs. By default, an error occurs if you try\nto create a user that already exists. If the IF NOT EXISTS clause is\ngiven, the statement produces a warning for each named user that\nalready exists, rather than an error.\n\nURL: https://dev.mysql.com/doc/refman/8.0/en/create-user.html\n\n','','https://dev.mysql.com/doc/refman/8.0/en/create-user.html'),(615,'DROP ROLE',46,'Syntax:\nDROP ROLE [IF EXISTS] role [, role ] ...\n\nDROP ROLE removes one or more roles (named collections of privileges).\nTo use this statement, you must have the global DROP ROLE or CREATE\nUSER privilege. When the read_only system variable is enabled, DROP\nROLE additionally requires the CONNECTION_ADMIN privilege (or the\ndeprecated SUPER privilege).\n\nAs of MySQL 8.0.16, users who have the CREATE USER privilege can use\nthis statement to drop accounts that are locked or unlocked. Users who\nhave the DROP ROLE privilege can use this statement only to drop\naccounts that are locked (unlocked accounts are presumably user\naccounts used to log in to the server and not just as roles).\n\nRoles named in the mandatory_roles system variable value cannot be\ndropped.\n\nDROP ROLE either succeeds for all named roles or rolls back and has no\neffect if any error occurs. By default, an error occurs if you try to\ndrop a role that does not exist. If the IF EXISTS clause is given, the\nstatement produces a warning for each named role that does not exist,\nrather than an error.\n\nThe statement is written to the binary log if it succeeds, but not if\nit fails; in that case, rollback occurs and no changes are made. A\nstatement written to the binary log includes all named roles. If the IF\nEXISTS clause is given, this includes even roles that do not exist and\nwere not dropped.\n\nEach role name uses the format described in\nhttps://dev.mysql.com/doc/refman/8.0/en/role-names.html. For example:\n\nDROP ROLE \'admin\', \'developer\';\nDROP ROLE \'webapp\'@\'localhost\';\n\nThe host name part of the role name, if omitted, defaults to \'%\'.\n\nA dropped role is automatically revoked from any user account (or role)\nto which the role was granted. Within any current session for such an\naccount, its adjusted privileges apply beginning with the next\nstatement executed.\n\nURL: https://dev.mysql.com/doc/refman/8.0/en/drop-role.html\n\n','','https://dev.mysql.com/doc/refman/8.0/en/drop-role.html'),(616,'DROP USER',46,'Syntax:\nDROP USER [IF EXISTS] user [, user] ...\n\nThe DROP USER statement removes one or more MySQL accounts and their\nprivileges. It removes privilege rows for the account from all grant\ntables.\n\nRoles named in the mandatory_roles system variable value cannot be\ndropped.\n\nTo use DROP USER, you must have the global CREATE USER privilege, or\nthe DELETE privilege for the mysql system schema. When the read_only\nsystem variable is enabled, DROP USER additionally requires the\nCONNECTION_ADMIN privilege (or the deprecated SUPER privilege).\n\nAs of MySQL 8.0.22, DROP USER fails with an error if any account to be\ndropped is named as the DEFINER attribute for any stored object. (That\nis, the statement fails if dropping an account would cause a stored\nobject to become orphaned.) To perform the operation anyway, you must\nhave the SET_USER_ID privilege; in this case, the statement succeeds\nwith a warning rather than failing with an error. For additional\ninformation, including how to identify which objects name a given\naccount as the DEFINER attribute, see\nhttps://dev.mysql.com/doc/refman/8.0/en/stored-objects-security.html#st\nored-objects-security-orphan-objects.\n\nDROP USER either succeeds for all named users or rolls back and has no\neffect if any error occurs. By default, an error occurs if you try to\ndrop a user that does not exist. If the IF EXISTS clause is given, the\nstatement produces a warning for each named user that does not exist,\nrather than an error.\n\nThe statement is written to the binary log if it succeeds, but not if\nit fails; in that case, rollback occurs and no changes are made. A\nstatement written to the binary log includes all named users. If the IF\nEXISTS clause is given, this includes even users that do not exist and\nwere not dropped.\n\nEach account name uses the format described in\nhttps://dev.mysql.com/doc/refman/8.0/en/account-names.html. For\nexample:\n\nDROP USER \'jeffrey\'@\'localhost\';\n\nThe host name part of the account name, if omitted, defaults to \'%\'.\n\nURL: https://dev.mysql.com/doc/refman/8.0/en/drop-user.html\n\n','','https://dev.mysql.com/doc/refman/8.0/en/drop-user.html'),(617,'GRANT',46,'Syntax:\nGRANT\n    priv_type [(column_list)]\n      [, priv_type [(column_list)]] ...\n    ON [object_type] priv_level\n    TO user_or_role [, user_or_role] ...\n    [WITH GRANT OPTION]\n    [AS user\n        [WITH ROLE\n            DEFAULT\n          | NONE\n          | ALL\n          | ALL EXCEPT role [, role ] ...\n          | role [, role ] ...\n        ]\n    ]\n}\n\nGRANT PROXY ON user_or_role\n    TO user_or_role [, user_or_role] ...\n    [WITH GRANT OPTION]\n\nGRANT role [, role] ...\n    TO user_or_role [, user_or_role] ...\n    [WITH ADMIN OPTION]\n\nobject_type: {\n    TABLE\n  | FUNCTION\n  | PROCEDURE\n}\n\npriv_level: {\n    *\n  | *.*\n  | db_name.*\n  | db_name.tbl_name\n  | tbl_name\n  | db_name.routine_name\n}\n\nuser_or_role: {\n    user (see https://dev.mysql.com/doc/refman/8.0/en/account-names.html)\n  | role (see https://dev.mysql.com/doc/refman/8.0/en/role-names.html)\n}\n\nThe GRANT statement enables system administrators to grant privileges\nand roles, which can be granted to user accounts and roles. These\nsyntax restrictions apply:\n\no GRANT cannot mix granting both privileges and roles in the same\n  statement. A given GRANT statement must grant either privileges or\n  roles.\n\no The ON clause distinguishes whether the statement grants privileges\n  or roles:\n\n  o With ON, the statement grants privileges.\n\n  o Without ON, the statement grants roles.\n\n  o It is permitted to assign both privileges and roles to an account,\n    but you must use separate GRANT statements, each with syntax\n    appropriate to what is to be granted.\n\nFor more information about roles, see\nhttps://dev.mysql.com/doc/refman/8.0/en/roles.html.\n\nTo grant a privilege with GRANT, you must have the GRANT OPTION\nprivilege, and you must have the privileges that you are granting.\n(Alternatively, if you have the UPDATE privilege for the grant tables\nin the mysql system schema, you can grant any account any privilege.)\nWhen the read_only system variable is enabled, GRANT additionally\nrequires the CONNECTION_ADMIN privilege (or the deprecated SUPER\nprivilege).\n\nGRANT either succeeds for all named users and roles or rolls back and\nhas no effect if any error occurs. The statement is written to the\nbinary log only if it succeeds for all named users and roles.\n\nThe REVOKE statement is related to GRANT and enables administrators to\nremove account privileges. See [HELP REVOKE].\n\nEach account name uses the format described in\nhttps://dev.mysql.com/doc/refman/8.0/en/account-names.html. Each role\nname uses the format described in\nhttps://dev.mysql.com/doc/refman/8.0/en/role-names.html. For example:\n\nGRANT ALL ON db1.* TO \'jeffrey\'@\'localhost\';\nGRANT \'role1\', \'role2\' TO \'user1\'@\'localhost\', \'user2\'@\'localhost\';\nGRANT SELECT ON world.* TO \'role3\';\n\nThe host name part of the account or role name, if omitted, defaults to\n\'%\'.\n\nNormally, a database administrator first uses CREATE USER to create an\naccount and define its nonprivilege characteristics such as its\npassword, whether it uses secure connections, and limits on access to\nserver resources, then uses GRANT to define its privileges. ALTER USER\nmay be used to change the nonprivilege characteristics of existing\naccounts. For example:\n\nCREATE USER \'jeffrey\'@\'localhost\' IDENTIFIED BY \'password\';\nGRANT ALL ON db1.* TO \'jeffrey\'@\'localhost\';\nGRANT SELECT ON db2.invoice TO \'jeffrey\'@\'localhost\';\nALTER USER \'jeffrey\'@\'localhost\' WITH MAX_QUERIES_PER_HOUR 90;\n\nFrom the mysql program, GRANT responds with Query OK, 0 rows affected\nwhen executed successfully. To determine what privileges result from\nthe operation, use SHOW GRANTS. See [HELP SHOW GRANTS].\n\nURL: https://dev.mysql.com/doc/refman/8.0/en/grant.html\n\n','','https://dev.mysql.com/doc/refman/8.0/en/grant.html'),(618,'RENAME USER',46,'Syntax:\nRENAME USER old_user TO new_user\n    [, old_user TO new_user] ...\n\nThe RENAME USER statement renames existing MySQL accounts. An error\noccurs for old accounts that do not exist or new accounts that already\nexist.\n\nTo use RENAME USER, you must have the global CREATE USER privilege, or\nthe UPDATE privilege for the mysql system schema. When the read_only\nsystem variable is enabled, RENAME USER additionally requires the\nCONNECTION_ADMIN privilege (or the deprecated SUPER privilege).\n\nAs of MySQL 8.0.22, RENAME USER fails with an error if any account to\nbe renamed is named as the DEFINER attribute for any stored object.\n(That is, the statement fails if renaming an account would cause a\nstored object to become orphaned.) To perform the operation anyway, you\nmust have the SET_USER_ID privilege; in this case, the statement\nsucceeds with a warning rather than failing with an error. For\nadditional information, including how to identify which objects name a\ngiven account as the DEFINER attribute, see\nhttps://dev.mysql.com/doc/refman/8.0/en/stored-objects-security.html#st\nored-objects-security-orphan-objects.\n\nEach account name uses the format described in\nhttps://dev.mysql.com/doc/refman/8.0/en/account-names.html. For\nexample:\n\nRENAME USER \'jeffrey\'@\'localhost\' TO \'jeff\'@\'127.0.0.1\';\n\nThe host name part of the account name, if omitted, defaults to \'%\'.\n\nRENAME USER causes the privileges held by the old user to be those held\nby the new user. However, RENAME USER does not automatically drop or\ninvalidate databases or objects within them that the old user created.\nThis includes stored programs or views for which the DEFINER attribute\nnames the old user. Attempts to access such objects may produce an\nerror if they execute in definer security context. (For information\nabout security context, see\nhttps://dev.mysql.com/doc/refman/8.0/en/stored-objects-security.html.)\n\nThe privilege changes take effect as indicated in\nhttps://dev.mysql.com/doc/refman/8.0/en/privilege-changes.html.\n\nURL: https://dev.mysql.com/doc/refman/8.0/en/rename-user.html\n\n','','https://dev.mysql.com/doc/refman/8.0/en/rename-user.html'),(619,'REVOKE',46,'Syntax:\nREVOKE [IF EXISTS]\n    priv_type [(column_list)]\n      [, priv_type [(column_list)]] ...\n    ON [object_type] priv_level\n    FROM user_or_role [, user_or_role] ...\n    [IGNORE UNKNOWN USER]\n\nREVOKE [IF EXISTS] ALL [PRIVILEGES], GRANT OPTION\n    FROM user_or_role [, user_or_role] ...\n    [IGNORE UNKNOWN USER]\n\nREVOKE [IF EXISTS] PROXY ON user_or_role\n    FROM user_or_role [, user_or_role] ...\n    [IGNORE UNKNOWN USER]\n\nREVOKE [IF EXISTS] role [, role ] ...\n    FROM user_or_role [, user_or_role ] ...\n    [IGNORE UNKNOWN USER]\n\nuser_or_role: {\n    user (see https://dev.mysql.com/doc/refman/8.0/en/account-names.html)\n  | role (see https://dev.mysql.com/doc/refman/8.0/en/role-names.html\n}\n\nThe REVOKE statement enables system administrators to revoke privileges\nand roles, which can be revoked from user accounts and roles.\n\nFor details on the levels at which privileges exist, the permissible\npriv_type, priv_level, and object_type values, and the syntax for\nspecifying users and passwords, see [HELP GRANT].\n\nFor information about roles, see\nhttps://dev.mysql.com/doc/refman/8.0/en/roles.html.\n\nWhen the read_only system variable is enabled, REVOKE requires the\nCONNECTION_ADMIN or privilege (or the deprecated SUPER privilege), in\naddition to any other required privileges described in the following\ndiscussion.\n\nBeginning with MySQL 8.0.30, all the forms shown for REVOKE support an\nIF EXISTS option as well as an IGNORE UNKNOWN USER option. With neither\nof these modifications, REVOKE either succeeds for all named users and\nroles, or rolls back and has no effect if any error occurs; the\nstatement is written to the binary log only if it succeeds for all\nnamed users and roles. The precise effects of IF EXISTS and IGNORE\nUNKNOWN USER are discussed later in this section.\n\nEach account name uses the format described in\nhttps://dev.mysql.com/doc/refman/8.0/en/account-names.html. Each role\nname uses the format described in\nhttps://dev.mysql.com/doc/refman/8.0/en/role-names.html. For example:\n\nREVOKE INSERT ON *.* FROM \'jeffrey\'@\'localhost\';\nREVOKE \'role1\', \'role2\' FROM \'user1\'@\'localhost\', \'user2\'@\'localhost\';\nREVOKE SELECT ON world.* FROM \'role3\';\n\nThe host name part of the account or role name, if omitted, defaults to\n\'%\'.\n\nTo use the first REVOKE syntax, you must have the GRANT OPTION\nprivilege, and you must have the privileges that you are revoking.\n\nTo revoke all privileges, use the second syntax, which drops all\nglobal, database, table, column, and routine privileges for the named\nusers or roles:\n\nREVOKE ALL PRIVILEGES, GRANT OPTION\n  FROM user_or_role [, user_or_role] ...\n\nREVOKE ALL PRIVILEGES, GRANT OPTION does not revoke any roles.\n\nTo use this REVOKE syntax, you must have the global CREATE USER\nprivilege, or the UPDATE privilege for the mysql system schema.\n\nThe syntax for which the REVOKE keyword is followed by one or more role\nnames takes a FROM clause indicating one or more users or roles from\nwhich to revoke the roles.\n\nThe IF EXISTS and IGNORE UNKNOWN USER options (MySQL 8.0.30 and later)\nhave the effects listed here:\n\no IF EXISTS means that, if the target user or role exists but no such\n  privilege or role is found assigned to the target for any reason, a\n  warning is raised, instead of an error; if no privilege or role named\n  by the statement is assigned to the target, the statement has no\n  (other) effect. Otherwise, REVOKE executes normally; if the user does\n  not exist, the statement raises an error.\n\n  Example: Given table t1 in database test, we execute the following\n  statements, with the results shown.\n\nmysql> CREATE USER jerry@localhost;\nQuery OK, 0 rows affected (0.01 sec)\n\nmysql> REVOKE SELECT ON test.t1 FROM jerry@localhost;\nERROR 1147 (42000): There is no such grant defined for user \'jerry\' on host\n\'localhost\' on table \'t1\' \nmysql> REVOKE IF EXISTS SELECT ON test.t1 FROM jerry@localhost;\nQuery OK, 0 rows affected, 1 warning (0.00 sec)\n\nmysql> SHOW WARNINGS\\G\n*************************** 1. row ***************************\n  Level: Warning\n   Code: 1147\nMessage: There is no such grant defined for user \'jerry\' on host \'localhost\' on\ntable \'t1\' \n1 row in set (0.00 sec)\n\n  IF EXISTS causes an error to be demoted to a warning even if the\n  privilege or role named does not exist, or the statement attempts to\n  assign it at the wrong level.\n\no If the REVOKE statement includes IGNORE UNKNOWN USER, the statement\n  raises a warning for any target user or role named in the statement\n  but not found; if no target named by the statement exists, REVOKE\n  succeeds but has no actual effect. Otherwise, the statement executes\n  as usual, and attempting to revoke a privilege not assigned to the\n  target for whatever reason raises an error, as expected.\n\n  Example (continuing from the previous example):\n\nmysql> DROP USER IF EXISTS jerry@localhost;\nQuery OK, 0 rows affected (0.01 sec)\n\nmysql> REVOKE SELECT ON test.t1 FROM jerry@localhost;\nERROR 1147 (42000): There is no such grant defined for user \'jerry\' on host\n\'localhost\' on table \'t1\' \nmysql> REVOKE SELECT ON test.t1 FROM jerry@localhost IGNORE UNKNOWN USER;\nQuery OK, 0 rows affected, 1 warning (0.01 sec)\n\nmysql> SHOW WARNINGS\\G\n*************************** 1. row ***************************\n  Level: Warning\n   Code: 3162\nMessage: Authorization ID jerry does not exist.\n1 row in set (0.00 sec)\n\no The combination of IF EXISTS and IGNORE UNKNOWN USER means that\n  REVOKE never raises an error for an unknown target user or role or\n  for an unassigned or unavailable privilege, and the statement as\n  whole in such cases succeeds; roles or privileges are removed from\n  existing target users or roles whenever possible, and any revocation\n  which is not possible raises a warning and executes as a NOOP.\n\n  Example (again continuing from example in the previous item):\n\n# No such user, no such role\nmysql> DROP ROLE IF EXISTS Bogus;\nQuery OK, 0 rows affected, 1 warning (0.02 sec)\n\nmysql> SHOW WARNINGS;\n+-------+------+----------------------------------------------+\n| Level | Code | Message                                      |\n+-------+------+----------------------------------------------+\n| Note  | 3162 | Authorization ID \'Bogus\'@\'%\' does not exist. |\n+-------+------+----------------------------------------------+\n1 row in set (0.00 sec)\n\n# This statement attempts to revoke a nonexistent role from a nonexistent user\nmysql> REVOKE Bogus ON test FROM jerry@localhost;\nERROR 3619 (HY000): Illegal privilege level specified for test\n\n# The same, with IF EXISTS\nmysql> REVOKE IF EXISTS Bogus ON test FROM jerry@localhost;\nERROR 1147 (42000): There is no such grant defined for user \'jerry\' on host\n\'localhost\' on table \'test\' \n\n# The same, with IGNORE UNKNOWN USER\nmysql> REVOKE Bogus ON test FROM jerry@localhost IGNORE UNKNOWN USER;\nERROR 3619 (HY000): Illegal privilege level specified for test\n\n# The same, with both options\nmysql> REVOKE IF EXISTS Bogus ON test FROM jerry@localhost IGNORE UNKNOWN USER;\nQuery OK, 0 rows affected, 2 warnings (0.01 sec)\n\nmysql> SHOW WARNINGS;\n+---------+------+--------------------------------------------+\n| Level   | Code | Message                                    |\n+---------+------+--------------------------------------------+\n| Warning | 3619 | Illegal privilege level specified for test |\n| Warning | 3162 | Authorization ID jerry does not exist.     |\n+---------+------+--------------------------------------------+\n2 rows in set (0.00 sec)\n\nRoles named in the mandatory_roles system variable value cannot be\nrevoked. When IF EXISTS and IGNORE UNKNOWN USER are used together in a\nstatement that tries to remove a mandatory privilege, the error\nnormally raised by attempting to do this is demoted to a warning; the\nstatement executes successfully, but does not make any changes.\n\nA revoked role immediately affects any user account from which it was\nrevoked, such that within any current session for the account, its\nprivileges are adjusted for the next statement executed.\n\nRevoking a role revokes the role itself, not the privileges that it\nrepresents. Suppose that an account is granted a role that includes a\ngiven privilege, and is also granted the privilege explicitly or\nanother role that includes the privilege. In this case, the account\nstill possesses that privilege if the first role is revoked. For\nexample, if an account is granted two roles that each include SELECT,\nthe account still can select after either role is revoked.\n\nREVOKE ALL ON *.* (at the global level) revokes all granted static\nglobal privileges and all granted dynamic privileges.\n\nA revoked privilege that is granted but not known to the server is\nrevoked with a warning. This situation can occur for dynamic\nprivileges. For example, a dynamic privilege can be granted while the\ncomponent that registers it is installed, but if that component is\nsubsequently uninstalled, the privilege becomes unregistered, although\naccounts that possess the privilege still possess it and it can be\nrevoked from them.\n\nURL: https://dev.mysql.com/doc/refman/8.0/en/revoke.html\n\n','','https://dev.mysql.com/doc/refman/8.0/en/revoke.html'),(620,'SET DEFAULT ROLE',46,'Syntax:\nSET DEFAULT ROLE\n    {NONE | ALL | role [, role ] ...}\n    TO user [, user ] ...\n\nFor each user named immediately after the TO keyword, this statement\ndefines which roles become active when the user connects to the server\nand authenticates, or when the user executes the SET ROLE DEFAULT\nstatement during a session.\n\nSET DEFAULT ROLE is alternative syntax for ALTER USER ... DEFAULT ROLE\n(see [HELP ALTER USER]). However, ALTER USER can set the default for\nonly a single user, whereas SET DEFAULT ROLE can set the default for\nmultiple users. On the other hand, you can specify CURRENT_USER as the\nuser name for the ALTER USER statement, whereas you cannot for SET\nDEFAULT ROLE.\n\nSET DEFAULT ROLE requires these privileges:\n\no Setting the default roles for another user requires the global CREATE\n  USER privilege, or the UPDATE privilege for the mysql.default_roles\n  system table.\n\no Setting the default roles for yourself requires no special\n  privileges, as long as the roles you want as the default have been\n  granted to you.\n\nEach role name uses the format described in\nhttps://dev.mysql.com/doc/refman/8.0/en/role-names.html. For example:\n\nSET DEFAULT ROLE \'admin\', \'developer\' TO \'joe\'@\'10.0.0.1\';\n\nThe host name part of the role name, if omitted, defaults to \'%\'.\n\nThe clause following the DEFAULT ROLE keywords permits these values:\n\no NONE: Set the default to NONE (no roles).\n\no ALL: Set the default to all roles granted to the account.\n\no role [, role ] ...: Set the default to the named roles, which must\n  exist and be granted to the account at the time SET DEFAULT ROLE is\n  executed.\n\nURL: https://dev.mysql.com/doc/refman/8.0/en/set-default-role.html\n\n','','https://dev.mysql.com/doc/refman/8.0/en/set-default-role.html'),(621,'SET PASSWORD',46,'Syntax:\nSET PASSWORD [FOR user] auth_option\n    [REPLACE \'current_auth_string\']\n    [RETAIN CURRENT PASSWORD]\n\nauth_option: {\n    = \'auth_string\'\n  | TO RANDOM\n}\n\nThe SET PASSWORD statement assigns a password to a MySQL user account.\nThe password may be either explicitly specified in the statement or\nrandomly generated by MySQL. The statement may also include a\npassword-verification clause that specifies the account current\npassword to be replaced, and a clause that manages whether an account\nhas a secondary password. \'auth_string\' and \'current_auth_string\' each\nrepresent a cleartext (unencrypted) password.\n\n*Note*:\n\nRather than using SET PASSWORD to assign passwords, ALTER USER is the\npreferred statement for account alterations, including assigning\npasswords. For example:\n\nALTER USER user IDENTIFIED BY \'auth_string\';\n\n*Note*:\n\nClauses for random password generation, password verification, and\nsecondary passwords apply only to accounts that use an authentication\nplugin that stores credentials internally to MySQL. For accounts that\nuse a plugin that performs authentication against a credentials system\nthat is external to MySQL, password management must be handled\nexternally against that system as well. For more information about\ninternal credentials storage, see\nhttps://dev.mysql.com/doc/refman/8.0/en/password-management.html.\n\nThe REPLACE \'current_auth_string\' clause performs password verification\nand is available as of MySQL 8.0.13. If given:\n\no REPLACE specifies the account current password to be replaced, as a\n  cleartext (unencrypted) string.\n\no The clause must be given if password changes for the account are\n  required to specify the current password, as verification that the\n  user attempting to make the change actually knows the current\n  password.\n\no The clause is optional if password changes for the account may but\n  need not specify the current password.\n\no The statement fails if the clause is given but does not match the\n  current password, even if the clause is optional.\n\no REPLACE can be specified only when changing the account password for\n  the current user.\n\nFor more information about password verification by specifying the\ncurrent password, see\nhttps://dev.mysql.com/doc/refman/8.0/en/password-management.html.\n\nThe RETAIN CURRENT PASSWORD clause implements dual-password capability\nand is available as of MySQL 8.0.14. If given:\n\no RETAIN CURRENT PASSWORD retains an account current password as its\n  secondary password, replacing any existing secondary password. The\n  new password becomes the primary password, but clients can use the\n  account to connect to the server using either the primary or\n  secondary password. (Exception: If the new password specified by the\n  SET PASSWORD statement is empty, the secondary password becomes empty\n  as well, even if RETAIN CURRENT PASSWORD is given.)\n\no If you specify RETAIN CURRENT PASSWORD for an account that has an\n  empty primary password, the statement fails.\n\no If an account has a secondary password and you change its primary\n  password without specifying RETAIN CURRENT PASSWORD, the secondary\n  password remains unchanged.\n\nFor more information about use of dual passwords, see\nhttps://dev.mysql.com/doc/refman/8.0/en/password-management.html.\n\nSET PASSWORD permits these auth_option syntaxes:\n\no = \'auth_string\'\n\n  Assigns the account the given literal password.\n\no TO RANDOM\n\n  Assigns the account a password randomly generated by MySQL. The\n  statement also returns the cleartext password in a result set to make\n  it available to the user or application executing the statement.\n\n  For details about the result set and characteristics of randomly\n  generated passwords, see\n  https://dev.mysql.com/doc/refman/8.0/en/password-management.html#rand\n  om-password-generation.\n\n  Random password generation is available as of MySQL 8.0.18.\n\n*Important*:\n\nUnder some circumstances, SET PASSWORD may be recorded in server logs\nor on the client side in a history file such as ~/.mysql_history, which\nmeans that cleartext passwords may be read by anyone having read access\nto that information. For information about the conditions under which\nthis occurs for the server logs and how to control it, see\nhttps://dev.mysql.com/doc/refman/8.0/en/password-logging.html. For\nsimilar information about client-side logging, see\nhttps://dev.mysql.com/doc/refman/8.0/en/mysql-logging.html.\n\nSET PASSWORD can be used with or without a FOR clause that explicitly\nnames a user account:\n\no With a FOR user clause, the statement sets the password for the named\n  account, which must exist:\n\nSET PASSWORD FOR \'jeffrey\'@\'localhost\' = \'auth_string\';\n\no With no FOR user clause, the statement sets the password for the\n  current user:\n\nSET PASSWORD = \'auth_string\';\n\n  Any client who connects to the server using a nonanonymous account\n  can change the password for that account. (In particular, you can\n  change your own password.) To see which account the server\n  authenticated you as, invoke the CURRENT_USER() function:\n\nSELECT CURRENT_USER();\n\nIf a FOR user clause is given, the account name uses the format\ndescribed in\nhttps://dev.mysql.com/doc/refman/8.0/en/account-names.html. For\nexample:\n\nSET PASSWORD FOR \'bob\'@\'%.example.org\' = \'auth_string\';\n\nThe host name part of the account name, if omitted, defaults to \'%\'.\n\nSET PASSWORD interprets the string as a cleartext string, passes it to\nthe authentication plugin associated with the account, and stores the\nresult returned by the plugin in the account row in the mysql.user\nsystem table. (The plugin is given the opportunity to hash the value\ninto the encryption format it expects. The plugin may use the value as\nspecified, in which case no hashing occurs.)\n\nSetting the password for a named account (with a FOR clause) requires\nthe UPDATE privilege for the mysql system schema. Setting the password\nfor yourself (for a nonanonymous account with no FOR clause) requires\nno special privileges.\n\nStatements that modify secondary passwords require these privileges:\n\no The APPLICATION_PASSWORD_ADMIN privilege is required to use the\n  RETAIN CURRENT PASSWORD clause for SET PASSWORD statements that apply\n  to your own account. The privilege is required to manipulate your own\n  secondary password because most users require only one password.\n\no If an account is to be permitted to manipulate secondary passwords\n  for all accounts, it should be granted the CREATE USER privilege\n  rather than APPLICATION_PASSWORD_ADMIN.\n\nWhen the read_only system variable is enabled, SET PASSWORD requires\nthe CONNECTION_ADMIN privilege (or the deprecated SUPER privilege), in\naddition to any other required privileges.\n\nURL: https://dev.mysql.com/doc/refman/8.0/en/set-password.html\n\n','','https://dev.mysql.com/doc/refman/8.0/en/set-password.html'),(622,'SET ROLE',46,'Syntax:\nSET ROLE {\n    DEFAULT\n  | NONE\n  | ALL\n  | ALL EXCEPT role [, role ] ...\n  | role [, role ] ...\n}\n\nSET ROLE modifies the current user\'s effective privileges within the\ncurrent session by specifying which of its granted roles are active.\nGranted roles include those granted explicitly to the user and those\nnamed in the mandatory_roles system variable value.\n\nExamples:\n\nSET ROLE DEFAULT;\nSET ROLE \'role1\', \'role2\';\nSET ROLE ALL;\nSET ROLE ALL EXCEPT \'role1\', \'role2\';\n\nEach role name uses the format described in\nhttps://dev.mysql.com/doc/refman/8.0/en/role-names.html. The host name\npart of the role name, if omitted, defaults to \'%\'.\n\nPrivileges that the user has been granted directly (rather than through\nroles) remain unaffected by changes to the active roles.\n\nThe statement permits these role specifiers:\n\no DEFAULT: Activate the account default roles. Default roles are those\n  specified with SET DEFAULT ROLE.\n\n  When a user connects to the server and authenticates successfully,\n  the server determines which roles to activate as the default roles.\n  If the activate_all_roles_on_login system variable is enabled, the\n  server activates all granted roles. Otherwise, the server executes\n  SET ROLE DEFAULT implicitly. The server activates only default roles\n  that can be activated. The server writes warnings to its error log\n  for default roles that cannot be activated, but the client receives\n  no warnings.\n\n  If a user executes SET ROLE DEFAULT during a session, an error occurs\n  if any default role cannot be activated (for example, if it does not\n  exist or is not granted to the user). In this case, the current\n  active roles are not changed.\n\no NONE: Set the active roles to NONE (no active roles).\n\no ALL: Activate all roles granted to the account.\n\no ALL EXCEPT role [, role ] ...: Activate all roles granted to the\n  account except those named. The named roles need not exist or be\n  granted to the account.\n\no role [, role ] ...: Activate the named roles, which must be granted\n  to the account.\n\nURL: https://dev.mysql.com/doc/refman/8.0/en/set-role.html\n\n','','https://dev.mysql.com/doc/refman/8.0/en/set-role.html'),(623,'ALTER RESOURCE GROUP',46,'Syntax:\nALTER RESOURCE GROUP group_name\n    [VCPU [=] vcpu_spec [, vcpu_spec] ...]\n    [THREAD_PRIORITY [=] N]\n    [ENABLE|DISABLE [FORCE]]\n\nvcpu_spec: {N | M - N}\n\nALTER RESOURCE GROUP is used for resource group management (see\nhttps://dev.mysql.com/doc/refman/8.0/en/resource-groups.html). This\nstatement alters modifiable attributes of an existing resource group.\nIt requires the RESOURCE_GROUP_ADMIN privilege.\n\ngroup_name identifies which resource group to alter. If the group does\nnot exist, an error occurs.\n\nThe attributes for CPU affinity, priority, and whether the group is\nenabled can be modified with ALTER RESOURCE GROUP. These attributes are\nspecified the same way as described for CREATE RESOURCE GROUP (see\n[HELP CREATE RESOURCE GROUP]). Only the attributes specified are\naltered. Unspecified attributes retain their current values.\n\nThe FORCE modifier is used with DISABLE. It determines statement\nbehavior if the resource group has any threads assigned to it:\n\no If FORCE is not given, existing threads in the group continue to run\n  until they terminate, but new threads cannot be assigned to the\n  group.\n\no If FORCE is given, existing threads in the group are moved to their\n  respective default group (system threads to SYS_default, user threads\n  to USR_default).\n\nThe name and type attributes are set at group creation time and cannot\nbe modified thereafter with ALTER RESOURCE GROUP.\n\nExamples:\n\no Alter a group CPU affinity:\n\nALTER RESOURCE GROUP rg1 VCPU = 0-63;\n\no Alter a group thread priority:\n\nALTER RESOURCE GROUP rg2 THREAD_PRIORITY = 5;\n\no Disable a group, moving any threads assigned to it to the default\n  groups:\n\nALTER RESOURCE GROUP rg3 DISABLE FORCE;\n\nResource group management is local to the server on which it occurs.\nALTER RESOURCE GROUP statements are not written to the binary log and\nare not replicated.\n\nURL: https://dev.mysql.com/doc/refman/8.0/en/alter-resource-group.html\n\n','','https://dev.mysql.com/doc/refman/8.0/en/alter-resource-group.html'),(624,'CREATE RESOURCE GROUP',46,'Syntax:\nCREATE RESOURCE GROUP group_name\n    TYPE = {SYSTEM|USER}\n    [VCPU [=] vcpu_spec [, vcpu_spec] ...]\n    [THREAD_PRIORITY [=] N]\n    [ENABLE|DISABLE]\n\nvcpu_spec: {N | M - N}\n\nCREATE RESOURCE GROUP is used for resource group management (see\nhttps://dev.mysql.com/doc/refman/8.0/en/resource-groups.html). This\nstatement creates a new resource group and assigns its initial\nattribute values. It requires the RESOURCE_GROUP_ADMIN privilege.\n\ngroup_name identifies which resource group to create. If the group\nalready exists, an error occurs.\n\nThe TYPE attribute is required. It should be SYSTEM for a system\nresource group, USER for a user resource group. The group type affects\npermitted THREAD_PRIORITY values, as described later.\n\nThe VCPU attribute indicates the CPU affinity; that is, the set of\nvirtual CPUs the group can use:\n\no If VCPU is not given, the resource group has no CPU affinity and can\n  use all available CPUs.\n\no If VCPU is given, the attribute value is a list of comma-separated\n  CPU numbers or ranges:\n\n  o Each number must be an integer in the range from 0 to the number of\n    CPUs − 1. For example, on a system with 64 CPUs, the number can\n    range from 0 to 63.\n\n  o A range is given in the form M − N, where M is less than or equal\n    to N and both numbers are in the CPU range.\n\n  o If a CPU number is an integer outside the permitted range or is not\n    an integer, an error occurs.\n\nExample VCPU specifiers (these are all equivalent):\n\nVCPU = 0,1,2,3,9,10\nVCPU = 0-3,9-10\nVCPU = 9,10,0-3\nVCPU = 0,10,1,9,3,2\n\nThe THREAD_PRIORITY attribute indicates the priority for threads\nassigned to the group:\n\no If THREAD_PRIORITY is not given, the default priority is 0.\n\no If THREAD_PRIORITY is given, the attribute value must be in the range\n  from -20 (highest priority) to 19 (lowest priority). The priority for\n  system resource groups must be in the range from -20 to 0. The\n  priority for user resource groups must be in the range from 0 to 19.\n  Use of different ranges for system and user groups ensures that user\n  threads never have a higher priority than system threads.\n\nENABLE and DISABLE specify that the resource group is initially enabled\nor disabled. If neither is specified, the group is enabled by default.\nA disabled group cannot have threads assigned to it.\n\nExamples:\n\no Create an enabled user group that has a single CPU and the lowest\n  priority:\n\nCREATE RESOURCE GROUP rg1\n  TYPE = USER\n  VCPU = 0\n  THREAD_PRIORITY = 19;\n\no Create a disabled system group that has no CPU affinity (can use all\n  CPUs) and the highest priority:\n\nCREATE RESOURCE GROUP rg2\n  TYPE = SYSTEM\n  THREAD_PRIORITY = -20\n  DISABLE;\n\nResource group management is local to the server on which it occurs.\nCREATE RESOURCE GROUP statements are not written to the binary log and\nare not replicated.\n\nURL: https://dev.mysql.com/doc/refman/8.0/en/create-resource-group.html\n\n','','https://dev.mysql.com/doc/refman/8.0/en/create-resource-group.html'),(625,'DROP RESOURCE GROUP',46,'Syntax:\nDROP RESOURCE GROUP group_name [FORCE]\n\nDROP RESOURCE GROUP is used for resource group management (see\nhttps://dev.mysql.com/doc/refman/8.0/en/resource-groups.html). This\nstatement drops a resource group. It requires the RESOURCE_GROUP_ADMIN\nprivilege.\n\ngroup_name identifies which resource group to drop. If the group does\nnot exist, an error occurs.\n\nThe FORCE modifier determines statement behavior if the resource group\nhas any threads assigned to it:\n\no If FORCE is not given and any threads are assigned to the group, an\n  error occurs.\n\no If FORCE is given, existing threads in the group are moved to their\n  respective default group (system threads to SYS_default, user threads\n  to USR_default).\n\nExamples:\n\no Drop a group, failing if the group contains any threads:\n\nDROP RESOURCE GROUP rg1;\n\no Drop a group and move existing threads to the default groups:\n\nDROP RESOURCE GROUP rg2 FORCE;\n\nResource group management is local to the server on which it occurs.\nDROP RESOURCE GROUP statements are not written to the binary log and\nare not replicated.\n\nURL: https://dev.mysql.com/doc/refman/8.0/en/drop-resource-group.html\n\n','','https://dev.mysql.com/doc/refman/8.0/en/drop-resource-group.html'),(626,'SET RESOURCE GROUP',46,'Syntax:\nSET RESOURCE GROUP group_name\n    [FOR thread_id [, thread_id] ...]\n\nSET RESOURCE GROUP is used for resource group management (see\nhttps://dev.mysql.com/doc/refman/8.0/en/resource-groups.html). This\nstatement assigns threads to a resource group. It requires the\nRESOURCE_GROUP_ADMIN or RESOURCE_GROUP_USER privilege.\n\ngroup_name identifies which resource group to be assigned. Any\nthread_id values indicate threads to assign to the group. Thread IDs\ncan be determined from the Performance Schema threads table. If the\nresource group or any named thread ID does not exist, an error occurs.\n\nWith no FOR clause, the statement assigns the current thread for the\nsession to the resource group.\n\nWith a FOR clause that names thread IDs, the statement assigns those\nthreads to the resource group.\n\nFor attempts to assign a system thread to a user resource group or a\nuser thread to a system resource group, a warning occurs.\n\nExamples:\n\no Assign the current session thread to a group:\n\nSET RESOURCE GROUP rg1;\n\no Assign the named threads to a group:\n\nSET RESOURCE GROUP rg2 FOR 14, 78, 4;\n\nResource group management is local to the server on which it occurs.\nSET RESOURCE GROUP statements are not written to the binary log and are\nnot replicated.\n\nAn alternative to SET RESOURCE GROUP is the RESOURCE_GROUP optimizer\nhint, which assigns individual statements to a resource group. See\nhttps://dev.mysql.com/doc/refman/8.0/en/optimizer-hints.html.\n\nURL: https://dev.mysql.com/doc/refman/8.0/en/set-resource-group.html\n\n','','https://dev.mysql.com/doc/refman/8.0/en/set-resource-group.html'),(627,'ANALYZE TABLE',47,'Syntax:\nANALYZE [NO_WRITE_TO_BINLOG | LOCAL]\n    TABLE tbl_name [, tbl_name] ...\n\nANALYZE [NO_WRITE_TO_BINLOG | LOCAL]\n    TABLE tbl_name\n    UPDATE HISTOGRAM ON col_name [, col_name] ...\n        [WITH N BUCKETS]\n\nANALYZE [NO_WRITE_TO_BINLOG | LOCAL] \n    TABLE tbl_name\n    UPDATE HISTOGRAM ON col_name [USING DATA \'json_data\']\n\nANALYZE [NO_WRITE_TO_BINLOG | LOCAL]\n    TABLE tbl_name\n    DROP HISTOGRAM ON col_name [, col_name] ...\n\nANALYZE TABLE generates table statistics:\n\no ANALYZE TABLE without any HISTOGRAM clause performs a key\n  distribution analysis and stores the distribution for the named table\n  or tables. For MyISAM tables, ANALYZE TABLE for key distribution\n  analysis is equivalent to using myisamchk --analyze.\n\no ANALYZE TABLE with the UPDATE HISTOGRAM clause generates histogram\n  statistics for the named table columns and stores them in the data\n  dictionary. Only one table name is permitted for this syntax. MySQL\n  8.0.31 and later also supports setting the histogram of a single\n  column to a user-defined JSON value.\n\no ANALYZE TABLE with the DROP HISTOGRAM clause removes histogram\n  statistics for the named table columns from the data dictionary. Only\n  one table name is permitted for this syntax.\n\nThis statement requires SELECT and INSERT privileges for the table.\n\nANALYZE TABLE works with InnoDB, NDB, and MyISAM tables. It does not\nwork with views.\n\nIf the innodb_read_only system variable is enabled, ANALYZE TABLE may\nfail because it cannot update statistics tables in the data dictionary,\nwhich use InnoDB. For ANALYZE TABLE operations that update the key\ndistribution, failure may occur even if the operation updates the table\nitself (for example, if it is a MyISAM table). To obtain the updated\ndistribution statistics, set information_schema_stats_expiry=0.\n\nANALYZE TABLE is supported for partitioned tables, and you can use\nALTER TABLE ... ANALYZE PARTITION to analyze one or more partitions;\nfor more information, see [HELP ALTER TABLE], and\nhttps://dev.mysql.com/doc/refman/8.0/en/partitioning-maintenance.html.\n\nDuring the analysis, the table is locked with a read lock for InnoDB\nand MyISAM.\n\nBy default, the server writes ANALYZE TABLE statements to the binary\nlog so that they replicate to replicas. To suppress logging, specify\nthe optional NO_WRITE_TO_BINLOG keyword or its alias LOCAL.\n\nPreviously, ANALYZE TABLE required a flush lock. This meant that, when\nthere were long running statements or transactions still using the\ntable when ANALYZE TABLE was invoked, any following statements and\ntransactions had to wait for those operations to finish before the\nflush lock could be released. This issue is resolved in MySQL 8.0.24\n(and later), where ANALYZE TABLE no longer causes subsequent operations\nto wait.\n\nURL: https://dev.mysql.com/doc/refman/8.0/en/analyze-table.html\n\n','','https://dev.mysql.com/doc/refman/8.0/en/analyze-table.html'),(628,'CHECK TABLE',47,'Syntax:\nCHECK TABLE tbl_name [, tbl_name] ... [option] ...\n\noption: {\n    FOR UPGRADE\n  | QUICK\n  | FAST\n  | MEDIUM\n  | EXTENDED\n  | CHANGED\n}\n\nCHECK TABLE checks a table or tables for errors. CHECK TABLE can also\ncheck views for problems, such as tables that are referenced in the\nview definition that no longer exist.\n\nTo check a table, you must have some privilege for it.\n\nCHECK TABLE works for InnoDB, MyISAM, ARCHIVE, and CSV tables.\n\nBefore running CHECK TABLE on InnoDB tables, see\nhttps://dev.mysql.com/doc/refman/8.0/en/check-table.html#check-table-in\nnodb.\n\nCHECK TABLE is supported for partitioned tables, and you can use ALTER\nTABLE ... CHECK PARTITION to check one or more partitions; for more\ninformation, see [HELP ALTER TABLE], and\nhttps://dev.mysql.com/doc/refman/8.0/en/partitioning-maintenance.html.\n\nCHECK TABLE ignores virtual generated columns that are not indexed.\n\nURL: https://dev.mysql.com/doc/refman/8.0/en/check-table.html\n\n','','https://dev.mysql.com/doc/refman/8.0/en/check-table.html'),(629,'CHECKSUM TABLE',47,'Syntax:\nCHECKSUM TABLE tbl_name [, tbl_name] ... [QUICK | EXTENDED]\n\nCHECKSUM TABLE reports a checksum for the contents of a table. You can\nuse this statement to verify that the contents are the same before and\nafter a backup, rollback, or other operation that is intended to put\nthe data back to a known state.\n\nThis statement requires the SELECT privilege for the table.\n\nThis statement is not supported for views. If you run CHECKSUM TABLE\nagainst a view, the Checksum value is always NULL, and a warning is\nreturned.\n\nFor a nonexistent table, CHECKSUM TABLE returns NULL and generates a\nwarning.\n\nDuring the checksum operation, the table is locked with a read lock for\nInnoDB and MyISAM.\n\nURL: https://dev.mysql.com/doc/refman/8.0/en/checksum-table.html\n\n','','https://dev.mysql.com/doc/refman/8.0/en/checksum-table.html'),(630,'OPTIMIZE TABLE',47,'Syntax:\nOPTIMIZE [NO_WRITE_TO_BINLOG | LOCAL]\n    TABLE tbl_name [, tbl_name] ...\n\nOPTIMIZE TABLE reorganizes the physical storage of table data and\nassociated index data, to reduce storage space and improve I/O\nefficiency when accessing the table. The exact changes made to each\ntable depend on the storage engine used by that table.\n\nUse OPTIMIZE TABLE in these cases, depending on the type of table:\n\no After doing substantial insert, update, or delete operations on an\n  InnoDB table that has its own .ibd file because it was created with\n  the innodb_file_per_table option enabled. The table and indexes are\n  reorganized, and disk space can be reclaimed for use by the operating\n  system.\n\no After doing substantial insert, update, or delete operations on\n  columns that are part of a FULLTEXT index in an InnoDB table. Set the\n  configuration option innodb_optimize_fulltext_only=1 first. To keep\n  the index maintenance period to a reasonable time, set the\n  innodb_ft_num_word_optimize option to specify how many words to\n  update in the search index, and run a sequence of OPTIMIZE TABLE\n  statements until the search index is fully updated.\n\no After deleting a large part of a MyISAM or ARCHIVE table, or making\n  many changes to a MyISAM or ARCHIVE table with variable-length rows\n  (tables that have VARCHAR, VARBINARY, BLOB, or TEXT columns). Deleted\n  rows are maintained in a linked list and subsequent INSERT operations\n  reuse old row positions. You can use OPTIMIZE TABLE to reclaim the\n  unused space and to defragment the data file. After extensive changes\n  to a table, this statement may also improve performance of statements\n  that use the table, sometimes significantly.\n\nThis statement requires SELECT and INSERT privileges for the table.\n\nOPTIMIZE TABLE works for InnoDB, MyISAM, and ARCHIVE tables. OPTIMIZE\nTABLE is also supported for dynamic columns of in-memory NDB tables. It\ndoes not work for fixed-width columns of in-memory tables, nor does it\nwork for Disk Data tables. The performance of OPTIMIZE on NDB Cluster\ntables can be tuned using --ndb-optimization-delay, which controls the\nlength of time to wait between processing batches of rows by OPTIMIZE\nTABLE. For more information, see\nhttps://dev.mysql.com/doc/refman/8.0/en/mysql-cluster-limitations-resol\nved.html.\n\nFor NDB Cluster tables, OPTIMIZE TABLE can be interrupted by (for\nexample) killing the SQL thread performing the OPTIMIZE operation.\n\nBy default, OPTIMIZE TABLE does not work for tables created using any\nother storage engine and returns a result indicating this lack of\nsupport. You can make OPTIMIZE TABLE work for other storage engines by\nstarting mysqld with the --skip-new option. In this case, OPTIMIZE\nTABLE is just mapped to ALTER TABLE.\n\nThis statement does not work with views.\n\nOPTIMIZE TABLE is supported for partitioned tables. For information\nabout using this statement with partitioned tables and table\npartitions, see\nhttps://dev.mysql.com/doc/refman/8.0/en/partitioning-maintenance.html.\n\nBy default, the server writes OPTIMIZE TABLE statements to the binary\nlog so that they replicate to replicas. To suppress logging, specify\nthe optional NO_WRITE_TO_BINLOG keyword or its alias LOCAL.\n\nURL: https://dev.mysql.com/doc/refman/8.0/en/optimize-table.html\n\n','','https://dev.mysql.com/doc/refman/8.0/en/optimize-table.html');
INSERT INTO `help_topic` VALUES (631,'REPAIR TABLE',47,'Syntax:\nREPAIR [NO_WRITE_TO_BINLOG | LOCAL]\n    TABLE tbl_name [, tbl_name] ...\n    [QUICK] [EXTENDED] [USE_FRM]\n\nREPAIR TABLE repairs a possibly corrupted table, for certain storage\nengines only.\n\nThis statement requires SELECT and INSERT privileges for the table.\n\nAlthough normally you should never have to run REPAIR TABLE, if\ndisaster strikes, this statement is very likely to get back all your\ndata from a MyISAM table. If your tables become corrupted often, try to\nfind the reason for it, to eliminate the need to use REPAIR TABLE. See\nhttps://dev.mysql.com/doc/refman/8.0/en/crashing.html, and\nhttps://dev.mysql.com/doc/refman/8.0/en/myisam-table-problems.html.\n\nREPAIR TABLE checks the table to see whether an upgrade is required. If\nso, it performs the upgrade, following the same rules as CHECK TABLE\n... FOR UPGRADE. See [HELP CHECK TABLE], for more information.\n\n*Important*:\n\no Make a backup of a table before performing a table repair operation;\n  under some circumstances the operation might cause data loss.\n  Possible causes include but are not limited to file system errors.\n  See https://dev.mysql.com/doc/refman/8.0/en/backup-and-recovery.html.\n\no If the server exits during a REPAIR TABLE operation, it is essential\n  after restarting it that you immediately execute another REPAIR TABLE\n  statement for the table before performing any other operations on it.\n  In the worst case, you might have a new clean index file without\n  information about the data file, and then the next operation you\n  perform could overwrite the data file. This is an unlikely but\n  possible scenario that underscores the value of making a backup\n  first.\n\no In the event that a table on the source becomes corrupted and you run\n  REPAIR TABLE on it, any resulting changes to the original table are\n  not propagated to replicas.\n\nURL: https://dev.mysql.com/doc/refman/8.0/en/repair-table.html\n\n','','https://dev.mysql.com/doc/refman/8.0/en/repair-table.html'),(632,'CREATE FUNCTION LOADABLE FUNCTION',48,'Syntax:\nCREATE [AGGREGATE] FUNCTION [IF NOT EXISTS] function_name\n    RETURNS {STRING|INTEGER|REAL|DECIMAL}\n    SONAME shared_library_name\n\nThis statement loads the loadable function named function_name. (CREATE\nFUNCTION is also used to created stored functions; see [HELP CREATE\nPROCEDURE].)\n\nA loadable function is a way to extend MySQL with a new function that\nworks like a native (built-in) MySQL function such as ABS() or\nCONCAT(). See Adding a Loadable Function\n(https://dev.mysql.com/doc/extending-mysql/8.0/en/adding-loadable-funct\nion.html).\n\nfunction_name is the name that should be used in SQL statements to\ninvoke the function. The RETURNS clause indicates the type of the\nfunction\'s return value. DECIMAL is a legal value after RETURNS, but\ncurrently DECIMAL functions return string values and should be written\nlike STRING functions.\n\nIF NOT EXISTS prevents an error from occurring if there already exists\na loadable function with the same name. It does not prevent an error\nfrom occurring if there already exists a built-in function having the\nsame name. IF NOT EXISTS is supported for CREATE FUNCTION statements\nbeginning with MySQL 8.0.29. See also\nhttps://dev.mysql.com/doc/refman/8.0/en/function-resolution.html#functi\non-name-resolution.\n\nThe AGGREGATE keyword, if given, signifies that the function is an\naggregate (group) function. An aggregate function works exactly like a\nnative MySQL aggregate function such as SUM() or COUNT().\n\nshared_library_name is the base name of the shared library file\ncontaining the code that implements the function. The file must be\nlocated in the plugin directory. This directory is given by the value\nof the plugin_dir system variable. For more information, see\nhttps://dev.mysql.com/doc/refman/8.0/en/function-loading.html.\n\nCREATE FUNCTION requires the INSERT privilege for the mysql system\nschema because it adds a row to the mysql.func system table to register\nthe function.\n\nCREATE FUNCTION also adds the function to the Performance Schema\nuser_defined_functions table that provides runtime information about\ninstalled loadable functions. See\nhttps://dev.mysql.com/doc/refman/8.0/en/performance-schema-user-defined\n-functions-table.html.\n\n*Note*:\n\nLike the mysql.func system table, the Performance Schema\nuser_defined_functions table lists loadable functions installed using\nCREATE FUNCTION. Unlike the mysql.func table, the\nuser_defined_functions table also lists loadable functions installed\nautomatically by server components or plugins. This difference makes\nuser_defined_functions preferable to mysql.func for checking which\nloadable functions are installed.\n\nDuring the normal startup sequence, the server loads functions\nregistered in the mysql.func table. If the server is started with the\n--skip-grant-tables option, functions registered in the table are not\nloaded and are unavailable.\n\nURL: https://dev.mysql.com/doc/refman/8.0/en/create-function-loadable.html\n\n','','https://dev.mysql.com/doc/refman/8.0/en/create-function-loadable.html'),(633,'DROP FUNCTION LOADABLE FUNCTION',48,'Syntax:\nDROP FUNCTION [IF EXISTS] function_name\n\nThis statement drops the loadable function named function_name. (DROP\nFUNCTION is also used to drop stored functions; see [HELP DROP\nPROCEDURE].)\n\nDROP FUNCTION is the complement of CREATE FUNCTION. It requires the\nDELETE privilege for the mysql system schema because it removes the row\nfrom the mysql.func system table that registers the function.\n\nDROP FUNCTION also removes the function from the Performance Schema\nuser_defined_functions table that provides runtime information about\ninstalled loadable functions. See\nhttps://dev.mysql.com/doc/refman/8.0/en/performance-schema-user-defined\n-functions-table.html.\n\nDuring the normal startup sequence, the server loads functions\nregistered in the mysql.func table. Because DROP FUNCTION removes the\nmysql.func row for the dropped function, the server does not load the\nfunction during subsequent restarts.\n\nDROP FUNCTION cannot be used to drop a loadable function that is\ninstalled automatically by components or plugins rather than by using\nCREATE FUNCTION. Such a function is also dropped automatically, when\nthe component or plugin that installed it is uninstalled.\n\nURL: https://dev.mysql.com/doc/refman/8.0/en/drop-function-loadable.html\n\n','','https://dev.mysql.com/doc/refman/8.0/en/drop-function-loadable.html'),(634,'INSTALL COMPONENT',49,'Syntax:\nINSTALL COMPONENT component_name  [, component_name ...\n     [SET variable = expr [, variable = expr] ...] \n  \n  variable: {\n    {GLOBAL | @@GLOBAL.} [component_prefix.]system_var_name\n  | {PERSIST | @@PERSIST.} [component_prefix.]system_var_name\n}\n\nThis statement installs one or more components, which become active\nimmediately. A component provides services that are available to the\nserver and other components; see\nhttps://dev.mysql.com/doc/refman/8.0/en/components.html. INSTALL\nCOMPONENT requires the INSERT privilege for the mysql.component system\ntable because it adds a row to that table to register the component.\n\nExample:\n\nINSTALL COMPONENT \'file://component1\', \'file://component2\';\n\nA component is named using a URN that begins with file:// and indicates\nthe base name of the library file that implements the component,\nlocated in the directory named by the plugin_dir system variable.\nComponent names do not include any platform-dependent file name suffix\nsuch as .so or .dll. (These naming details are subject to change\nbecause component name interpretation is itself performed by a service\nand the component infrastructure makes it possible to replace the\ndefault service implementation with alternative implementations.)\n\nINSTALL COMPONENT (from 8.0.33) permits setting the values of component\nsystem variables when you install one or more components. The SET\nclause enables you to specify variable values precisely when they are\nneeded, without the inconvenience or limitations associated with other\nforms of assignment. Specifically, you can also set component variables\nwith these alternatives:\n\no At server startup using options on the command line or in an option\n  file, but doing so involves a server restart. The values do not take\n  effect until you install the component. You can specify an invalid\n  variable name for a component on the command line without triggering\n  an error.\n\no Dynamically while the server is running by means of the SET\n  statement, which enables you to modify operation of the server\n  without having to stop and restart it. Setting a read-only variable\n  is not permitted.\n\nThe optional SET clause applies a value, or values, only to the\ncomponent specified in the INSTALL COMPONENT statement, rather than to\nall subsequent installations of that component. SET GLOBAL|PERSIST\nworks for all types of variables, including read-only variables,\nwithout having to restart the server. A component system variable that\nyou set using INSTALL COMPONENT takes precedence over any conflicting\nvalue coming from the command line or an option file.\n\nExample:\n\nINSTALL COMPONENT \'file://component1\', \'file://component2\' \n    SET GLOBAL component1.var1 = 12 + 3, PERSIST component2.var2 = \'strings\';\n\nOmitting PERSIST or GLOBAL is equivalent to specifying GLOBAL.\n\nSpecifying PERSIST for any variable in SET silently executes SET\nPERSIST_ONLY immediately after INSTALL COMPONENT loads the components,\nbut before updating the mysql.component table. If SET PERSIST_ONLY\nfails, then the server unloads all of the previously loaded new\ncomponents without persisting anything to mysql.component.\n\nThe SET clause accepts only valid variable names of the component being\ninstalled and emits an error message for all invalid names. Subqueries,\nstored functions, and aggregate functions are not permitted as part of\nthe value expression. If you install a single component, it is not\nnecessary to prefix the variable name with the component name.\n\n*Note*:\n\nWhile specifying a variable value using the SET clause is similar to\nthat of the command line---it is available immediately at variable\nregistration---there is a distinct difference in how the SET clause\nhandles invalid numerical values for boolean variables. For example, if\nyou set a boolean variable to 11 (component1.boolvar = 11), you see the\nfollowing behavior:\n\no SET clause yields true\n\no Command line yields false (11 is neither ON nor 1)\n\nIf any error occurs, the statement fails and has no effect. For\nexample, this happens if a component name is erroneous, a named\ncomponent does not exist or is already installed, or component\ninitialization fails.\n\nA loader service handles component loading, which includes adding\ninstalled components to the mysql.component system table that serves as\na registry. For subsequent server restarts, any components listed in\nmysql.component are loaded by the loader service during the startup\nsequence. This occurs even if the server is started with the\n--skip-grant-tables option.\n\nIf a component depends on services not present in the registry and you\nattempt to install the component without also installing the component\nor components that provide the services on which it depends, an error\noccurs:\n\nERROR 3527 (HY000): Cannot satisfy dependency for service \'component_a\'\nrequired by component \'component_b\'.\n\nTo avoid this problem, either install all components in the same\nstatement, or install the dependent component after installing any\ncomponents on which it depends.\n\n*Note*:\n\nFor keyring components, do not use INSTALL COMPONENT. Instead,\nconfigure keyring component loading using a manifest file. See\nhttps://dev.mysql.com/doc/refman/8.0/en/keyring-component-installation.\nhtml.\n\nURL: https://dev.mysql.com/doc/refman/8.0/en/install-component.html\n\n','','https://dev.mysql.com/doc/refman/8.0/en/install-component.html'),(635,'INSTALL PLUGIN',50,'Syntax:\nINSTALL PLUGIN plugin_name SONAME \'shared_library_name\'\n\nThis statement installs a server plugin. It requires the INSERT\nprivilege for the mysql.plugin system table because it adds a row to\nthat table to register the plugin.\n\nplugin_name is the name of the plugin as defined in the plugin\ndescriptor structure contained in the library file (see Plugin Data\nStructures\n(https://dev.mysql.com/doc/extending-mysql/8.0/en/plugin-data-structure\ns.html)). Plugin names are not case-sensitive. For maximal\ncompatibility, plugin names should be limited to ASCII letters, digits,\nand underscore because they are used in C source files, shell command\nlines, M4 and Bourne shell scripts, and SQL environments.\n\nshared_library_name is the name of the shared library that contains the\nplugin code. The name includes the file name extension (for example,\nlibmyplugin.so, libmyplugin.dll, or libmyplugin.dylib).\n\nThe shared library must be located in the plugin directory (the\ndirectory named by the plugin_dir system variable). The library must be\nin the plugin directory itself, not in a subdirectory. By default,\nplugin_dir is the plugin directory under the directory named by the\npkglibdir configuration variable, but it can be changed by setting the\nvalue of plugin_dir at server startup. For example, set its value in a\nmy.cnf file:\n\n[mysqld]\nplugin_dir=/path/to/plugin/directory\n\nIf the value of plugin_dir is a relative path name, it is taken to be\nrelative to the MySQL base directory (the value of the basedir system\nvariable).\n\nINSTALL PLUGIN loads and initializes the plugin code to make the plugin\navailable for use. A plugin is initialized by executing its\ninitialization function, which handles any setup that the plugin must\nperform before it can be used. When the server shuts down, it executes\nthe deinitialization function for each plugin that is loaded so that\nthe plugin has a chance to perform any final cleanup.\n\nINSTALL PLUGIN also registers the plugin by adding a line that\nindicates the plugin name and library file name to the mysql.plugin\nsystem table. During the normal startup sequence, the server loads and\ninitializes plugins registered in mysql.plugin. This means that a\nplugin is installed with INSTALL PLUGIN only once, not every time the\nserver starts. If the server is started with the --skip-grant-tables\noption, plugins registered in the mysql.plugin table are not loaded and\nare unavailable.\n\nA plugin library can contain multiple plugins. For each of them to be\ninstalled, use a separate INSTALL PLUGIN statement. Each statement\nnames a different plugin, but all of them specify the same library\nname.\n\nURL: https://dev.mysql.com/doc/refman/8.0/en/install-plugin.html\n\n','','https://dev.mysql.com/doc/refman/8.0/en/install-plugin.html'),(636,'UNINSTALL COMPONENT',49,'Syntax:\nUNINSTALL COMPONENT component_name [, component_name ] ...\n\nThis statement deactivates and uninstalls one or more components. A\ncomponent provides services that are available to the server and other\ncomponents; see\nhttps://dev.mysql.com/doc/refman/8.0/en/components.html. UNINSTALL\nCOMPONENT is the complement of INSTALL COMPONENT. It requires the\nDELETE privilege for the mysql.component system table because it\nremoves the row from that table that registers the component. UNINSTALL\nCOMPONENT does not undo persisted variables, including the variables\npersisted using INSTALL COMPONENT ... SET PERSIST.\n\nExample:\n\nUNINSTALL COMPONENT \'file://component1\', \'file://component2\';\n\nFor information about component naming, see [HELP INSTALL COMPONENT].\n\nIf any error occurs, the statement fails and has no effect. For\nexample, this happens if a component name is erroneous, a named\ncomponent is not installed, or cannot be uninstalled because other\ninstalled components depend on it.\n\nA loader service handles component unloading, which includes removing\nuninstalled components from the mysql.component system table that\nserves as a registry. As a result, unloaded components are not loaded\nduring the startup sequence for subsequent server restarts.\n\n*Note*:\n\nThis statement has no effect for keyring components, which are loaded\nusing a manifest file and cannot be uninstalled. See\nhttps://dev.mysql.com/doc/refman/8.0/en/keyring-component-installation.\nhtml.\n\nURL: https://dev.mysql.com/doc/refman/8.0/en/uninstall-component.html\n\n','','https://dev.mysql.com/doc/refman/8.0/en/uninstall-component.html'),(637,'UNINSTALL PLUGIN',49,'Syntax:\nUNINSTALL PLUGIN plugin_name\n\nThis statement removes an installed server plugin. UNINSTALL PLUGIN is\nthe complement of INSTALL PLUGIN. It requires the DELETE privilege for\nthe mysql.plugin system table because it removes the row from that\ntable that registers the plugin.\n\nplugin_name must be the name of some plugin that is listed in the\nmysql.plugin table. The server executes the plugin\'s deinitialization\nfunction and removes the row for the plugin from the mysql.plugin\nsystem table, so that subsequent server restarts do not load and\ninitialize the plugin. UNINSTALL PLUGIN does not remove the plugin\'s\nshared library file.\n\nURL: https://dev.mysql.com/doc/refman/8.0/en/uninstall-plugin.html\n\n','','https://dev.mysql.com/doc/refman/8.0/en/uninstall-plugin.html'),(638,'CLONE',49,'Syntax:\nCLONE clone_action\n\nclone_action: {\n    LOCAL DATA DIRECTORY [=] \'clone_dir\';\n  | INSTANCE FROM \'user\'@\'host\':port\n    IDENTIFIED BY \'password\'\n    [DATA DIRECTORY [=] \'clone_dir\']\n    [REQUIRE [NO] SSL]\n}\n\nThe CLONE statement is used to clone data locally or from a remote\nMySQL server instance. To use CLONE syntax, the clone plugin must be\ninstalled. See\nhttps://dev.mysql.com/doc/refman/8.0/en/clone-plugin.html.\n\nCLONE LOCAL DATA DIRECTORY syntax clones data from the local MySQL data\ndirectory to a directory on the same server or node where the MySQL\nserver instance runs. The \'clone_dir\' directory is the full path of the\nlocal directory that data is cloned to. An absolute path is required.\nThe specified directory must not exist, but the specified path must be\nan existent path. The MySQL server requires the necessary write access\nto create the specified directory. For more information, see\nhttps://dev.mysql.com/doc/refman/8.0/en/clone-plugin-local.html.\n\nCLONE INSTANCE syntax clones data from a remote MySQL server instance\n(the donor) and transfers it to the MySQL instance where the cloning\noperation was initiated (the recipient).\n\no user is the clone user on the donor MySQL server instance.\n\no host is the hostname address of the donor MySQL server instance.\n  Internet Protocol version 6 (IPv6) address format is not supported.\n  An alias to the IPv6 address can be used instead. An IPv4 address can\n  be used as is.\n\no port is the port number of the donor MySQL server instance. (The X\n  Protocol port specified by mysqlx_port is not supported. Connecting\n  to the donor MySQL server instance through MySQL Router is also not\n  supported.)\n\no IDENTIFIED BY \'password\' specifies the password of the clone user on\n  the donor MySQL server instance.\n\no DATA DIRECTORY [=] \'clone_dir\' is an optional clause used to specify\n  a directory on the recipient for the data you are cloning. Use this\n  option if you do not want to remove existing data in the recipient\n  data directory. An absolute path is required, and the directory must\n  not exist. The MySQL server must have the necessary write access to\n  create the directory.\n\n  When the optional DATA DIRECTORY [=] \'clone_dir\' clause is not used,\n  a cloning operation removes existing data in the recipient data\n  directory, replaces it with the cloned data, and automatically\n  restarts the server afterward.\n\no [REQUIRE [NO] SSL] explicitly specifies whether an encrypted\n  connection is to be used or not when transferring cloned data over\n  the network. An error is returned if the explicit specification\n  cannot be satisfied. If an SSL clause is not specified, clone\n  attempts to establish an encrypted connection by default, falling\n  back to an insecure connection if the secure connection attempt\n  fails. A secure connection is required when cloning encrypted data\n  regardless of whether this clause is specified. For more information,\n  see\n  https://dev.mysql.com/doc/refman/8.0/en/clone-plugin-remote.html#clon\n  e-plugin-remote-ssl.\n\nFor additional information about cloning data from a remote MySQL\nserver instance, see\nhttps://dev.mysql.com/doc/refman/8.0/en/clone-plugin-remote.html.\n\nURL: https://dev.mysql.com/doc/refman/8.0/en/clone.html\n\n','','https://dev.mysql.com/doc/refman/8.0/en/clone.html'),(639,'SET',3,'Syntax:\nSET variable = expr [, variable = expr] ...\n\nvariable: {\n    user_var_name\n  | param_name\n  | local_var_name\n  | {GLOBAL | @@GLOBAL.} system_var_name\n  | {PERSIST | @@PERSIST.} system_var_name\n  | {PERSIST_ONLY | @@PERSIST_ONLY.} system_var_name\n  | [SESSION | @@SESSION. | @@] system_var_name\n}\n\nSET syntax for variable assignment enables you to assign values to\ndifferent types of variables that affect the operation of the server or\nclients:\n\no User-defined variables. See\n  https://dev.mysql.com/doc/refman/8.0/en/user-variables.html.\n\no Stored procedure and function parameters, and stored program local\n  variables. See\n  https://dev.mysql.com/doc/refman/8.0/en/stored-program-variables.html\n  .\n\no System variables. See\n  https://dev.mysql.com/doc/refman/8.0/en/server-system-variables.html.\n  System variables also can be set at server startup, as described in\n  https://dev.mysql.com/doc/refman/8.0/en/using-system-variables.html.\n\nURL: https://dev.mysql.com/doc/refman/8.0/en/set-variable.html\n\n','','https://dev.mysql.com/doc/refman/8.0/en/set-variable.html'),(640,'SET CHARACTER SET',3,'Syntax:\nSET {CHARACTER SET | CHARSET}\n    {\'charset_name\' | DEFAULT}\n\nThis statement maps all strings sent between the server and the current\nclient with the given mapping. SET CHARACTER SET sets three session\nsystem variables: character_set_client and character_set_results are\nset to the given character set, and character_set_connection to the\nvalue of character_set_database. See\nhttps://dev.mysql.com/doc/refman/8.0/en/charset-connection.html.\n\ncharset_name may be quoted or unquoted.\n\nThe default character set mapping can be restored by using the value\nDEFAULT. The default depends on the server configuration.\n\nSome character sets cannot be used as the client character set.\nAttempting to use them with SET CHARACTER SET produces an error. See\nhttps://dev.mysql.com/doc/refman/8.0/en/charset-connection.html#charset\n-connection-impermissible-client-charset.\n\nURL: https://dev.mysql.com/doc/refman/8.0/en/set-character-set.html\n\n','','https://dev.mysql.com/doc/refman/8.0/en/set-character-set.html'),(641,'SET CHARSET',3,'Syntax:\nSET {CHARACTER SET | CHARSET}\n    {\'charset_name\' | DEFAULT}\n\nThis statement maps all strings sent between the server and the current\nclient with the given mapping. SET CHARACTER SET sets three session\nsystem variables: character_set_client and character_set_results are\nset to the given character set, and character_set_connection to the\nvalue of character_set_database. See\nhttps://dev.mysql.com/doc/refman/8.0/en/charset-connection.html.\n\ncharset_name may be quoted or unquoted.\n\nThe default character set mapping can be restored by using the value\nDEFAULT. The default depends on the server configuration.\n\nSome character sets cannot be used as the client character set.\nAttempting to use them with SET CHARACTER SET produces an error. See\nhttps://dev.mysql.com/doc/refman/8.0/en/charset-connection.html#charset\n-connection-impermissible-client-charset.\n\nURL: https://dev.mysql.com/doc/refman/8.0/en/set-character-set.html\n\n','','https://dev.mysql.com/doc/refman/8.0/en/set-character-set.html'),(642,'SET NAMES',3,'Syntax:\nSET NAMES {\'charset_name\'\n    [COLLATE \'collation_name\'] | DEFAULT}\n\nThis statement sets the three session system variables\ncharacter_set_client, character_set_connection, and\ncharacter_set_results to the given character set. Setting\ncharacter_set_connection to charset_name also sets collation_connection\nto the default collation for charset_name. See\nhttps://dev.mysql.com/doc/refman/8.0/en/charset-connection.html.\n\nThe optional COLLATE clause may be used to specify a collation\nexplicitly. If given, the collation must one of the permitted\ncollations for charset_name.\n\ncharset_name and collation_name may be quoted or unquoted.\n\nThe default mapping can be restored by using a value of DEFAULT. The\ndefault depends on the server configuration.\n\nSome character sets cannot be used as the client character set.\nAttempting to use them with SET NAMES produces an error. See\nhttps://dev.mysql.com/doc/refman/8.0/en/charset-connection.html#charset\n-connection-impermissible-client-charset.\n\nURL: https://dev.mysql.com/doc/refman/8.0/en/set-names.html\n\n','','https://dev.mysql.com/doc/refman/8.0/en/set-names.html'),(643,'SHOW',3,'SHOW has many forms that provide information about databases, tables,\ncolumns, or status information about the server. This section describes\nthose following:\n\nSHOW {BINARY | MASTER} LOGS\nSHOW BINLOG EVENTS [IN \'log_name\'] [FROM pos] [LIMIT [offset,] row_count]\nSHOW {CHARACTER SET | CHARSET} [like_or_where]\nSHOW COLLATION [like_or_where]\nSHOW [FULL] COLUMNS FROM tbl_name [FROM db_name] [like_or_where]\nSHOW CREATE DATABASE db_name\nSHOW CREATE EVENT event_name\nSHOW CREATE FUNCTION func_name\nSHOW CREATE PROCEDURE proc_name\nSHOW CREATE TABLE tbl_name\nSHOW CREATE TRIGGER trigger_name\nSHOW CREATE VIEW view_name\nSHOW DATABASES [like_or_where]\nSHOW ENGINE engine_name {STATUS | MUTEX}\nSHOW [STORAGE] ENGINES\nSHOW ERRORS [LIMIT [offset,] row_count]\nSHOW EVENTS\nSHOW FUNCTION CODE func_name\nSHOW FUNCTION STATUS [like_or_where]\nSHOW GRANTS FOR user\nSHOW INDEX FROM tbl_name [FROM db_name]\nSHOW MASTER STATUS\nSHOW OPEN TABLES [FROM db_name] [like_or_where]\nSHOW PLUGINS\nSHOW PROCEDURE CODE proc_name\nSHOW PROCEDURE STATUS [like_or_where]\nSHOW PRIVILEGES\nSHOW [FULL] PROCESSLIST\nSHOW PROFILE [types] [FOR QUERY n] [OFFSET n] [LIMIT n]\nSHOW PROFILES\nSHOW RELAYLOG EVENTS [IN \'log_name\'] [FROM pos] [LIMIT [offset,] row_count]\nSHOW {REPLICAS | SLAVE HOSTS}\nSHOW {REPLICA | SLAVE} STATUS [FOR CHANNEL channel]\nSHOW [GLOBAL | SESSION] STATUS [like_or_where]\nSHOW TABLE STATUS [FROM db_name] [like_or_where]\nSHOW [FULL] TABLES [FROM db_name] [like_or_where]\nSHOW TRIGGERS [FROM db_name] [like_or_where]\nSHOW [GLOBAL | SESSION] VARIABLES [like_or_where]\nSHOW WARNINGS [LIMIT [offset,] row_count]\n\nlike_or_where: {\n    LIKE \'pattern\'\n  | WHERE expr\n}\n\nIf the syntax for a given SHOW statement includes a LIKE \'pattern\'\npart, \'pattern\' is a string that can contain the SQL % and _ wildcard\ncharacters. The pattern is useful for restricting statement output to\nmatching values.\n\nSeveral SHOW statements also accept a WHERE clause that provides more\nflexibility in specifying which rows to display. See\nhttps://dev.mysql.com/doc/refman/8.0/en/extended-show.html.\n\nIn SHOW statement results, user names and host names are quoted using\nbackticks (`).\n\nURL: https://dev.mysql.com/doc/refman/8.0/en/show.html\n\n','','https://dev.mysql.com/doc/refman/8.0/en/show.html'),(644,'SHOW BINARY LOGS',3,'Syntax:\nSHOW BINARY LOGS\nSHOW MASTER LOGS\n\nLists the binary log files on the server. This statement is used as\npart of the procedure described in [HELP PURGE BINARY LOGS], that shows\nhow to determine which logs can be purged. SHOW BINARY LOGS requires\nthe REPLICATION CLIENT privilege (or the deprecated SUPER privilege).\n\nEncrypted binary log files have a 512-byte file header that stores\ninformation required for encryption and decryption of the file. This is\nincluded in the file size displayed by SHOW BINARY LOGS. The Encrypted\ncolumn shows whether or not the binary log file is encrypted. Binary\nlog encryption is active if binlog_encryption=ON is set for the server.\nExisting binary log files are not encrypted or decrypted if binary log\nencryption is activated or deactivated while the server is running.\n\nmysql> SHOW BINARY LOGS;\n+---------------+-----------+-----------+\n| Log_name      | File_size | Encrypted |\n+---------------+-----------+-----------+\n| binlog.000015 |    724935 |       Yes |\n| binlog.000016 |    733481 |       Yes |\n+---------------+-----------+-----------+\n\nURL: https://dev.mysql.com/doc/refman/8.0/en/show-binary-logs.html\n\n','','https://dev.mysql.com/doc/refman/8.0/en/show-binary-logs.html'),(645,'SHOW MASTER LOGS',3,'Syntax:\nSHOW BINARY LOGS\nSHOW MASTER LOGS\n\nLists the binary log files on the server. This statement is used as\npart of the procedure described in [HELP PURGE BINARY LOGS], that shows\nhow to determine which logs can be purged. SHOW BINARY LOGS requires\nthe REPLICATION CLIENT privilege (or the deprecated SUPER privilege).\n\nEncrypted binary log files have a 512-byte file header that stores\ninformation required for encryption and decryption of the file. This is\nincluded in the file size displayed by SHOW BINARY LOGS. The Encrypted\ncolumn shows whether or not the binary log file is encrypted. Binary\nlog encryption is active if binlog_encryption=ON is set for the server.\nExisting binary log files are not encrypted or decrypted if binary log\nencryption is activated or deactivated while the server is running.\n\nmysql> SHOW BINARY LOGS;\n+---------------+-----------+-----------+\n| Log_name      | File_size | Encrypted |\n+---------------+-----------+-----------+\n| binlog.000015 |    724935 |       Yes |\n| binlog.000016 |    733481 |       Yes |\n+---------------+-----------+-----------+\n\nURL: https://dev.mysql.com/doc/refman/8.0/en/show-binary-logs.html\n\n','','https://dev.mysql.com/doc/refman/8.0/en/show-binary-logs.html'),(646,'SHOW BINLOG EVENTS',3,'Syntax:\nSHOW BINLOG EVENTS\n   [IN \'log_name\']\n   [FROM pos]\n   [LIMIT [offset,] row_count]\n\nShows the events in the binary log. If you do not specify \'log_name\',\nthe first binary log is displayed. SHOW BINLOG EVENTS requires the\nREPLICATION SLAVE privilege.\n\nURL: https://dev.mysql.com/doc/refman/8.0/en/show-binlog-events.html\n\n','','https://dev.mysql.com/doc/refman/8.0/en/show-binlog-events.html'),(647,'SHOW CHARACTER SET',3,'Syntax:\nSHOW {CHARACTER SET | CHARSET}\n    [LIKE \'pattern\' | WHERE expr]\n\nThe SHOW CHARACTER SET statement shows all available character sets.\nThe LIKE clause, if present, indicates which character set names to\nmatch. The WHERE clause can be given to select rows using more general\nconditions, as discussed in\nhttps://dev.mysql.com/doc/refman/8.0/en/extended-show.html. For\nexample:\n\nmysql> SHOW CHARACTER SET LIKE \'latin%\';\n+---------+-----------------------------+-------------------+--------+\n| Charset | Description                 | Default collation | Maxlen |\n+---------+-----------------------------+-------------------+--------+\n| latin1  | cp1252 West European        | latin1_swedish_ci |      1 |\n| latin2  | ISO 8859-2 Central European | latin2_general_ci |      1 |\n| latin5  | ISO 8859-9 Turkish          | latin5_turkish_ci |      1 |\n| latin7  | ISO 8859-13 Baltic          | latin7_general_ci |      1 |\n+---------+-----------------------------+-------------------+--------+\n\nURL: https://dev.mysql.com/doc/refman/8.0/en/show-character-set.html\n\n','','https://dev.mysql.com/doc/refman/8.0/en/show-character-set.html'),(648,'SHOW COLLATION',3,'Syntax:\nSHOW COLLATION\n    [LIKE \'pattern\' | WHERE expr]\n\nThis statement lists collations supported by the server. By default,\nthe output from SHOW COLLATION includes all available collations. The\nLIKE clause, if present, indicates which collation names to match. The\nWHERE clause can be given to select rows using more general conditions,\nas discussed in\nhttps://dev.mysql.com/doc/refman/8.0/en/extended-show.html. For\nexample:\n\nmysql> SHOW COLLATION WHERE Charset = \'latin1\';\n+-------------------+---------+----+---------+----------+---------+\n| Collation         | Charset | Id | Default | Compiled | Sortlen |\n+-------------------+---------+----+---------+----------+---------+\n| latin1_german1_ci | latin1  |  5 |         | Yes      |       1 |\n| latin1_swedish_ci | latin1  |  8 | Yes     | Yes      |       1 |\n| latin1_danish_ci  | latin1  | 15 |         | Yes      |       1 |\n| latin1_german2_ci | latin1  | 31 |         | Yes      |       2 |\n| latin1_bin        | latin1  | 47 |         | Yes      |       1 |\n| latin1_general_ci | latin1  | 48 |         | Yes      |       1 |\n| latin1_general_cs | latin1  | 49 |         | Yes      |       1 |\n| latin1_spanish_ci | latin1  | 94 |         | Yes      |       1 |\n+-------------------+---------+----+---------+----------+---------+\n\nURL: https://dev.mysql.com/doc/refman/8.0/en/show-collation.html\n\n','','https://dev.mysql.com/doc/refman/8.0/en/show-collation.html'),(649,'SHOW COLUMNS',3,'Syntax:\nSHOW [EXTENDED] [FULL] {COLUMNS | FIELDS}\n    {FROM | IN} tbl_name\n    [{FROM | IN} db_name]\n    [LIKE \'pattern\' | WHERE expr]\n\nSHOW COLUMNS displays information about the columns in a given table.\nIt also works for views. SHOW COLUMNS displays information only for\nthose columns for which you have some privilege.\n\nmysql> SHOW COLUMNS FROM City;\n+-------------+----------+------+-----+---------+----------------+\n| Field       | Type     | Null | Key | Default | Extra          |\n+-------------+----------+------+-----+---------+----------------+\n| ID          | int(11)  | NO   | PRI | NULL    | auto_increment |\n| Name        | char(35) | NO   |     |         |                |\n| CountryCode | char(3)  | NO   | MUL |         |                |\n| District    | char(20) | NO   |     |         |                |\n| Population  | int(11)  | NO   |     | 0       |                |\n+-------------+----------+------+-----+---------+----------------+\n\nAn alternative to tbl_name FROM db_name syntax is db_name.tbl_name.\nThese two statements are equivalent:\n\nSHOW COLUMNS FROM mytable FROM mydb;\nSHOW COLUMNS FROM mydb.mytable;\n\nThe optional EXTENDED keyword causes the output to include information\nabout hidden columns that MySQL uses internally and are not accessible\nby users.\n\nThe optional FULL keyword causes the output to include the column\ncollation and comments, as well as the privileges you have for each\ncolumn.\n\nThe LIKE clause, if present, indicates which column names to match. The\nWHERE clause can be given to select rows using more general conditions,\nas discussed in\nhttps://dev.mysql.com/doc/refman/8.0/en/extended-show.html.\n\nThe data types may differ from what you expect them to be based on a\nCREATE TABLE statement because MySQL sometimes changes data types when\nyou create or alter a table. The conditions under which this occurs are\ndescribed in\nhttps://dev.mysql.com/doc/refman/8.0/en/silent-column-changes.html.\n\nSHOW COLUMNS displays the following values for each table column:\n\no Field\n\n  The name of the column.\n\no Type\n\n  The column data type.\n\no Collation\n\n  The collation for nonbinary string columns, or NULL for other\n  columns. This value is displayed only if you use the FULL keyword.\n\no Null\n\n  The column nullability. The value is YES if NULL values can be stored\n  in the column, NO if not.\n\no Key\n\n  Whether the column is indexed:\n\n  o If Key is empty, the column either is not indexed or is indexed\n    only as a secondary column in a multiple-column, nonunique index.\n\n  o If Key is PRI, the column is a PRIMARY KEY or is one of the columns\n    in a multiple-column PRIMARY KEY.\n\n  o If Key is UNI, the column is the first column of a UNIQUE index. (A\n    UNIQUE index permits multiple NULL values, but you can tell whether\n    the column permits NULL by checking the Null field.)\n\n  o If Key is MUL, the column is the first column of a nonunique index\n    in which multiple occurrences of a given value are permitted within\n    the column.\n\n  If more than one of the Key values applies to a given column of a\n  table, Key displays the one with the highest priority, in the order\n  PRI, UNI, MUL.\n\n  A UNIQUE index may be displayed as PRI if it cannot contain NULL\n  values and there is no PRIMARY KEY in the table. A UNIQUE index may\n  display as MUL if several columns form a composite UNIQUE index;\n  although the combination of the columns is unique, each column can\n  still hold multiple occurrences of a given value.\n\no Default\n\n  The default value for the column. This is NULL if the column has an\n  explicit default of NULL, or if the column definition includes no\n  DEFAULT clause.\n\no Extra\n\n  Any additional information that is available about a given column.\n  The value is nonempty in these cases:\n\n  o auto_increment for columns that have the AUTO_INCREMENT attribute.\n\n  o on update CURRENT_TIMESTAMP for TIMESTAMP or DATETIME columns that\n    have the ON UPDATE CURRENT_TIMESTAMP attribute.\n\n  o VIRTUAL GENERATED or STORED GENERATED for generated columns.\n\n  o DEFAULT_GENERATED for columns that have an expression default\n    value.\n\no Privileges\n\n  The privileges you have for the column. This value is displayed only\n  if you use the FULL keyword.\n\no Comment\n\n  Any comment included in the column definition. This value is\n  displayed only if you use the FULL keyword.\n\nTable column information is also available from the INFORMATION_SCHEMA\nCOLUMNS table. See\nhttps://dev.mysql.com/doc/refman/8.0/en/information-schema-columns-tabl\ne.html. The extended information about hidden columns is available only\nusing SHOW EXTENDED COLUMNS; it cannot be obtained from the COLUMNS\ntable.\n\nYou can list a table\'s columns with the mysqlshow db_name tbl_name\ncommand.\n\nThe DESCRIBE statement provides information similar to SHOW COLUMNS.\nSee https://dev.mysql.com/doc/refman/8.0/en/describe.html.\n\nThe SHOW CREATE TABLE, SHOW TABLE STATUS, and SHOW INDEX statements\nalso provide information about tables. See [HELP SHOW].\n\nIn MySQL 8.0.30 and later, SHOW COLUMNS includes the table\'s generated\ninvisible primary key, if it has one, by default. You can cause this\ninformation to be suppressed in the statement\'s output by setting\nshow_gipk_in_create_table_and_information_schema = OFF. For more\ninformation, see\nhttps://dev.mysql.com/doc/refman/8.0/en/create-table-gipks.html.\n\nURL: https://dev.mysql.com/doc/refman/8.0/en/show-columns.html\n\n','','https://dev.mysql.com/doc/refman/8.0/en/show-columns.html'),(650,'SHOW FIELDS',3,'Syntax:\nSHOW [EXTENDED] [FULL] {COLUMNS | FIELDS}\n    {FROM | IN} tbl_name\n    [{FROM | IN} db_name]\n    [LIKE \'pattern\' | WHERE expr]\n\nSHOW COLUMNS displays information about the columns in a given table.\nIt also works for views. SHOW COLUMNS displays information only for\nthose columns for which you have some privilege.\n\nmysql> SHOW COLUMNS FROM City;\n+-------------+----------+------+-----+---------+----------------+\n| Field       | Type     | Null | Key | Default | Extra          |\n+-------------+----------+------+-----+---------+----------------+\n| ID          | int(11)  | NO   | PRI | NULL    | auto_increment |\n| Name        | char(35) | NO   |     |         |                |\n| CountryCode | char(3)  | NO   | MUL |         |                |\n| District    | char(20) | NO   |     |         |                |\n| Population  | int(11)  | NO   |     | 0       |                |\n+-------------+----------+------+-----+---------+----------------+\n\nAn alternative to tbl_name FROM db_name syntax is db_name.tbl_name.\nThese two statements are equivalent:\n\nSHOW COLUMNS FROM mytable FROM mydb;\nSHOW COLUMNS FROM mydb.mytable;\n\nThe optional EXTENDED keyword causes the output to include information\nabout hidden columns that MySQL uses internally and are not accessible\nby users.\n\nThe optional FULL keyword causes the output to include the column\ncollation and comments, as well as the privileges you have for each\ncolumn.\n\nThe LIKE clause, if present, indicates which column names to match. The\nWHERE clause can be given to select rows using more general conditions,\nas discussed in\nhttps://dev.mysql.com/doc/refman/8.0/en/extended-show.html.\n\nThe data types may differ from what you expect them to be based on a\nCREATE TABLE statement because MySQL sometimes changes data types when\nyou create or alter a table. The conditions under which this occurs are\ndescribed in\nhttps://dev.mysql.com/doc/refman/8.0/en/silent-column-changes.html.\n\nSHOW COLUMNS displays the following values for each table column:\n\no Field\n\n  The name of the column.\n\no Type\n\n  The column data type.\n\no Collation\n\n  The collation for nonbinary string columns, or NULL for other\n  columns. This value is displayed only if you use the FULL keyword.\n\no Null\n\n  The column nullability. The value is YES if NULL values can be stored\n  in the column, NO if not.\n\no Key\n\n  Whether the column is indexed:\n\n  o If Key is empty, the column either is not indexed or is indexed\n    only as a secondary column in a multiple-column, nonunique index.\n\n  o If Key is PRI, the column is a PRIMARY KEY or is one of the columns\n    in a multiple-column PRIMARY KEY.\n\n  o If Key is UNI, the column is the first column of a UNIQUE index. (A\n    UNIQUE index permits multiple NULL values, but you can tell whether\n    the column permits NULL by checking the Null field.)\n\n  o If Key is MUL, the column is the first column of a nonunique index\n    in which multiple occurrences of a given value are permitted within\n    the column.\n\n  If more than one of the Key values applies to a given column of a\n  table, Key displays the one with the highest priority, in the order\n  PRI, UNI, MUL.\n\n  A UNIQUE index may be displayed as PRI if it cannot contain NULL\n  values and there is no PRIMARY KEY in the table. A UNIQUE index may\n  display as MUL if several columns form a composite UNIQUE index;\n  although the combination of the columns is unique, each column can\n  still hold multiple occurrences of a given value.\n\no Default\n\n  The default value for the column. This is NULL if the column has an\n  explicit default of NULL, or if the column definition includes no\n  DEFAULT clause.\n\no Extra\n\n  Any additional information that is available about a given column.\n  The value is nonempty in these cases:\n\n  o auto_increment for columns that have the AUTO_INCREMENT attribute.\n\n  o on update CURRENT_TIMESTAMP for TIMESTAMP or DATETIME columns that\n    have the ON UPDATE CURRENT_TIMESTAMP attribute.\n\n  o VIRTUAL GENERATED or STORED GENERATED for generated columns.\n\n  o DEFAULT_GENERATED for columns that have an expression default\n    value.\n\no Privileges\n\n  The privileges you have for the column. This value is displayed only\n  if you use the FULL keyword.\n\no Comment\n\n  Any comment included in the column definition. This value is\n  displayed only if you use the FULL keyword.\n\nTable column information is also available from the INFORMATION_SCHEMA\nCOLUMNS table. See\nhttps://dev.mysql.com/doc/refman/8.0/en/information-schema-columns-tabl\ne.html. The extended information about hidden columns is available only\nusing SHOW EXTENDED COLUMNS; it cannot be obtained from the COLUMNS\ntable.\n\nYou can list a table\'s columns with the mysqlshow db_name tbl_name\ncommand.\n\nThe DESCRIBE statement provides information similar to SHOW COLUMNS.\nSee https://dev.mysql.com/doc/refman/8.0/en/describe.html.\n\nThe SHOW CREATE TABLE, SHOW TABLE STATUS, and SHOW INDEX statements\nalso provide information about tables. See [HELP SHOW].\n\nIn MySQL 8.0.30 and later, SHOW COLUMNS includes the table\'s generated\ninvisible primary key, if it has one, by default. You can cause this\ninformation to be suppressed in the statement\'s output by setting\nshow_gipk_in_create_table_and_information_schema = OFF. For more\ninformation, see\nhttps://dev.mysql.com/doc/refman/8.0/en/create-table-gipks.html.\n\nURL: https://dev.mysql.com/doc/refman/8.0/en/show-columns.html\n\n','','https://dev.mysql.com/doc/refman/8.0/en/show-columns.html'),(651,'SHOW CREATE DATABASE',3,'Syntax:\nSHOW CREATE {DATABASE | SCHEMA} [IF NOT EXISTS] db_name\n\nShows the CREATE DATABASE statement that creates the named database. If\nthe SHOW statement includes an IF NOT EXISTS clause, the output too\nincludes such a clause. SHOW CREATE SCHEMA is a synonym for SHOW CREATE\nDATABASE.\n\nURL: https://dev.mysql.com/doc/refman/8.0/en/show-create-database.html\n\n','mysql> SHOW CREATE DATABASE test\\G\n*************************** 1. row ***************************\n       Database: test\nCreate Database: CREATE DATABASE `test` /*!40100 DEFAULT CHARACTER SET utf8mb4\n                 COLLATE utf8mb4_0900_ai_ci */ /*!80014 DEFAULT ENCRYPTION=\'N\' */\n\nmysql> SHOW CREATE SCHEMA test\\G\n*************************** 1. row ***************************\n       Database: test\nCreate Database: CREATE DATABASE `test` /*!40100 DEFAULT CHARACTER SET utf8mb4\n                 COLLATE utf8mb4_0900_ai_ci */ /*!80014 DEFAULT ENCRYPTION=\'N\' */\n','https://dev.mysql.com/doc/refman/8.0/en/show-create-database.html'),(652,'SHOW CREATE SCHEMA',3,'Syntax:\nSHOW CREATE {DATABASE | SCHEMA} [IF NOT EXISTS] db_name\n\nShows the CREATE DATABASE statement that creates the named database. If\nthe SHOW statement includes an IF NOT EXISTS clause, the output too\nincludes such a clause. SHOW CREATE SCHEMA is a synonym for SHOW CREATE\nDATABASE.\n\nURL: https://dev.mysql.com/doc/refman/8.0/en/show-create-database.html\n\n','mysql> SHOW CREATE DATABASE test\\G\n*************************** 1. row ***************************\n       Database: test\nCreate Database: CREATE DATABASE `test` /*!40100 DEFAULT CHARACTER SET utf8mb4\n                 COLLATE utf8mb4_0900_ai_ci */ /*!80014 DEFAULT ENCRYPTION=\'N\' */\n\nmysql> SHOW CREATE SCHEMA test\\G\n*************************** 1. row ***************************\n       Database: test\nCreate Database: CREATE DATABASE `test` /*!40100 DEFAULT CHARACTER SET utf8mb4\n                 COLLATE utf8mb4_0900_ai_ci */ /*!80014 DEFAULT ENCRYPTION=\'N\' */\n','https://dev.mysql.com/doc/refman/8.0/en/show-create-database.html'),(653,'SHOW CREATE EVENT',3,'Syntax:\nSHOW CREATE EVENT event_name\n\nThis statement displays the CREATE EVENT statement needed to re-create\na given event. It requires the EVENT privilege for the database from\nwhich the event is to be shown. For example (using the same event\ne_daily defined and then altered in [HELP SHOW EVENTS]):\n\nURL: https://dev.mysql.com/doc/refman/8.0/en/show-create-event.html\n\n','mysql> SHOW CREATE EVENT myschema.e_daily\\G\n*************************** 1. row ***************************\n               Event: e_daily\n            sql_mode: ONLY_FULL_GROUP_BY,STRICT_TRANS_TABLES,\n                      NO_ZERO_IN_DATE,NO_ZERO_DATE,\n                      ERROR_FOR_DIVISION_BY_ZERO,\n                      NO_ENGINE_SUBSTITUTION\n           time_zone: SYSTEM\n        Create Event: CREATE DEFINER=`jon`@`ghidora` EVENT `e_daily`\n                        ON SCHEDULE EVERY 1 DAY\n                        STARTS CURRENT_TIMESTAMP + INTERVAL 6 HOUR\n                        ON COMPLETION NOT PRESERVE\n                        ENABLE\n                        COMMENT \'Saves total number of sessions then\n                                clears the table each day\'\n                        DO BEGIN\n                          INSERT INTO site_activity.totals (time, total)\n                            SELECT CURRENT_TIMESTAMP, COUNT(*)\n                              FROM site_activity.sessions;\n                          DELETE FROM site_activity.sessions;\n                        END\ncharacter_set_client: utf8mb4\ncollation_connection: utf8mb4_0900_ai_ci\n  Database Collation: utf8mb4_0900_ai_ci\n','https://dev.mysql.com/doc/refman/8.0/en/show-create-event.html'),(654,'SHOW CREATE FUNCTION',3,'Syntax:\nSHOW CREATE FUNCTION func_name\n\nThis statement is similar to SHOW CREATE PROCEDURE but for stored\nfunctions. See [HELP SHOW CREATE PROCEDURE].\n\nURL: https://dev.mysql.com/doc/refman/8.0/en/show-create-function.html\n\n','','https://dev.mysql.com/doc/refman/8.0/en/show-create-function.html'),(655,'SHOW CREATE PROCEDURE',3,'Syntax:\nSHOW CREATE PROCEDURE proc_name\n\nThis statement is a MySQL extension. It returns the exact string that\ncan be used to re-create the named stored procedure. A similar\nstatement, SHOW CREATE FUNCTION, displays information about stored\nfunctions (see [HELP SHOW CREATE FUNCTION]).\n\nTo use either statement, you must be the user named as the routine\nDEFINER, have the SHOW_ROUTINE privilege, have the SELECT privilege at\nthe global level, or have the CREATE ROUTINE, ALTER ROUTINE, or EXECUTE\nprivilege granted at a scope that includes the routine. The value\ndisplayed for the Create Procedure or Create Function field is NULL if\nyou have only CREATE ROUTINE, ALTER ROUTINE, or EXECUTE.\n\nURL: https://dev.mysql.com/doc/refman/8.0/en/show-create-procedure.html\n\n','mysql> SHOW CREATE PROCEDURE test.citycount\\G\n*************************** 1. row ***************************\n           Procedure: citycount\n            sql_mode: ONLY_FULL_GROUP_BY,STRICT_TRANS_TABLES,\n                      NO_ZERO_IN_DATE,NO_ZERO_DATE,\n                      ERROR_FOR_DIVISION_BY_ZERO,\n                      NO_ENGINE_SUBSTITUTION\n    Create Procedure: CREATE DEFINER=`me`@`localhost`\n                      PROCEDURE `citycount`(IN country CHAR(3), OUT cities INT)\n                      BEGIN\n                        SELECT COUNT(*) INTO cities FROM world.city\n                        WHERE CountryCode = country;\n                      END\ncharacter_set_client: utf8mb4\ncollation_connection: utf8mb4_0900_ai_ci\n  Database Collation: utf8mb4_0900_ai_ci\n\nmysql> SHOW CREATE FUNCTION test.hello\\G\n*************************** 1. row ***************************\n            Function: hello\n            sql_mode: ONLY_FULL_GROUP_BY,STRICT_TRANS_TABLES,\n                      NO_ZERO_IN_DATE,NO_ZERO_DATE,\n                      ERROR_FOR_DIVISION_BY_ZERO,\n                      NO_ENGINE_SUBSTITUTION\n     Create Function: CREATE DEFINER=`me`@`localhost`\n                      FUNCTION `hello`(s CHAR(20))\n                      RETURNS char(50) CHARSET utf8mb4\n                      DETERMINISTIC\n                      RETURN CONCAT(\'Hello, \',s,\'!\')\ncharacter_set_client: utf8mb4\ncollation_connection: utf8mb4_0900_ai_ci\n  Database Collation: utf8mb4_0900_ai_ci\n','https://dev.mysql.com/doc/refman/8.0/en/show-create-procedure.html'),(656,'SHOW CREATE TABLE',3,'Syntax:\nSHOW CREATE TABLE tbl_name\n\nShows the CREATE TABLE statement that creates the named table. To use\nthis statement, you must have some privilege for the table. This\nstatement also works with views.\n\nAs of MySQL 8.0.16, MySQL implements CHECK constraints and SHOW CREATE\nTABLE displays them. All CHECK constraints are displayed as table\nconstraints. That is, a CHECK constraint originally specified as part\nof a column definition displays as a separate clause not part of the\ncolumn definition. Example:\n\nmysql> CREATE TABLE t1 (\n         i1 INT CHECK (i1 <> 0),      -- column constraint\n         i2 INT,\n         CHECK (i2 > i1),             -- table constraint\n         CHECK (i2 <> 0) NOT ENFORCED -- table constraint, not enforced\n       );\n\nmysql> SHOW CREATE TABLE t1\\G\n*************************** 1. row ***************************\n       Table: t1\nCreate Table: CREATE TABLE `t1` (\n  `i1` int DEFAULT NULL,\n  `i2` int DEFAULT NULL,\n  CONSTRAINT `t1_chk_1` CHECK ((`i1` <> 0)),\n  CONSTRAINT `t1_chk_2` CHECK ((`i2` > `i1`)),\n  CONSTRAINT `t1_chk_3` CHECK ((`i2` <> 0)) /*!80016 NOT ENFORCED */\n) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci\n\nSHOW CREATE TABLE quotes table and column names according to the value\nof the sql_quote_show_create option. See\nhttps://dev.mysql.com/doc/refman/8.0/en/server-system-variables.html.\n\nWhen altering the storage engine of a table, table options that are not\napplicable to the new storage engine are retained in the table\ndefinition to enable reverting the table with its previously defined\noptions to the original storage engine, if necessary. For example, when\nchanging the storage engine from InnoDB to MyISAM, options specific to\nInnoDB, such as ROW_FORMAT=COMPACT, are retained, as shown here:\n\nmysql> CREATE TABLE t1 (c1 INT PRIMARY KEY) ROW_FORMAT=COMPACT ENGINE=InnoDB;\nmysql> ALTER TABLE t1 ENGINE=MyISAM;\nmysql> SHOW CREATE TABLE t1\\G\n*************************** 1. row ***************************\n       Table: t1\nCreate Table: CREATE TABLE `t1` (\n  `c1` int NOT NULL,\n  PRIMARY KEY (`c1`)\n) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci ROW_FORMAT=COMPACT\n\nWhen creating a table with strict mode disabled, the storage engine\'s\ndefault row format is used if the specified row format is not\nsupported. The actual row format of the table is reported in the\nRow_format column in response to SHOW TABLE STATUS. SHOW CREATE TABLE\nshows the row format that was specified in the CREATE TABLE statement.\n\nIn MySQL 8.0.30 and later, SHOW CREATE TABLE includes the definition of\nthe table\'s generated invisible primary key, if it has such a key, by\ndefault. You can cause this information to be suppressed in the\nstatement\'s output by setting\nshow_gipk_in_create_table_and_information_schema = OFF. For more\ninformation, see\nhttps://dev.mysql.com/doc/refman/8.0/en/create-table-gipks.html.\n\nURL: https://dev.mysql.com/doc/refman/8.0/en/show-create-table.html\n\n','mysql> SHOW CREATE TABLE t\\G\n*************************** 1. row ***************************\n       Table: t\nCreate Table: CREATE TABLE `t` (\n  `id` int NOT NULL AUTO_INCREMENT,\n  `s` char(60) DEFAULT NULL,\n  PRIMARY KEY (`id`)\n) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci\n','https://dev.mysql.com/doc/refman/8.0/en/show-create-table.html'),(657,'SHOW CREATE TRIGGER',3,'Syntax:\nSHOW CREATE TRIGGER trigger_name\n\nThis statement shows the CREATE TRIGGER statement that creates the\nnamed trigger. This statement requires the TRIGGER privilege for the\ntable associated with the trigger.\n\nURL: https://dev.mysql.com/doc/refman/8.0/en/show-create-trigger.html\n\n','','https://dev.mysql.com/doc/refman/8.0/en/show-create-trigger.html'),(658,'SHOW CREATE USER',3,'Syntax:\nSHOW CREATE USER user\n\nThis statement shows the CREATE USER statement that creates the named\nuser. An error occurs if the user does not exist. The statement\nrequires the SELECT privilege for the mysql system schema, except to\nsee information for the current user. For the current user, the SELECT\nprivilege for the mysql.user system table is required for display of\nthe password hash in the IDENTIFIED AS clause; otherwise, the hash\ndisplays as <secret>.\n\nTo name the account, use the format described in\nhttps://dev.mysql.com/doc/refman/8.0/en/account-names.html. The host\nname part of the account name, if omitted, defaults to \'%\'. It is also\npossible to specify CURRENT_USER or CURRENT_USER() to refer to the\naccount associated with the current session.\n\nPassword hash values displayed in the IDENTIFIED WITH clause of output\nfrom SHOW CREATE USER may contain unprintable characters that have\nadverse effects on terminal displays and in other environments.\nEnabling the print_identified_with_as_hex system variable (available as\nof MySQL 8.0.17) causes SHOW CREATE USER to display such hash values as\nhexadecimal strings rather than as regular string literals. Hash values\nthat do not contain unprintable characters still display as regular\nstring literals, even with this variable enabled.\n\nURL: https://dev.mysql.com/doc/refman/8.0/en/show-create-user.html\n\n','','https://dev.mysql.com/doc/refman/8.0/en/show-create-user.html'),(659,'SHOW CREATE VIEW',3,'Syntax:\nSHOW CREATE VIEW view_name\n\nThis statement shows the CREATE VIEW statement that creates the named\nview.\n\nURL: https://dev.mysql.com/doc/refman/8.0/en/show-create-view.html\n\n','','https://dev.mysql.com/doc/refman/8.0/en/show-create-view.html'),(660,'SHOW DATABASES',3,'Syntax:\nSHOW {DATABASES | SCHEMAS}\n    [LIKE \'pattern\' | WHERE expr]\n\nSHOW DATABASES lists the databases on the MySQL server host. SHOW\nSCHEMAS is a synonym for SHOW DATABASES. The LIKE clause, if present,\nindicates which database names to match. The WHERE clause can be given\nto select rows using more general conditions, as discussed in\nhttps://dev.mysql.com/doc/refman/8.0/en/extended-show.html.\n\nYou see only those databases for which you have some kind of privilege,\nunless you have the global SHOW DATABASES privilege. You can also get\nthis list using the mysqlshow command.\n\nIf the server was started with the --skip-show-database option, you\ncannot use this statement at all unless you have the SHOW DATABASES\nprivilege.\n\nMySQL implements databases as directories in the data directory, so\nthis statement simply lists directories in that location. However, the\noutput may include names of directories that do not correspond to\nactual databases.\n\nDatabase information is also available from the INFORMATION_SCHEMA\nSCHEMATA table. See\nhttps://dev.mysql.com/doc/refman/8.0/en/information-schema-schemata-tab\nle.html.\n\n*Caution*:\n\nBecause any static global privilege is considered a privilege for all\ndatabases, any static global privilege enables a user to see all\ndatabase names with SHOW DATABASES or by examining the SCHEMATA table\nof INFORMATION_SCHEMA, except databases that have been restricted at\nthe database level by partial revokes.\n\nURL: https://dev.mysql.com/doc/refman/8.0/en/show-databases.html\n\n','','https://dev.mysql.com/doc/refman/8.0/en/show-databases.html'),(661,'SHOW SCHEMAS',3,'Syntax:\nSHOW {DATABASES | SCHEMAS}\n    [LIKE \'pattern\' | WHERE expr]\n\nSHOW DATABASES lists the databases on the MySQL server host. SHOW\nSCHEMAS is a synonym for SHOW DATABASES. The LIKE clause, if present,\nindicates which database names to match. The WHERE clause can be given\nto select rows using more general conditions, as discussed in\nhttps://dev.mysql.com/doc/refman/8.0/en/extended-show.html.\n\nYou see only those databases for which you have some kind of privilege,\nunless you have the global SHOW DATABASES privilege. You can also get\nthis list using the mysqlshow command.\n\nIf the server was started with the --skip-show-database option, you\ncannot use this statement at all unless you have the SHOW DATABASES\nprivilege.\n\nMySQL implements databases as directories in the data directory, so\nthis statement simply lists directories in that location. However, the\noutput may include names of directories that do not correspond to\nactual databases.\n\nDatabase information is also available from the INFORMATION_SCHEMA\nSCHEMATA table. See\nhttps://dev.mysql.com/doc/refman/8.0/en/information-schema-schemata-tab\nle.html.\n\n*Caution*:\n\nBecause any static global privilege is considered a privilege for all\ndatabases, any static global privilege enables a user to see all\ndatabase names with SHOW DATABASES or by examining the SCHEMATA table\nof INFORMATION_SCHEMA, except databases that have been restricted at\nthe database level by partial revokes.\n\nURL: https://dev.mysql.com/doc/refman/8.0/en/show-databases.html\n\n','','https://dev.mysql.com/doc/refman/8.0/en/show-databases.html'),(662,'SHOW ENGINE',3,'Syntax:\nSHOW ENGINE engine_name {STATUS | MUTEX}\n\nSHOW ENGINE displays operational information about a storage engine. It\nrequires the PROCESS privilege. The statement has these variants:\n\nSHOW ENGINE INNODB STATUS\nSHOW ENGINE INNODB MUTEX\nSHOW ENGINE PERFORMANCE_SCHEMA STATUS\n\nSHOW ENGINE INNODB STATUS displays extensive information from the\nstandard InnoDB Monitor about the state of the InnoDB storage engine.\nFor information about the standard monitor and other InnoDB Monitors\nthat provide information about InnoDB processing, see\nhttps://dev.mysql.com/doc/refman/8.0/en/innodb-monitors.html.\n\nSHOW ENGINE INNODB MUTEX displays InnoDB mutex and rw-lock statistics.\n\n*Note*:\n\nInnoDB mutexes and rwlocks can also be monitored using Performance\nSchema tables. See\nhttps://dev.mysql.com/doc/refman/8.0/en/monitor-innodb-mutex-waits-perf\normance-schema.html.\n\nMutex statistics collection is configured dynamically using the\nfollowing options:\n\no To enable the collection of mutex statistics, run:\n\nSET GLOBAL innodb_monitor_enable=\'latch\';\n\no To reset mutex statistics, run:\n\nSET GLOBAL innodb_monitor_reset=\'latch\';\n\no To disable the collection of mutex statistics, run:\n\nSET GLOBAL innodb_monitor_disable=\'latch\';\n\nCollection of mutex statistics for SHOW ENGINE INNODB MUTEX can also be\nenabled by setting innodb_monitor_enable=\'all\', or disabled by setting\ninnodb_monitor_disable=\'all\'.\n\nSHOW ENGINE INNODB MUTEX output has these columns:\n\no Type\n\n  Always InnoDB.\n\no Name\n\n  For mutexes, the Name field reports only the mutex name. For rwlocks,\n  the Name field reports the source file where the rwlock is\n  implemented, and the line number in the file where the rwlock is\n  created. The line number is specific to your version of MySQL.\n\no Status\n\n  The mutex status. This field reports the number of spins, waits, and\n  calls. Statistics for low-level operating system mutexes, which are\n  implemented outside of InnoDB, are not reported.\n\n  o spins indicates the number of spins.\n\n  o waits indicates the number of mutex waits.\n\n  o calls indicates how many times the mutex was requested.\n\nSHOW ENGINE INNODB MUTEX does not list mutexes and rw-locks for each\nbuffer pool block, as the amount of output would be overwhelming on\nsystems with a large buffer pool. SHOW ENGINE INNODB MUTEX does,\nhowever, print aggregate BUF_BLOCK_MUTEX spin, wait, and call values\nfor buffer pool block mutexes and rw-locks. SHOW ENGINE INNODB MUTEX\nalso does not list any mutexes or rw-locks that have never been waited\non (os_waits=0). Thus, SHOW ENGINE INNODB MUTEX only displays\ninformation about mutexes and rw-locks outside of the buffer pool that\nhave caused at least one OS-level wait.\n\nUse SHOW ENGINE PERFORMANCE_SCHEMA STATUS to inspect the internal\noperation of the Performance Schema code:\n\nmysql> SHOW ENGINE PERFORMANCE_SCHEMA STATUS\\G\n...\n*************************** 3. row ***************************\n  Type: performance_schema\n  Name: events_waits_history.size\nStatus: 76\n*************************** 4. row ***************************\n  Type: performance_schema\n  Name: events_waits_history.count\nStatus: 10000\n*************************** 5. row ***************************\n  Type: performance_schema\n  Name: events_waits_history.memory\nStatus: 760000\n...\n*************************** 57. row ***************************\n  Type: performance_schema\n  Name: performance_schema.memory\nStatus: 26459600\n...\n\nThis statement is intended to help the DBA understand the effects that\ndifferent Performance Schema options have on memory requirements.\n\nName values consist of two parts, which name an internal buffer and a\nbuffer attribute, respectively. Interpret buffer names as follows:\n\no An internal buffer that is not exposed as a table is named within\n  parentheses. Examples: (pfs_cond_class).size,\n  (pfs_mutex_class).memory.\n\no An internal buffer that is exposed as a table in the\n  performance_schema database is named after the table, without\n  parentheses. Examples: events_waits_history.size,\n  mutex_instances.count.\n\no A value that applies to the Performance Schema as a whole begins with\n  performance_schema. Example: performance_schema.memory.\n\nBuffer attributes have these meanings:\n\no size is the size of the internal record used by the implementation,\n  such as the size of a row in a table. size values cannot be changed.\n\no count is the number of internal records, such as the number of rows\n  in a table. count values can be changed using Performance Schema\n  configuration options.\n\no For a table, tbl_name.memory is the product of size and count. For\n  the Performance Schema as a whole, performance_schema.memory is the\n  sum of all the memory used (the sum of all other memory values).\n\nIn some cases, there is a direct relationship between a Performance\nSchema configuration parameter and a SHOW ENGINE value. For example,\nevents_waits_history_long.count corresponds to\nperformance_schema_events_waits_history_long_size. In other cases, the\nrelationship is more complex. For example, events_waits_history.count\ncorresponds to performance_schema_events_waits_history_size (the number\nof rows per thread) multiplied by\nperformance_schema_max_thread_instances ( the number of threads).\n\nSHOW ENGINE NDB STATUS If the server has the NDB storage engine\nenabled, SHOW ENGINE NDB STATUS displays cluster status information\nsuch as the number of connected data nodes, the cluster connectstring,\nand cluster binary log epochs, as well as counts of various Cluster API\nobjects created by the MySQL Server when connected to the cluster.\nSample output from this statement is shown here:\n\nmysql> SHOW ENGINE NDB STATUS;\n+------------+-----------------------+--------------------------------------------------+\n| Type       | Name                  | Status                                           |\n+------------+-----------------------+--------------------------------------------------+\n| ndbcluster | connection            | cluster_node_id=7,\n  connected_host=198.51.100.103, connected_port=1186, number_of_data_nodes=4,\n  number_of_ready_data_nodes=3, connect_count=0                                         |\n| ndbcluster | NdbTransaction        | created=6, free=0, sizeof=212                    |\n| ndbcluster | NdbOperation          | created=8, free=8, sizeof=660                    |\n| ndbcluster | NdbIndexScanOperation | created=1, free=1, sizeof=744                    |\n| ndbcluster | NdbIndexOperation     | created=0, free=0, sizeof=664                    |\n| ndbcluster | NdbRecAttr            | created=1285, free=1285, sizeof=60               |\n| ndbcluster | NdbApiSignal          | created=16, free=16, sizeof=136                  |\n| ndbcluster | NdbLabel              | created=0, free=0, sizeof=196                    |\n| ndbcluster | NdbBranch             | created=0, free=0, sizeof=24                     |\n| ndbcluster | NdbSubroutine         | created=0, free=0, sizeof=68                     |\n| ndbcluster | NdbCall               | created=0, free=0, sizeof=16                     |\n| ndbcluster | NdbBlob               | created=1, free=1, sizeof=264                    |\n| ndbcluster | NdbReceiver           | created=4, free=0, sizeof=68                     |\n| ndbcluster | binlog                | latest_epoch=155467, latest_trans_epoch=148126,\n  latest_received_binlog_epoch=0, latest_handled_binlog_epoch=0,\n  latest_applied_binlog_epoch=0                                                         |\n+------------+-----------------------+--------------------------------------------------+\n\nThe Status column in each of these rows provides information about the\nMySQL server\'s connection to the cluster and about the cluster binary\nlog\'s status, respectively. The Status information is in the form of\ncomma-delimited set of name/value pairs.\n\nURL: https://dev.mysql.com/doc/refman/8.0/en/show-engine.html\n\n','','https://dev.mysql.com/doc/refman/8.0/en/show-engine.html'),(663,'SHOW ENGINES',3,'Syntax:\nSHOW [STORAGE] ENGINES\n\nSHOW ENGINES displays status information about the server\'s storage\nengines. This is particularly useful for checking whether a storage\nengine is supported, or to see what the default engine is.\n\nFor information about MySQL storage engines, see\nhttps://dev.mysql.com/doc/refman/8.0/en/innodb-storage-engine.html, and\nhttps://dev.mysql.com/doc/refman/8.0/en/storage-engines.html.\n\nURL: https://dev.mysql.com/doc/refman/8.0/en/show-engines.html\n\n','','https://dev.mysql.com/doc/refman/8.0/en/show-engines.html'),(664,'SHOW ERRORS',3,'Syntax:\nSHOW ERRORS [LIMIT [offset,] row_count]\nSHOW COUNT(*) ERRORS\n\nSHOW ERRORS is a diagnostic statement that is similar to SHOW WARNINGS,\nexcept that it displays information only for errors, rather than for\nerrors, warnings, and notes.\n\nThe LIMIT clause has the same syntax as for the SELECT statement. See\nhttps://dev.mysql.com/doc/refman/8.0/en/select.html.\n\nThe SHOW COUNT(*) ERRORS statement displays the number of errors. You\ncan also retrieve this number from the error_count variable:\n\nSHOW COUNT(*) ERRORS;\nSELECT @@error_count;\n\nSHOW ERRORS and error_count apply only to errors, not warnings or\nnotes. In other respects, they are similar to SHOW WARNINGS and\nwarning_count. In particular, SHOW ERRORS cannot display information\nfor more than max_error_count messages, and error_count can exceed the\nvalue of max_error_count if the number of errors exceeds\nmax_error_count.\n\nURL: https://dev.mysql.com/doc/refman/8.0/en/show-errors.html\n\n','','https://dev.mysql.com/doc/refman/8.0/en/show-errors.html'),(665,'SHOW EVENTS',3,'Syntax:\nSHOW EVENTS\n    [{FROM | IN} schema_name]\n    [LIKE \'pattern\' | WHERE expr]\n\nThis statement displays information about Event Manager events, which\nare discussed in\nhttps://dev.mysql.com/doc/refman/8.0/en/event-scheduler.html. It\nrequires the EVENT privilege for the database from which the events are\nto be shown.\n\nIn its simplest form, SHOW EVENTS lists all of the events in the\ncurrent schema:\n\nmysql> SELECT CURRENT_USER(), SCHEMA();\n+----------------+----------+\n| CURRENT_USER() | SCHEMA() |\n+----------------+----------+\n| jon@ghidora    | myschema |\n+----------------+----------+\n1 row in set (0.00 sec)\n\nmysql> SHOW EVENTS\\G\n*************************** 1. row ***************************\n                  Db: myschema\n                Name: e_daily\n             Definer: jon@ghidora\n           Time zone: SYSTEM\n                Type: RECURRING\n          Execute at: NULL\n      Interval value: 1\n      Interval field: DAY\n              Starts: 2018-08-08 11:06:34\n                Ends: NULL\n              Status: ENABLED\n          Originator: 1\ncharacter_set_client: utf8mb4\ncollation_connection: utf8mb4_0900_ai_ci\n  Database Collation: utf8mb4_0900_ai_ci\n\nTo see events for a specific schema, use the FROM clause. For example,\nto see events for the test schema, use the following statement:\n\nSHOW EVENTS FROM test;\n\nThe LIKE clause, if present, indicates which event names to match. The\nWHERE clause can be given to select rows using more general conditions,\nas discussed in\nhttps://dev.mysql.com/doc/refman/8.0/en/extended-show.html.\n\nURL: https://dev.mysql.com/doc/refman/8.0/en/show-events.html\n\n','','https://dev.mysql.com/doc/refman/8.0/en/show-events.html'),(666,'SHOW FUNCTION CODE',3,'Syntax:\nSHOW FUNCTION CODE func_name\n\nThis statement is similar to SHOW PROCEDURE CODE but for stored\nfunctions. See [HELP SHOW PROCEDURE CODE].\n\nURL: https://dev.mysql.com/doc/refman/8.0/en/show-function-code.html\n\n','','https://dev.mysql.com/doc/refman/8.0/en/show-function-code.html'),(667,'SHOW FUNCTION STATUS',3,'Syntax:\nSHOW FUNCTION STATUS\n    [LIKE \'pattern\' | WHERE expr]\n\nThis statement is similar to SHOW PROCEDURE STATUS but for stored\nfunctions. See [HELP SHOW PROCEDURE STATUS].\n\nURL: https://dev.mysql.com/doc/refman/8.0/en/show-function-status.html\n\n','','https://dev.mysql.com/doc/refman/8.0/en/show-function-status.html'),(668,'SHOW GRANTS',3,'Syntax:\nSHOW GRANTS\n    [FOR user_or_role\n        [USING role [, role] ...]]\n\nuser_or_role: {\n    user (see )\n  | role (see .\n}\n\nThis statement displays the privileges and roles that are assigned to a\nMySQL user account or role, in the form of GRANT statements that must\nbe executed to duplicate the privilege and role assignments.\n\n*Note*:\n\nTo display nonprivilege information for MySQL accounts, use the SHOW\nCREATE USER statement. See [HELP SHOW CREATE USER].\n\nSHOW GRANTS requires the SELECT privilege for the mysql system schema,\nexcept to display privileges and roles for the current user.\n\nTo name the account or role for SHOW GRANTS, use the same format as for\nthe GRANT statement (for example, \'jeffrey\'@\'localhost\'):\n\nmysql> SHOW GRANTS FOR \'jeffrey\'@\'localhost\';\n+------------------------------------------------------------------+\n| Grants for jeffrey@localhost                                     |\n+------------------------------------------------------------------+\n| GRANT USAGE ON *.* TO `jeffrey`@`localhost`                      |\n| GRANT SELECT, INSERT, UPDATE ON `db1`.* TO `jeffrey`@`localhost` |\n+------------------------------------------------------------------+\n\nThe host part, if omitted, defaults to \'%\'. For additional information\nabout specifying account and role names, see\nhttps://dev.mysql.com/doc/refman/8.0/en/account-names.html, and\nhttps://dev.mysql.com/doc/refman/8.0/en/role-names.html.\n\nTo display the privileges granted to the current user (the account you\nare using to connect to the server), you can use any of the following\nstatements:\n\nSHOW GRANTS;\nSHOW GRANTS FOR CURRENT_USER;\nSHOW GRANTS FOR CURRENT_USER();\n\nIf SHOW GRANTS FOR CURRENT_USER (or any equivalent syntax) is used in\ndefiner context, such as within a stored procedure that executes with\ndefiner rather than invoker privileges, the grants displayed are those\nof the definer and not the invoker.\n\nIn MySQL 8.0 compared to previous series, SHOW GRANTS no longer\ndisplays ALL PRIVILEGES in its global-privileges output because the\nmeaning of ALL PRIVILEGES at the global level varies depending on which\ndynamic privileges are defined. Instead, SHOW GRANTS explicitly lists\neach granted global privilege:\n\nmysql> SHOW GRANTS FOR \'root\'@\'localhost\';\n+---------------------------------------------------------------------+\n| Grants for root@localhost                                           |\n+---------------------------------------------------------------------+\n| GRANT SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, RELOAD,         |\n| SHUTDOWN, PROCESS, FILE, REFERENCES, INDEX, ALTER, SHOW DATABASES,  |\n| SUPER, CREATE TEMPORARY TABLES, LOCK TABLES, EXECUTE, REPLICATION   |\n| SLAVE, REPLICATION CLIENT, CREATE VIEW, SHOW VIEW, CREATE ROUTINE,  |\n| ALTER ROUTINE, CREATE USER, EVENT, TRIGGER, CREATE TABLESPACE,      |\n| CREATE ROLE, DROP ROLE ON *.* TO `root`@`localhost` WITH GRANT      |\n| OPTION                                                              |\n| GRANT PROXY ON \'\'@\'\' TO `root`@`localhost` WITH GRANT OPTION        |\n+---------------------------------------------------------------------+\n\nApplications that process SHOW GRANTS output should be adjusted\naccordingly.\n\nAt the global level, GRANT OPTION applies to all granted static global\nprivileges if granted for any of them, but applies individually to\ngranted dynamic privileges. SHOW GRANTS displays global privileges this\nway:\n\no One line listing all granted static privileges, if there are any,\n  including WITH GRANT OPTION if appropriate.\n\no One line listing all granted dynamic privileges for which GRANT\n  OPTION is granted, if there are any, including WITH GRANT OPTION.\n\no One line listing all granted dynamic privileges for which GRANT\n  OPTION is not granted, if there are any, without WITH GRANT OPTION.\n\nWith the optional USING clause, SHOW GRANTS enables you to examine the\nprivileges associated with roles for the user. Each role named in the\nUSING clause must be granted to the user.\n\nSuppose that user u1 is assigned roles r1 and r2, as follows:\n\nCREATE ROLE \'r1\', \'r2\';\nGRANT SELECT ON db1.* TO \'r1\';\nGRANT INSERT, UPDATE, DELETE ON db1.* TO \'r2\';\nCREATE USER \'u1\'@\'localhost\' IDENTIFIED BY \'u1pass\';\nGRANT \'r1\', \'r2\' TO \'u1\'@\'localhost\';\n\nSHOW GRANTS without USING shows the granted roles:\n\nmysql> SHOW GRANTS FOR \'u1\'@\'localhost\';\n+---------------------------------------------+\n| Grants for u1@localhost                     |\n+---------------------------------------------+\n| GRANT USAGE ON *.* TO `u1`@`localhost`      |\n| GRANT `r1`@`%`,`r2`@`%` TO `u1`@`localhost` |\n+---------------------------------------------+\n\nAdding a USING clause causes the statement to also display the\nprivileges associated with each role named in the clause:\n\nmysql> SHOW GRANTS FOR \'u1\'@\'localhost\' USING \'r1\';\n+---------------------------------------------+\n| Grants for u1@localhost                     |\n+---------------------------------------------+\n| GRANT USAGE ON *.* TO `u1`@`localhost`      |\n| GRANT SELECT ON `db1`.* TO `u1`@`localhost` |\n| GRANT `r1`@`%`,`r2`@`%` TO `u1`@`localhost` |\n+---------------------------------------------+\nmysql> SHOW GRANTS FOR \'u1\'@\'localhost\' USING \'r2\';\n+-------------------------------------------------------------+\n| Grants for u1@localhost                                     |\n+-------------------------------------------------------------+\n| GRANT USAGE ON *.* TO `u1`@`localhost`                      |\n| GRANT INSERT, UPDATE, DELETE ON `db1`.* TO `u1`@`localhost` |\n| GRANT `r1`@`%`,`r2`@`%` TO `u1`@`localhost`                 |\n+-------------------------------------------------------------+\nmysql> SHOW GRANTS FOR \'u1\'@\'localhost\' USING \'r1\', \'r2\';\n+---------------------------------------------------------------------+\n| Grants for u1@localhost                                             |\n+---------------------------------------------------------------------+\n| GRANT USAGE ON *.* TO `u1`@`localhost`                              |\n| GRANT SELECT, INSERT, UPDATE, DELETE ON `db1`.* TO `u1`@`localhost` |\n| GRANT `r1`@`%`,`r2`@`%` TO `u1`@`localhost`                         |\n+---------------------------------------------------------------------+\n\n*Note*:\n\nA privilege granted to an account is always in effect, but a role is\nnot. The active roles for an account can differ across and within\nsessions, depending on the value of the activate_all_roles_on_login\nsystem variable, the account default roles, and whether SET ROLE has\nbeen executed within a session.\n\nMySQL 8.0.16 and higher supports partial revokes of global privileges,\nsuch that a global privilege can be restricted from applying to\nparticular schemas (see\nhttps://dev.mysql.com/doc/refman/8.0/en/partial-revokes.html). To\nindicate which global schema privileges have been revoked for\nparticular schemas, SHOW GRANTS output includes REVOKE statements:\n\nmysql> SET PERSIST partial_revokes = ON;\nmysql> CREATE USER u1;\nmysql> GRANT SELECT, INSERT, DELETE ON *.* TO u1;\nmysql> REVOKE SELECT, INSERT ON mysql.* FROM u1;\nmysql> REVOKE DELETE ON world.* FROM u1;\nmysql> SHOW GRANTS FOR u1;\n+--------------------------------------------------+\n| Grants for u1@%                                  |\n+--------------------------------------------------+\n| GRANT SELECT, INSERT, DELETE ON *.* TO `u1`@`%`  |\n| REVOKE SELECT, INSERT ON `mysql`.* FROM `u1`@`%` |\n| REVOKE DELETE ON `world`.* FROM `u1`@`%`         |\n+--------------------------------------------------+\n\nSHOW GRANTS does not display privileges that are available to the named\naccount but are granted to a different account. For example, if an\nanonymous account exists, the named account might be able to use its\nprivileges, but SHOW GRANTS does not display them.\n\nURL: https://dev.mysql.com/doc/refman/8.0/en/show-grants.html\n\n','','https://dev.mysql.com/doc/refman/8.0/en/show-grants.html'),(669,'SHOW INDEX',3,'Syntax:\nSHOW [EXTENDED] {INDEX | INDEXES | KEYS}\n    {FROM | IN} tbl_name\n    [{FROM | IN} db_name]\n    [WHERE expr]\n\nSHOW INDEX returns table index information. The format resembles that\nof the SQLStatistics call in ODBC. This statement requires some\nprivilege for any column in the table.\n\nmysql> SHOW INDEX FROM City\\G\n*************************** 1. row ***************************\n        Table: city\n   Non_unique: 0\n     Key_name: PRIMARY\n Seq_in_index: 1\n  Column_name: ID\n    Collation: A\n  Cardinality: 4188\n     Sub_part: NULL\n       Packed: NULL\n         Null:\n   Index_type: BTREE\n      Comment:\nIndex_comment:\n      Visible: YES\n   Expression: NULL\n*************************** 2. row ***************************\n        Table: city\n   Non_unique: 1\n     Key_name: CountryCode\n Seq_in_index: 1\n  Column_name: CountryCode\n    Collation: A\n  Cardinality: 232\n     Sub_part: NULL\n       Packed: NULL\n         Null:\n   Index_type: BTREE\n      Comment:\nIndex_comment:\n      Visible: YES\n   Expression: NULL\n\nAn alternative to tbl_name FROM db_name syntax is db_name.tbl_name.\nThese two statements are equivalent:\n\nSHOW INDEX FROM mytable FROM mydb;\nSHOW INDEX FROM mydb.mytable;\n\nThe optional EXTENDED keyword causes the output to include information\nabout hidden indexes that MySQL uses internally and are not accessible\nby users.\n\nThe WHERE clause can be given to select rows using more general\nconditions, as discussed in\nhttps://dev.mysql.com/doc/refman/8.0/en/extended-show.html.\n\nSHOW INDEX returns the following fields:\n\no Table\n\n  The name of the table.\n\no Non_unique\n\n  0 if the index cannot contain duplicates, 1 if it can.\n\no Key_name\n\n  The name of the index. If the index is the primary key, the name is\n  always PRIMARY.\n\no Seq_in_index\n\n  The column sequence number in the index, starting with 1.\n\no Column_name\n\n  The column name. See also the description for the Expression column.\n\no Collation\n\n  How the column is sorted in the index. This can have values A\n  (ascending), D (descending), or NULL (not sorted).\n\no Cardinality\n\n  An estimate of the number of unique values in the index. To update\n  this number, run ANALYZE TABLE or (for MyISAM tables) myisamchk -a.\n\n  Cardinality is counted based on statistics stored as integers, so the\n  value is not necessarily exact even for small tables. The higher the\n  cardinality, the greater the chance that MySQL uses the index when\n  doing joins.\n\no Sub_part\n\n  The index prefix. That is, the number of indexed characters if the\n  column is only partly indexed, NULL if the entire column is indexed.\n\n  *Note*:\n\n  Prefix limits are measured in bytes. However, prefix lengths for\n  index specifications in CREATE TABLE, ALTER TABLE, and CREATE INDEX\n  statements are interpreted as number of characters for nonbinary\n  string types (CHAR, VARCHAR, TEXT) and number of bytes for binary\n  string types (BINARY, VARBINARY, BLOB). Take this into account when\n  specifying a prefix length for a nonbinary string column that uses a\n  multibyte character set.\n\n  For additional information about index prefixes, see\n  https://dev.mysql.com/doc/refman/8.0/en/column-indexes.html, and\n  [HELP CREATE INDEX].\n\no Packed\n\n  Indicates how the key is packed. NULL if it is not.\n\no Null\n\n  Contains YES if the column may contain NULL values and \'\' if not.\n\no Index_type\n\n  The index method used (BTREE, FULLTEXT, HASH, RTREE).\n\no Comment\n\n  Information about the index not described in its own column, such as\n  disabled if the index is disabled.\n\no Index_comment\n\n  Any comment provided for the index with a COMMENT attribute when the\n  index was created.\n\no Visible\n\n  Whether the index is visible to the optimizer. See\n  https://dev.mysql.com/doc/refman/8.0/en/invisible-indexes.html.\n\no Expression\n\n  MySQL 8.0.13 and higher supports functional key parts (see\n  https://dev.mysql.com/doc/refman/8.0/en/create-index.html#create-inde\n  x-functional-key-parts), which affects both the Column_name and\n  Expression columns:\n\n  o For a nonfunctional key part, Column_name indicates the column\n    indexed by the key part and Expression is NULL.\n\n  o For a functional key part, Column_name column is NULL and\n    Expression indicates the expression for the key part.\n\nInformation about table indexes is also available from the\nINFORMATION_SCHEMA STATISTICS table. See\nhttps://dev.mysql.com/doc/refman/8.0/en/information-schema-statistics-t\nable.html. The extended information about hidden indexes is available\nonly using SHOW EXTENDED INDEX; it cannot be obtained from the\nSTATISTICS table.\n\nYou can list a table\'s indexes with the mysqlshow -k db_name tbl_name\ncommand.\n\nIn MySQL 8.0.30 and later, SHOW INDEX includes the table\'s generated\ninvisible key, if it has one, by default. You can cause this\ninformation to be suppressed in the statement\'s output by setting\nshow_gipk_in_create_table_and_information_schema = OFF. For more\ninformation, see\nhttps://dev.mysql.com/doc/refman/8.0/en/create-table-gipks.html.\n\nURL: https://dev.mysql.com/doc/refman/8.0/en/show-index.html\n\n','','https://dev.mysql.com/doc/refman/8.0/en/show-index.html'),(670,'SHOW MASTER STATUS',3,'Syntax:\nSHOW MASTER STATUS\n\nThis statement provides status information about the binary log files\nof the source server. It requires the REPLICATION CLIENT privilege (or\nthe deprecated SUPER privilege).\n\nExample:\n\nmysql> SHOW MASTER STATUS\\G\n*************************** 1. row ***************************\n             File: source-bin.000002\n         Position: 1307\n     Binlog_Do_DB: test\n Binlog_Ignore_DB: manual, mysql\nExecuted_Gtid_Set: 3E11FA47-71CA-11E1-9E33-C80AA9429562:1-5\n1 row in set (0.00 sec)\n\nURL: https://dev.mysql.com/doc/refman/8.0/en/show-master-status.html\n\n','','https://dev.mysql.com/doc/refman/8.0/en/show-master-status.html'),(671,'SHOW OPEN TABLES',3,'Syntax:\nSHOW OPEN TABLES\n    [{FROM | IN} db_name]\n    [LIKE \'pattern\' | WHERE expr]\n\nSHOW OPEN TABLES lists the non-TEMPORARY tables that are currently open\nin the table cache. See\nhttps://dev.mysql.com/doc/refman/8.0/en/table-cache.html. The FROM\nclause, if present, restricts the tables shown to those present in the\ndb_name database. The LIKE clause, if present, indicates which table\nnames to match. The WHERE clause can be given to select rows using more\ngeneral conditions, as discussed in\nhttps://dev.mysql.com/doc/refman/8.0/en/extended-show.html.\n\nURL: https://dev.mysql.com/doc/refman/8.0/en/show-open-tables.html\n\n','','https://dev.mysql.com/doc/refman/8.0/en/show-open-tables.html'),(672,'SHOW PLUGINS',3,'Syntax:\nSHOW PLUGINS\n\nSHOW PLUGINS displays information about server plugins.\n\nExample of SHOW PLUGINS output:\n\nmysql> SHOW PLUGINS\\G\n*************************** 1. row ***************************\n   Name: binlog\n Status: ACTIVE\n   Type: STORAGE ENGINE\nLibrary: NULL\nLicense: GPL\n*************************** 2. row ***************************\n   Name: CSV\n Status: ACTIVE\n   Type: STORAGE ENGINE\nLibrary: NULL\nLicense: GPL\n*************************** 3. row ***************************\n   Name: MEMORY\n Status: ACTIVE\n   Type: STORAGE ENGINE\nLibrary: NULL\nLicense: GPL\n*************************** 4. row ***************************\n   Name: MyISAM\n Status: ACTIVE\n   Type: STORAGE ENGINE\nLibrary: NULL\nLicense: GPL\n...\n\nURL: https://dev.mysql.com/doc/refman/8.0/en/show-plugins.html\n\n','','https://dev.mysql.com/doc/refman/8.0/en/show-plugins.html'),(673,'SHOW PRIVILEGES',3,'Syntax:\nSHOW PRIVILEGES\n\nSHOW PRIVILEGES shows the list of system privileges that the MySQL\nserver supports. The privileges displayed include all static\nprivileges, and all currently registered dynamic privileges.\n\nURL: https://dev.mysql.com/doc/refman/8.0/en/show-privileges.html\n\n','','https://dev.mysql.com/doc/refman/8.0/en/show-privileges.html'),(674,'SHOW PROCEDURE CODE',3,'Syntax:\nSHOW PROCEDURE CODE proc_name\n\nThis statement is a MySQL extension that is available only for servers\nthat have been built with debugging support. It displays a\nrepresentation of the internal implementation of the named stored\nprocedure. A similar statement, SHOW FUNCTION CODE, displays\ninformation about stored functions (see [HELP SHOW FUNCTION CODE]).\n\nTo use either statement, you must be the user named as the routine\nDEFINER, have the SHOW_ROUTINE privilege, or have the SELECT privilege\nat the global level.\n\nIf the named routine is available, each statement produces a result\nset. Each row in the result set corresponds to one \"instruction\" in the\nroutine. The first column is Pos, which is an ordinal number beginning\nwith 0. The second column is Instruction, which contains an SQL\nstatement (usually changed from the original source), or a directive\nwhich has meaning only to the stored-routine handler.\n\nURL: https://dev.mysql.com/doc/refman/8.0/en/show-procedure-code.html\n\n','mysql> DELIMITER //\nmysql> CREATE PROCEDURE p1 ()\n       BEGIN\n         DECLARE fanta INT DEFAULT 55;\n         DROP TABLE t2;\n         LOOP\n           INSERT INTO t3 VALUES (fanta);\n           END LOOP;\n         END//\nQuery OK, 0 rows affected (0.01 sec)\n\nmysql> SHOW PROCEDURE CODE p1//\n+-----+----------------------------------------+\n| Pos | Instruction                            |\n+-----+----------------------------------------+\n|   0 | set fanta@0 55                         |\n|   1 | stmt 9 \"DROP TABLE t2\"                 |\n|   2 | stmt 5 \"INSERT INTO t3 VALUES (fanta)\" |\n|   3 | jump 2                                 |\n+-----+----------------------------------------+\n4 rows in set (0.00 sec)\n\nmysql> CREATE FUNCTION test.hello (s CHAR(20))\n       RETURNS CHAR(50) DETERMINISTIC\n       RETURN CONCAT(\'Hello, \',s,\'!\');\nQuery OK, 0 rows affected (0.00 sec)\n\nmysql> SHOW FUNCTION CODE test.hello;\n+-----+---------------------------------------+\n| Pos | Instruction                           |\n+-----+---------------------------------------+\n|   0 | freturn 254 concat(\'Hello, \',s@0,\'!\') |\n+-----+---------------------------------------+\n1 row in set (0.00 sec)\n','https://dev.mysql.com/doc/refman/8.0/en/show-procedure-code.html'),(675,'SHOW PROCEDURE STATUS',3,'Syntax:\nSHOW PROCEDURE STATUS\n    [LIKE \'pattern\' | WHERE expr]\n\nThis statement is a MySQL extension. It returns characteristics of a\nstored procedure, such as the database, name, type, creator, creation\nand modification dates, and character set information. A similar\nstatement, SHOW FUNCTION STATUS, displays information about stored\nfunctions (see [HELP SHOW FUNCTION STATUS]).\n\nTo use either statement, you must be the user named as the routine\nDEFINER, have the SHOW_ROUTINE privilege, have the SELECT privilege at\nthe global level, or have the CREATE ROUTINE, ALTER ROUTINE, or EXECUTE\nprivilege granted at a scope that includes the routine.\n\nThe LIKE clause, if present, indicates which procedure or function\nnames to match. The WHERE clause can be given to select rows using more\ngeneral conditions, as discussed in\nhttps://dev.mysql.com/doc/refman/8.0/en/extended-show.html.\n\nURL: https://dev.mysql.com/doc/refman/8.0/en/show-procedure-status.html\n\n','mysql> SHOW PROCEDURE STATUS LIKE \'sp1\'\\G\n*************************** 1. row ***************************\n                  Db: test\n                Name: sp1\n                Type: PROCEDURE\n             Definer: testuser@localhost\n            Modified: 2018-08-08 13:54:11\n             Created: 2018-08-08 13:54:11\n       Security_type: DEFINER\n             Comment:\ncharacter_set_client: utf8mb4\ncollation_connection: utf8mb4_0900_ai_ci\n  Database Collation: utf8mb4_0900_ai_ci\n\nmysql> SHOW FUNCTION STATUS LIKE \'hello\'\\G\n*************************** 1. row ***************************\n                  Db: test\n                Name: hello\n                Type: FUNCTION\n             Definer: testuser@localhost\n            Modified: 2020-03-10 11:10:03\n             Created: 2020-03-10 11:10:03\n       Security_type: DEFINER\n             Comment:\ncharacter_set_client: utf8mb4\ncollation_connection: utf8mb4_0900_ai_ci\n  Database Collation: utf8mb4_0900_ai_ci\n','https://dev.mysql.com/doc/refman/8.0/en/show-procedure-status.html'),(676,'SHOW PROCESSLIST',3,'Syntax:\nSHOW [FULL] PROCESSLIST\n\n*Important*:\n\nThe INFORMATION SCHEMA implementation of SHOW PROCESSLIST is deprecated\nand subject to removal in a future MySQL release. It is recommended to\nuse the Performance Schema implementation of SHOW PROCESSLIST instead.\n\nThe MySQL process list indicates the operations currently being\nperformed by the set of threads executing within the server. The SHOW\nPROCESSLIST statement is one source of process information. For a\ncomparison of this statement with other sources, see\nhttps://dev.mysql.com/doc/refman/8.0/en/processlist-access.html#process\nlist-sources.\n\n*Note*:\n\nAs of MySQL 8.0.22, an alternative implementation for SHOW PROCESSLIST\nis available based on the Performance Schema processlist table, which,\nunlike the default SHOW PROCESSLIST implementation, does not require a\nmutex and has better performance characteristics. For details, see\nhttps://dev.mysql.com/doc/refman/8.0/en/performance-schema-processlist-\ntable.html.\n\nIf you have the PROCESS privilege, you can see all threads, even those\nbelonging to other users. Otherwise (without the PROCESS privilege),\nnonanonymous users have access to information about their own threads\nbut not threads for other users, and anonymous users have no access to\nthread information.\n\nWithout the FULL keyword, SHOW PROCESSLIST displays only the first 100\ncharacters of each statement in the Info field.\n\nURL: https://dev.mysql.com/doc/refman/8.0/en/show-processlist.html\n\n','','https://dev.mysql.com/doc/refman/8.0/en/show-processlist.html'),(677,'SHOW PROFILE',3,'Syntax:\nSHOW PROFILE [type [, type] ... ]\n    [FOR QUERY n]\n    [LIMIT row_count [OFFSET offset]]\n\ntype: {\n    ALL\n  | BLOCK IO\n  | CONTEXT SWITCHES\n  | CPU\n  | IPC\n  | MEMORY\n  | PAGE FAULTS\n  | SOURCE\n  | SWAPS\n}\n\nThe SHOW PROFILE and SHOW PROFILES statements display profiling\ninformation that indicates resource usage for statements executed\nduring the course of the current session.\n\n*Note*:\n\nThe SHOW PROFILE and SHOW PROFILES statements are deprecated; expect\nthem to be removed in a future MySQL release. Use the Performance\nSchema instead; see\nhttps://dev.mysql.com/doc/refman/8.0/en/performance-schema-query-profil\ning.html.\n\nTo control profiling, use the profiling session variable, which has a\ndefault value of 0 (OFF). Enable profiling by setting profiling to 1 or\nON:\n\nmysql> SET profiling = 1;\n\nSHOW PROFILES displays a list of the most recent statements sent to the\nserver. The size of the list is controlled by the\nprofiling_history_size session variable, which has a default value of\n15. The maximum value is 100. Setting the value to 0 has the practical\neffect of disabling profiling.\n\nAll statements are profiled except SHOW PROFILE and SHOW PROFILES, so\nneither of those statements appears in the profile list. Malformed\nstatements are profiled. For example, SHOW PROFILING is an illegal\nstatement, and a syntax error occurs if you try to execute it, but it\nshows up in the profiling list.\n\nSHOW PROFILE displays detailed information about a single statement.\nWithout the FOR QUERY n clause, the output pertains to the most\nrecently executed statement. If FOR QUERY n is included, SHOW PROFILE\ndisplays information for statement n. The values of n correspond to the\nQuery_ID values displayed by SHOW PROFILES.\n\nThe LIMIT row_count clause may be given to limit the output to\nrow_count rows. If LIMIT is given, OFFSET offset may be added to begin\nthe output offset rows into the full set of rows.\n\nBy default, SHOW PROFILE displays Status and Duration columns. The\nStatus values are like the State values displayed by SHOW PROCESSLIST,\nalthough there might be some minor differences in interpretation for\nthe two statements for some status values (see\nhttps://dev.mysql.com/doc/refman/8.0/en/thread-information.html).\n\nOptional type values may be specified to display specific additional\ntypes of information:\n\no ALL displays all information\n\no BLOCK IO displays counts for block input and output operations\n\no CONTEXT SWITCHES displays counts for voluntary and involuntary\n  context switches\n\no CPU displays user and system CPU usage times\n\no IPC displays counts for messages sent and received\n\no MEMORY is not currently implemented\n\no PAGE FAULTS displays counts for major and minor page faults\n\no SOURCE displays the names of functions from the source code, together\n  with the name and line number of the file in which the function\n  occurs\n\no SWAPS displays swap counts\n\nProfiling is enabled per session. When a session ends, its profiling\ninformation is lost.\n\nURL: https://dev.mysql.com/doc/refman/8.0/en/show-profile.html\n\n','mysql> SELECT @@profiling;\n+-------------+\n| @@profiling |\n+-------------+\n|           0 |\n+-------------+\n1 row in set (0.00 sec)\n\nmysql> SET profiling = 1;\nQuery OK, 0 rows affected (0.00 sec)\n\nmysql> DROP TABLE IF EXISTS t1;\nQuery OK, 0 rows affected, 1 warning (0.00 sec)\n\nmysql> CREATE TABLE T1 (id INT);\nQuery OK, 0 rows affected (0.01 sec)\n\nmysql> SHOW PROFILES;\n+----------+----------+--------------------------+\n| Query_ID | Duration | Query                    |\n+----------+----------+--------------------------+\n|        0 | 0.000088 | SET PROFILING = 1        |\n|        1 | 0.000136 | DROP TABLE IF EXISTS t1  |\n|        2 | 0.011947 | CREATE TABLE t1 (id INT) |\n+----------+----------+--------------------------+\n3 rows in set (0.00 sec)\n\nmysql> SHOW PROFILE;\n+----------------------+----------+\n| Status               | Duration |\n+----------------------+----------+\n| checking permissions | 0.000040 |\n| creating table       | 0.000056 |\n| After create         | 0.011363 |\n| query end            | 0.000375 |\n| freeing items        | 0.000089 |\n| logging slow query   | 0.000019 |\n| cleaning up          | 0.000005 |\n+----------------------+----------+\n7 rows in set (0.00 sec)\n\nmysql> SHOW PROFILE FOR QUERY 1;\n+--------------------+----------+\n| Status             | Duration |\n+--------------------+----------+\n| query end          | 0.000107 |\n| freeing items      | 0.000008 |\n| logging slow query | 0.000015 |\n| cleaning up        | 0.000006 |\n+--------------------+----------+\n4 rows in set (0.00 sec)\n\nmysql> SHOW PROFILE CPU FOR QUERY 2;\n+----------------------+----------+----------+------------+\n| Status               | Duration | CPU_user | CPU_system |\n+----------------------+----------+----------+------------+\n| checking permissions | 0.000040 | 0.000038 |   0.000002 |\n| creating table       | 0.000056 | 0.000028 |   0.000028 |\n| After create         | 0.011363 | 0.000217 |   0.001571 |\n| query end            | 0.000375 | 0.000013 |   0.000028 |\n| freeing items        | 0.000089 | 0.000010 |   0.000014 |\n| logging slow query   | 0.000019 | 0.000009 |   0.000010 |\n| cleaning up          | 0.000005 | 0.000003 |   0.000002 |\n+----------------------+----------+----------+------------+\n7 rows in set (0.00 sec)\n','https://dev.mysql.com/doc/refman/8.0/en/show-profile.html'),(678,'SHOW PROFILES',3,'Syntax:\nSHOW PROFILES\n\nThe SHOW PROFILES statement, together with SHOW PROFILE, displays\nprofiling information that indicates resource usage for statements\nexecuted during the course of the current session. For more\ninformation, see [HELP SHOW PROFILE].\n\n*Note*:\n\nThe SHOW PROFILE and SHOW PROFILES statements are deprecated; expect it\nto be removed in a future MySQL release. Use the Performance Schema\ninstead; see\nhttps://dev.mysql.com/doc/refman/8.0/en/performance-schema-query-profil\ning.html.\n\nURL: https://dev.mysql.com/doc/refman/8.0/en/show-profiles.html\n\n','','https://dev.mysql.com/doc/refman/8.0/en/show-profiles.html'),(679,'SHOW RELAYLOG EVENTS',3,'Syntax:\nSHOW RELAYLOG EVENTS\n    [IN \'log_name\']\n    [FROM pos]\n    [LIMIT [offset,] row_count]\n    [channel_option]\n\nchannel_option:\n    FOR CHANNEL channel\n\nShows the events in the relay log of a replica. If you do not specify\n\'log_name\', the first relay log is displayed. This statement has no\neffect on the source. SHOW RELAYLOG EVENTS requires the REPLICATION\nSLAVE privilege.\n\nURL: https://dev.mysql.com/doc/refman/8.0/en/show-relaylog-events.html\n\n','','https://dev.mysql.com/doc/refman/8.0/en/show-relaylog-events.html'),(680,'SHOW REPLICAS',3,'Syntax:\n{SHOW REPLICAS}\n\nDisplays a list of replicas currently registered with the source. From\nMySQL 8.0.22, use SHOW REPLICAS in place of SHOW SLAVE HOSTS, which is\ndeprecated from that release. In releases before MySQL 8.0.22, use SHOW\nSLAVE HOSTS. SHOW REPLICAS requires the REPLICATION SLAVE privilege.\n\nSHOW REPLICAS should be executed on a server that acts as a replication\nsource. The statement displays information about servers that are or\nhave been connected as replicas, with each row of the result\ncorresponding to one replica server, as shown here:\n\nmysql> SHOW REPLICAS;\n+------------+-----------+------+-----------+--------------------------------------+\n| Server_id  | Host      | Port | Source_id | Replica_UUID                         |\n+------------+-----------+------+-----------+--------------------------------------+\n|         10 | iconnect2 | 3306 |         3 | 14cb6624-7f93-11e0-b2c0-c80aa9429562 |\n|         21 | athena    | 3306 |         3 | 07af4990-f41f-11df-a566-7ac56fdaf645 |\n+------------+-----------+------+-----------+--------------------------------------+\n\no Server_id: The unique server ID of the replica server, as configured\n  in the replica server\'s option file, or on the command line with\n  --server-id=value.\n\no Host: The host name of the replica server, as specified on the\n  replica with the --report-host option. This can differ from the\n  machine name as configured in the operating system.\n\no User: The replica server user name, as specified on the replica with\n  the --report-user option. Statement output includes this column only\n  if the source server is started with the --show-replica-auth-info or\n  --show-slave-auth-info option.\n\no Password: The replica server password, as specified on the replica\n  with the --report-password option. Statement output includes this\n  column only if the source server is started with the\n  --show-replica-auth-info or --show-slave-auth-info option.\n\no Port: The port on the source to which the replica server is\n  listening, as specified on the replica with the --report-port option.\n\n  A zero in this column means that the replica port (--report-port) was\n  not set.\n\no Source_id: The unique server ID of the source server that the replica\n  server is replicating from. This is the server ID of the server on\n  which SHOW REPLICAS is executed, so this same value is listed for\n  each row in the result.\n\no Replica_UUID: The globally unique ID of this replica, as generated on\n  the replica and found in the replica\'s auto.cnf file.\n\nURL: https://dev.mysql.com/doc/refman/8.0/en/show-replicas.html\n\n','','https://dev.mysql.com/doc/refman/8.0/en/show-replicas.html'),(681,'SHOW SLAVE HOSTS',3,'Syntax:\n{SHOW SLAVE HOSTS | SHOW REPLICAS}\n\nDisplays a list of replicas currently registered with the source. From\nMySQL 8.0.22, SHOW SLAVE HOSTS is deprecated and the alias SHOW\nREPLICAS should be used instead. The statement works in the same way as\nbefore, only the terminology used for the statement and its output has\nchanged. Both versions of the statement update the same status\nvariables when used. Please see the documentation for SHOW REPLICAS for\na description of the statement.\n\nURL: https://dev.mysql.com/doc/refman/8.0/en/show-slave-hosts.html\n\n','','https://dev.mysql.com/doc/refman/8.0/en/show-slave-hosts.html'),(682,'SHOW REPLICA STATUS',3,'Syntax:\nSHOW {REPLICA | SLAVE} STATUS [FOR CHANNEL channel]\n\nThis statement provides status information on essential parameters of\nthe replica threads. From MySQL 8.0.22, use SHOW REPLICA STATUS in\nplace of SHOW SLAVE STATUS, which is deprecated from that release. In\nreleases before MySQL 8.0.22, use SHOW SLAVE STATUS. The statement\nrequires the REPLICATION CLIENT privilege (or the deprecated SUPER\nprivilege).\n\nSHOW REPLICA STATUS is nonblocking. When run concurrently with STOP\nREPLICA, SHOW REPLICA STATUS returns without waiting for STOP REPLICA\nto finish shutting down the replication SQL (applier) thread or\nreplication I/O (receiver) thread (or both). This permits use in\nmonitoring and other applications where getting an immediate response\nfrom SHOW REPLICA STATUS is more important than ensuring that it\nreturned the latest data. The SLAVE keyword was replaced with REPLICA\nin MySQL 8.0.22.\n\nIf you issue this statement using the mysql client, you can use a \\G\nstatement terminator rather than a semicolon to obtain a more readable\nvertical layout:\n\nmysql> SHOW REPLICA STATUS\\G\n*************************** 1. row ***************************\n             Replica_IO_State: Waiting for source to send event\n                  Source_Host: 127.0.0.1\n                  Source_User: root\n                  Source_Port: 13000\n                Connect_Retry: 1\n              Source_Log_File: master-bin.000001\n          Read_Source_Log_Pos: 927\n               Relay_Log_File: slave-relay-bin.000002\n                Relay_Log_Pos: 1145\n        Relay_Source_Log_File: master-bin.000001\n           Replica_IO_Running: Yes\n          Replica_SQL_Running: Yes\n              Replicate_Do_DB:\n          Replicate_Ignore_DB:\n           Replicate_Do_Table:\n       Replicate_Ignore_Table:\n      Replicate_Wild_Do_Table:\n  Replicate_Wild_Ignore_Table:\n                   Last_Errno: 0\n                   Last_Error:\n                 Skip_Counter: 0\n          Exec_Source_Log_Pos: 927\n              Relay_Log_Space: 1355\n              Until_Condition: None\n               Until_Log_File:\n                Until_Log_Pos: 0\n           Source_SSL_Allowed: No\n           Source_SSL_CA_File:\n           Source_SSL_CA_Path:\n              Source_SSL_Cert:\n            Source_SSL_Cipher:\n               Source_SSL_Key:\n        Seconds_Behind_Source: 0\nSource_SSL_Verify_Server_Cert: No\n                Last_IO_Errno: 0\n                Last_IO_Error:\n               Last_SQL_Errno: 0\n               Last_SQL_Error:\n  Replicate_Ignore_Server_Ids:\n             Source_Server_Id: 1\n                  Source_UUID: 73f86016-978b-11ee-ade5-8d2a2a562feb\n             Source_Info_File: mysql.slave_master_info\n                    SQL_Delay: 0\n          SQL_Remaining_Delay: NULL\n    Replica_SQL_Running_State: Replica has read all relay log; waiting for more updates\n           Source_Retry_Count: 10\n                  Source_Bind:\n      Last_IO_Error_Timestamp:\n     Last_SQL_Error_Timestamp:\n               Source_SSL_Crl:\n           Source_SSL_Crlpath:\n           Retrieved_Gtid_Set: 73f86016-978b-11ee-ade5-8d2a2a562feb:1-3\n            Executed_Gtid_Set: 73f86016-978b-11ee-ade5-8d2a2a562feb:1-3\n                Auto_Position: 1\n         Replicate_Rewrite_DB:\n                 Channel_Name:\n           Source_TLS_Version:\n       Source_public_key_path:\n        Get_Source_public_key: 0\n            Network_Namespace:\n\nThe Performance Schema provides tables that expose replication\ninformation. This is similar to the information available from the SHOW\nREPLICA STATUS statement, but represented in table form. For details,\nsee\nhttps://dev.mysql.com/doc/refman/8.0/en/performance-schema-replication-\ntables.html.\n\nFrom MySQL 8.0.27, you can set the GTID_ONLY option on the CHANGE\nREPLICATION SOURCE TO statement to stop a replication channel from\npersisting file names and file positions in the replication metadata\nrepositories. With this setting, file positions for the source binary\nlog file and the relay log file are tracked in memory. The SHOW REPLICA\nSTATUS statement still displays file positions in normal use. However,\nbecause the file positions are not being regularly updated in the\nconnection metadata repository and the applier metadata repository\nexcept in a few situations, they are likely to be out of date if the\nserver is restarted.\n\nFor a replication channel with the GTID_ONLY setting after a server\nstart, the read and applied file positions for the source binary log\nfile (Read_Source_Log_Pos and Exec_Source_Log_Pos) are set to zero, and\nthe file names (Source_Log_File and Relay_Source_Log_File) are set to\nINVALID. The relay log file name (Relay_Log_File) is set according to\nthe relay_log_recovery setting, either a new file that was created at\nserver start or the first relay log file present. The file position\n(Relay_Log_Pos) is set to position 4, and GTID auto-skip is used to\nskip any transactions in the file that were already applied.\n\nWhen the receiver thread contacts the source and gets valid position\ninformation, the read position (Read_Source_Log_Pos) and file name\n(Source_Log_File) are updated with the correct data and become valid.\nWhen the applier thread applies a transaction from the source, or skips\nan already executed transaction, the executed position\n(Exec_Source_Log_Pos) and file name (Relay_Source_Log_File) are updated\nwith the correct data and become valid. The relay log file position\n(Relay_Log_Pos) is also updated at that time.\n\nURL: https://dev.mysql.com/doc/refman/8.0/en/show-replica-status.html\n\n','','https://dev.mysql.com/doc/refman/8.0/en/show-replica-status.html'),(683,'SHOW SLAVE STATUS',3,'Syntax:\nSHOW {SLAVE | REPLICA} STATUS [FOR CHANNEL channel]\n\nThis statement provides status information on essential parameters of\nthe replica threads. From MySQL 8.0.22, SHOW SLAVE STATUS is deprecated\nand the alias SHOW REPLICA STATUS should be used instead. The statement\nworks in the same way as before, only the terminology used for the\nstatement and its output has changed. Both versions of the statement\nupdate the same status variables when used. Please see the\ndocumentation for SHOW REPLICA STATUS for a description of the\nstatement.\n\nURL: https://dev.mysql.com/doc/refman/8.0/en/show-slave-status.html\n\n','','https://dev.mysql.com/doc/refman/8.0/en/show-slave-status.html'),(684,'SHOW STATUS',3,'Syntax:\nSHOW [GLOBAL | SESSION] STATUS\n    [LIKE \'pattern\' | WHERE expr]\n\nSHOW STATUS provides server status information (see\nhttps://dev.mysql.com/doc/refman/8.0/en/server-status-variables.html).\nThis statement does not require any privilege. It requires only the\nability to connect to the server.\n\nStatus variable information is also available from these sources:\n\no Performance Schema tables. See\n  https://dev.mysql.com/doc/refman/8.0/en/performance-schema-status-var\n  iable-tables.html.\n\no The mysqladmin extended-status command. See\n  https://dev.mysql.com/doc/refman/8.0/en/mysqladmin.html.\n\nFor SHOW STATUS, a LIKE clause, if present, indicates which variable\nnames to match. A WHERE clause can be given to select rows using more\ngeneral conditions, as discussed in\nhttps://dev.mysql.com/doc/refman/8.0/en/extended-show.html.\n\nSHOW STATUS accepts an optional GLOBAL or SESSION variable scope\nmodifier:\n\no With a GLOBAL modifier, the statement displays the global status\n  values. A global status variable may represent status for some aspect\n  of the server itself (for example, Aborted_connects), or the\n  aggregated status over all connections to MySQL (for example,\n  Bytes_received and Bytes_sent). If a variable has no global value,\n  the session value is displayed.\n\no With a SESSION modifier, the statement displays the status variable\n  values for the current connection. If a variable has no session\n  value, the global value is displayed. LOCAL is a synonym for SESSION.\n\no If no modifier is present, the default is SESSION.\n\nThe scope for each status variable is listed at\nhttps://dev.mysql.com/doc/refman/8.0/en/server-status-variables.html.\n\nEach invocation of the SHOW STATUS statement uses an internal temporary\ntable and increments the global Created_tmp_tables value.\n\nWith a LIKE clause, the statement displays only rows for those\nvariables with names that match the pattern:\n\nmysql> SHOW STATUS LIKE \'Key%\';\n+--------------------+----------+\n| Variable_name      | Value    |\n+--------------------+----------+\n| Key_blocks_used    | 14955    |\n| Key_read_requests  | 96854827 |\n| Key_reads          | 162040   |\n| Key_write_requests | 7589728  |\n| Key_writes         | 3813196  |\n+--------------------+----------+\n\nURL: https://dev.mysql.com/doc/refman/8.0/en/show-status.html\n\n','','https://dev.mysql.com/doc/refman/8.0/en/show-status.html'),(685,'SHOW TABLE STATUS',3,'Syntax:\nSHOW TABLE STATUS\n    [{FROM | IN} db_name]\n    [LIKE \'pattern\' | WHERE expr]\n\nSHOW TABLE STATUS works likes SHOW TABLES, but provides a lot of\ninformation about each non-TEMPORARY table. You can also get this list\nusing the mysqlshow --status db_name command. The LIKE clause, if\npresent, indicates which table names to match. The WHERE clause can be\ngiven to select rows using more general conditions, as discussed in\nhttps://dev.mysql.com/doc/refman/8.0/en/extended-show.html.\n\nURL: https://dev.mysql.com/doc/refman/8.0/en/show-table-status.html\n\n','','https://dev.mysql.com/doc/refman/8.0/en/show-table-status.html'),(686,'SHOW TABLES',3,'Syntax:\nSHOW [EXTENDED] [FULL] TABLES\n    [{FROM | IN} db_name]\n    [LIKE \'pattern\' | WHERE expr]\n\nSHOW TABLES lists the non-TEMPORARY tables in a given database. You can\nalso get this list using the mysqlshow db_name command. The LIKE\nclause, if present, indicates which table names to match. The WHERE\nclause can be given to select rows using more general conditions, as\ndiscussed in\nhttps://dev.mysql.com/doc/refman/8.0/en/extended-show.html.\n\nMatching performed by the LIKE clause is dependent on the setting of\nthe lower_case_table_names system variable.\n\nThe optional EXTENDED modifier causes SHOW TABLES to list hidden tables\ncreated by failed ALTER TABLE statements. These temporary tables have\nnames beginning with #sql and can be dropped using DROP TABLE.\n\nThis statement also lists any views in the database. The optional FULL\nmodifier causes SHOW TABLES to display a second output column with\nvalues of BASE TABLE for a table, VIEW for a view, or SYSTEM VIEW for\nan INFORMATION_SCHEMA table.\n\nIf you have no privileges for a base table or view, it does not show up\nin the output from SHOW TABLES or mysqlshow db_name.\n\nURL: https://dev.mysql.com/doc/refman/8.0/en/show-tables.html\n\n','','https://dev.mysql.com/doc/refman/8.0/en/show-tables.html'),(687,'SHOW TRIGGERS',3,'Syntax:\nSHOW TRIGGERS\n    [{FROM | IN} db_name]\n    [LIKE \'pattern\' | WHERE expr]\n\nSHOW TRIGGERS lists the triggers currently defined for tables in a\ndatabase (the default database unless a FROM clause is given). This\nstatement returns results only for databases and tables for which you\nhave the TRIGGER privilege. The LIKE clause, if present, indicates\nwhich table names (not trigger names) to match and causes the statement\nto display triggers for those tables. The WHERE clause can be given to\nselect rows using more general conditions, as discussed in\nhttps://dev.mysql.com/doc/refman/8.0/en/extended-show.html.\n\nFor the ins_sum trigger defined in\nhttps://dev.mysql.com/doc/refman/8.0/en/triggers.html, the output of\nSHOW TRIGGERS is as shown here:\n\nmysql> SHOW TRIGGERS LIKE \'acc%\'\\G\n*************************** 1. row ***************************\n             Trigger: ins_sum\n               Event: INSERT\n               Table: account\n           Statement: SET @sum = @sum + NEW.amount\n              Timing: BEFORE\n             Created: 2018-08-08 10:10:12.61\n            sql_mode: ONLY_FULL_GROUP_BY,STRICT_TRANS_TABLES,\n                      NO_ZERO_IN_DATE,NO_ZERO_DATE,\n                      ERROR_FOR_DIVISION_BY_ZERO,\n                      NO_ENGINE_SUBSTITUTION\n             Definer: me@localhost\ncharacter_set_client: utf8mb4\ncollation_connection: utf8mb4_0900_ai_ci\n  Database Collation: utf8mb4_0900_ai_ci\n\nURL: https://dev.mysql.com/doc/refman/8.0/en/show-triggers.html\n\n','','https://dev.mysql.com/doc/refman/8.0/en/show-triggers.html'),(688,'SHOW VARIABLES',3,'Syntax:\nSHOW [GLOBAL | SESSION] VARIABLES\n    [LIKE \'pattern\' | WHERE expr]\n\nSHOW VARIABLES shows the values of MySQL system variables (see\nhttps://dev.mysql.com/doc/refman/8.0/en/server-system-variables.html).\nThis statement does not require any privilege. It requires only the\nability to connect to the server.\n\nSystem variable information is also available from these sources:\n\no Performance Schema tables. See\n  https://dev.mysql.com/doc/refman/8.0/en/performance-schema-system-var\n  iable-tables.html.\n\no The mysqladmin variables command. See\n  https://dev.mysql.com/doc/refman/8.0/en/mysqladmin.html.\n\nFor SHOW VARIABLES, a LIKE clause, if present, indicates which variable\nnames to match. A WHERE clause can be given to select rows using more\ngeneral conditions, as discussed in\nhttps://dev.mysql.com/doc/refman/8.0/en/extended-show.html.\n\nSHOW VARIABLES accepts an optional GLOBAL or SESSION variable scope\nmodifier:\n\no With a GLOBAL modifier, the statement displays global system variable\n  values. These are the values used to initialize the corresponding\n  session variables for new connections to MySQL. If a variable has no\n  global value, no value is displayed.\n\no With a SESSION modifier, the statement displays the system variable\n  values that are in effect for the current connection. If a variable\n  has no session value, the global value is displayed. LOCAL is a\n  synonym for SESSION.\n\no If no modifier is present, the default is SESSION.\n\nThe scope for each system variable is listed at\nhttps://dev.mysql.com/doc/refman/8.0/en/server-system-variables.html.\n\nSHOW VARIABLES is subject to a version-dependent display-width limit.\nFor variables with very long values that are not completely displayed,\nuse SELECT as a workaround. For example:\n\nSELECT @@GLOBAL.innodb_data_file_path;\n\nMost system variables can be set at server startup (read-only variables\nsuch as version_comment are exceptions). Many can be changed at runtime\nwith the SET statement. See\nhttps://dev.mysql.com/doc/refman/8.0/en/using-system-variables.html,\nand [HELP SET].\n\nWith a LIKE clause, the statement displays only rows for those\nvariables with names that match the pattern. To obtain the row for a\nspecific variable, use a LIKE clause as shown:\n\nSHOW VARIABLES LIKE \'max_join_size\';\nSHOW SESSION VARIABLES LIKE \'max_join_size\';\n\nTo get a list of variables whose name match a pattern, use the %\nwildcard character in a LIKE clause:\n\nSHOW VARIABLES LIKE \'%size%\';\nSHOW GLOBAL VARIABLES LIKE \'%size%\';\n\nWildcard characters can be used in any position within the pattern to\nbe matched. Strictly speaking, because _ is a wildcard that matches any\nsingle character, you should escape it as \\_ to match it literally. In\npractice, this is rarely necessary.\n\nURL: https://dev.mysql.com/doc/refman/8.0/en/show-variables.html\n\n','','https://dev.mysql.com/doc/refman/8.0/en/show-variables.html'),(689,'SHOW WARNINGS',3,'Syntax:\nSHOW WARNINGS [LIMIT [offset,] row_count]\nSHOW COUNT(*) WARNINGS\n\nSHOW WARNINGS is a diagnostic statement that displays information about\nthe conditions (errors, warnings, and notes) resulting from executing a\nstatement in the current session. Warnings are generated for DML\nstatements such as INSERT, UPDATE, and LOAD DATA as well as DDL\nstatements such as CREATE TABLE and ALTER TABLE.\n\nThe LIMIT clause has the same syntax as for the SELECT statement. See\nhttps://dev.mysql.com/doc/refman/8.0/en/select.html.\n\nSHOW WARNINGS is also used following EXPLAIN, to display the extended\ninformation generated by EXPLAIN. See\nhttps://dev.mysql.com/doc/refman/8.0/en/explain-extended.html.\n\nSHOW WARNINGS displays information about the conditions resulting from\nexecution of the most recent nondiagnostic statement in the current\nsession. If the most recent statement resulted in an error during\nparsing, SHOW WARNINGS shows the resulting conditions, regardless of\nstatement type (diagnostic or nondiagnostic).\n\nThe SHOW COUNT(*) WARNINGS diagnostic statement displays the total\nnumber of errors, warnings, and notes. You can also retrieve this\nnumber from the warning_count system variable:\n\nSHOW COUNT(*) WARNINGS;\nSELECT @@warning_count;\n\nA difference in these statements is that the first is a diagnostic\nstatement that does not clear the message list. The second, because it\nis a SELECT statement is considered nondiagnostic and does clear the\nmessage list.\n\nA related diagnostic statement, SHOW ERRORS, shows only error\nconditions (it excludes warnings and notes), and SHOW COUNT(*) ERRORS\nstatement displays the total number of errors. See [HELP SHOW ERRORS].\nGET DIAGNOSTICS can be used to examine information for individual\nconditions. See [HELP GET DIAGNOSTICS].\n\nURL: https://dev.mysql.com/doc/refman/8.0/en/show-warnings.html\n\n','','https://dev.mysql.com/doc/refman/8.0/en/show-warnings.html'),(690,'BINLOG',3,'Syntax:\nBINLOG \'str\'\n\nBINLOG is an internal-use statement. It is generated by the mysqlbinlog\nprogram as the printable representation of certain events in binary log\nfiles. (See https://dev.mysql.com/doc/refman/8.0/en/mysqlbinlog.html.)\nThe \'str\' value is a base 64-encoded string the that server decodes to\ndetermine the data change indicated by the corresponding event.\n\nTo execute BINLOG statements when applying mysqlbinlog output, a user\naccount requires the BINLOG_ADMIN privilege (or the deprecated SUPER\nprivilege), or the REPLICATION_APPLIER privilege plus the appropriate\nprivileges to execute each log event.\n\nURL: https://dev.mysql.com/doc/refman/8.0/en/binlog.html\n\n','','https://dev.mysql.com/doc/refman/8.0/en/binlog.html'),(691,'CACHE INDEX',3,'Syntax:\nCACHE INDEX {\n      tbl_index_list [, tbl_index_list] ...\n    | tbl_name PARTITION (partition_list)\n  }\n  IN key_cache_name\n\ntbl_index_list:\n  tbl_name [{INDEX|KEY} (index_name[, index_name] ...)]\n\npartition_list: {\n    partition_name[, partition_name] ...\n  | ALL\n}\n\nThe CACHE INDEX statement assigns table indexes to a specific key\ncache. It applies only to MyISAM tables, including partitioned MyISAM\ntables. After the indexes have been assigned, they can be preloaded\ninto the cache if desired with LOAD INDEX INTO CACHE.\n\nThe following statement assigns indexes from the tables t1, t2, and t3\nto the key cache named hot_cache:\n\nmysql> CACHE INDEX t1, t2, t3 IN hot_cache;\n+---------+--------------------+----------+----------+\n| Table   | Op                 | Msg_type | Msg_text |\n+---------+--------------------+----------+----------+\n| test.t1 | assign_to_keycache | status   | OK       |\n| test.t2 | assign_to_keycache | status   | OK       |\n| test.t3 | assign_to_keycache | status   | OK       |\n+---------+--------------------+----------+----------+\n\nURL: https://dev.mysql.com/doc/refman/8.0/en/cache-index.html\n\n','','https://dev.mysql.com/doc/refman/8.0/en/cache-index.html'),(692,'FLUSH',3,'Syntax:\nFLUSH [NO_WRITE_TO_BINLOG | LOCAL] {\n    flush_option [, flush_option] ...\n  | tables_option\n}\n\nflush_option: {\n    BINARY LOGS\n  | ENGINE LOGS\n  | ERROR LOGS\n  | GENERAL LOGS\n  | HOSTS\n  | LOGS\n  | PRIVILEGES\n  | OPTIMIZER_COSTS\n  | RELAY LOGS [FOR CHANNEL channel]\n  | SLOW LOGS\n  | STATUS\n  | USER_RESOURCES\n}\n\ntables_option: {\n    table_synonym\n  | table_synonym tbl_name [, tbl_name] ...\n  | table_synonym WITH READ LOCK\n  | table_synonym tbl_name [, tbl_name] ... WITH READ LOCK\n  | table_synonym tbl_name [, tbl_name] ... FOR EXPORT\n}\n\ntable_synonym: {\n    TABLE\n  | TABLES\n}\n\nThe FLUSH statement has several variant forms that clear or reload\nvarious internal caches, flush tables, or acquire locks. Each FLUSH\noperation requires the privileges indicated in its description.\n\n*Note*:\n\nIt is not possible to issue FLUSH statements within stored functions or\ntriggers. However, you may use FLUSH in stored procedures, so long as\nthese are not called from stored functions or triggers. See\nhttps://dev.mysql.com/doc/refman/8.0/en/stored-program-restrictions.html\n.\n\nBy default, the server writes FLUSH statements to the binary log so\nthat they replicate to replicas. To suppress logging, specify the\noptional NO_WRITE_TO_BINLOG keyword or its alias LOCAL.\n\n*Note*:\n\nFLUSH LOGS, FLUSH BINARY LOGS, FLUSH TABLES WITH READ LOCK (with or\nwithout a table list), and FLUSH TABLES tbl_name ... FOR EXPORT are not\nwritten to the binary log in any case because they would cause problems\nif replicated to a replica.\n\nThe FLUSH statement causes an implicit commit. See\nhttps://dev.mysql.com/doc/refman/8.0/en/implicit-commit.html.\n\nThe mysqladmin utility provides a command-line interface to some flush\noperations, using commands such as flush-hosts, flush-logs,\nflush-privileges, flush-status, and flush-tables. See\nhttps://dev.mysql.com/doc/refman/8.0/en/mysqladmin.html.\n\nSending a SIGHUP or SIGUSR1 signal to the server causes several flush\noperations to occur that are similar to various forms of the FLUSH\nstatement. Signals can be sent by the root system account or the system\naccount that owns the server process. This enables the flush operations\nto be performed without having to connect to the server, which requires\na MySQL account that has privileges sufficient for those operations.\nSee https://dev.mysql.com/doc/refman/8.0/en/unix-signal-response.html.\n\nThe RESET statement is similar to FLUSH. See [HELP RESET], for\ninformation about using RESET with replication.\n\nURL: https://dev.mysql.com/doc/refman/8.0/en/flush.html\n\n','','https://dev.mysql.com/doc/refman/8.0/en/flush.html'),(693,'KILL',3,'Syntax:\nKILL [CONNECTION | QUERY] processlist_id\n\nEach connection to mysqld runs in a separate thread. You can kill a\nthread with the KILL processlist_id statement.\n\nThread processlist identifiers can be determined from the ID column of\nthe INFORMATION_SCHEMA PROCESSLIST table, the Id column of SHOW\nPROCESSLIST output, and the PROCESSLIST_ID column of the Performance\nSchema threads table. The value for the current thread is returned by\nthe CONNECTION_ID() function.\n\nKILL permits an optional CONNECTION or QUERY modifier:\n\no KILL CONNECTION is the same as KILL with no modifier: It terminates\n  the connection associated with the given processlist_id, after\n  terminating any statement the connection is executing.\n\no KILL QUERY terminates the statement the connection is currently\n  executing, but leaves the connection itself intact.\n\nThe ability to see which threads are available to be killed depends on\nthe PROCESS privilege:\n\no Without PROCESS, you can see only your own threads.\n\no With PROCESS, you can see all threads.\n\nThe ability to kill threads and statements depends on the\nCONNECTION_ADMIN privilege and the deprecated SUPER privilege:\n\no Without CONNECTION_ADMIN or SUPER, you can kill only your own threads\n  and statements.\n\no With CONNECTION_ADMIN or SUPER, you can kill all threads and\n  statements, except that to affect a thread or statement that is\n  executing with the SYSTEM_USER privilege, your own session must\n  additionally have the SYSTEM_USER privilege.\n\nYou can also use the mysqladmin processlist and mysqladmin kill\ncommands to examine and kill threads.\n\nURL: https://dev.mysql.com/doc/refman/8.0/en/kill.html\n\n','','https://dev.mysql.com/doc/refman/8.0/en/kill.html'),(694,'LOAD INDEX',3,'Syntax:\nLOAD INDEX INTO CACHE\n  tbl_index_list [, tbl_index_list] ...\n\ntbl_index_list:\n  tbl_name\n    [PARTITION (partition_list)]\n    [{INDEX|KEY} (index_name[, index_name] ...)]\n    [IGNORE LEAVES]\n\npartition_list: {\n    partition_name[, partition_name] ...\n  | ALL\n}\n\nThe LOAD INDEX INTO CACHE statement preloads a table index into the key\ncache to which it has been assigned by an explicit CACHE INDEX\nstatement, or into the default key cache otherwise.\n\nLOAD INDEX INTO CACHE applies only to MyISAM tables, including\npartitioned MyISAM tables. In addition, indexes on partitioned tables\ncan be preloaded for one, several, or all partitions.\n\nThe IGNORE LEAVES modifier causes only blocks for the nonleaf nodes of\nthe index to be preloaded.\n\nIGNORE LEAVES is also supported for partitioned MyISAM tables.\n\nURL: https://dev.mysql.com/doc/refman/8.0/en/load-index.html\n\n','','https://dev.mysql.com/doc/refman/8.0/en/load-index.html'),(695,'RESET',3,'Syntax:\nRESET reset_option [, reset_option] ...\n\nreset_option: {\n    MASTER\n  | REPLICA\n  | SLAVE\n}\n\nThe RESET statement is used to clear the state of various server\noperations. You must have the RELOAD privilege to execute RESET.\n\nFor information about the RESET PERSIST statement that removes\npersisted global system variables, see [HELP RESET PERSIST].\n\nRESET acts as a stronger version of the FLUSH statement. See [HELP\nFLUSH].\n\nThe RESET statement causes an implicit commit. See\nhttps://dev.mysql.com/doc/refman/8.0/en/implicit-commit.html.\n\nThe following list describes the permitted RESET statement reset_option\nvalues:\n\no RESET MASTER\n\n  Deletes all binary logs listed in the index file, resets the binary\n  log index file to be empty, and creates a new binary log file.\n\no RESET REPLICA\n\n  Makes the replica forget its replication position in the source\n  binary logs. Also resets the relay log by deleting any existing relay\n  log files and beginning a new one. Use RESET REPLICA in place of\n  RESET SLAVE from MySQL 8.0.22.\n\nURL: https://dev.mysql.com/doc/refman/8.0/en/reset.html\n\n','','https://dev.mysql.com/doc/refman/8.0/en/reset.html'),(696,'RESET PERSIST',3,'Syntax:\nRESET PERSIST [[IF EXISTS] system_var_name]\n\nRESET PERSIST removes persisted global system variable settings from\nthe mysqld-auto.cnf option file in the data directory. Removing a\npersisted system variable causes the variable no longer to be\ninitialized from mysqld-auto.cnf at server startup. For more\ninformation about persisting system variables and the mysqld-auto.cnf\nfile, see\nhttps://dev.mysql.com/doc/refman/8.0/en/persisted-system-variables.html\n.\n\nPrior to MySQL 8.0.32, this statement did not work with variables whose\nname contained a dot character (.), such as MyISAM multiple key cache\nvariables and variables registered by components. (Bug #33417357)\n\nThe privileges required for RESET PERSIST depend on the type of system\nvariable to be removed:\n\no For dynamic system variables, this statement requires the\n  SYSTEM_VARIABLES_ADMIN privilege (or the deprecated SUPER privilege).\n\no For read-only system variables, this statement requires the\n  SYSTEM_VARIABLES_ADMIN and PERSIST_RO_VARIABLES_ADMIN privileges.\n\nSee\nhttps://dev.mysql.com/doc/refman/8.0/en/system-variable-privileges.html\n.\n\nDepending on whether the variable name and IF EXISTS clauses are\npresent, the RESET PERSIST statement has these forms:\n\no To remove all persisted variables from mysqld-auto.cnf, use RESET\n  PERSIST without naming any system variable:\n\nRESET PERSIST;\n\n  You must have privileges for removing both dynamic and read-only\n  system variables if mysqld-auto.cnf contains both kinds of variables.\n\no To remove a specific persisted variable from mysqld-auto.cnf, name it\n  in the statement:\n\nRESET PERSIST system_var_name;\n\n  This includes plugin system variables, even if the plugin is not\n  currently installed. If the variable is not present in the file, an\n  error occurs.\n\no To remove a specific persisted variable from mysqld-auto.cnf, but\n  produce a warning rather than an error if the variable is not present\n  in the file, add an IF EXISTS clause to the previous syntax:\n\nRESET PERSIST IF EXISTS system_var_name;\n\nURL: https://dev.mysql.com/doc/refman/8.0/en/reset-persist.html\n\n','','https://dev.mysql.com/doc/refman/8.0/en/reset-persist.html'),(697,'RESTART',3,'Syntax:\nRESTART\n\nThis statement stops and restarts the MySQL server. It requires the\nSHUTDOWN privilege.\n\nOne use for RESTART is when it is not possible or convenient to gain\ncommand-line access to the MySQL server on the server host to restart\nit. For example, SET PERSIST_ONLY can be used at runtime to make\nconfiguration changes to system variables that can be set only at\nserver startup, but the server must still be restarted for those\nchanges to take effect. The RESTART statement provides a way to do so\nfrom within client sessions, without requiring command-line access on\nthe server host.\n\n*Note*:\n\nAfter executing a RESTART statement, the client can expect the current\nconnection to be lost. If auto-reconnect is enabled, the connection is\nreestablished after the server restarts. Otherwise, the connection must\nbe reestablished manually.\n\nA successful RESTART operation requires mysqld to be running in an\nenvironment that has a monitoring process available to detect a server\nshutdown performed for restart purposes:\n\no In the presence of a monitoring process, RESTART causes mysqld to\n  terminate such that the monitoring process can determine that it\n  should start a new mysqld instance.\n\no If no monitoring process is present, RESTART fails with an error.\n\nThese platforms provide the necessary monitoring support for the\nRESTART statement:\n\no Windows, when mysqld is started as a Windows service or standalone.\n  (mysqld forks, and one process acts as a monitor to the other, which\n  acts as the server.)\n\no Unix and Unix-like systems that use systemd or mysqld_safe to manage\n  mysqld.\n\nTo configure a monitoring environment such that mysqld enables the\nRESTART statement:\n\n1. Set the MYSQLD_PARENT_PID environment variable to the value of the\n   process ID of the process that starts mysqld, before starting\n   mysqld.\n\n2. When mysqld performs a shutdown due to use of the RESTART statement,\n   it returns exit code 16.\n\n3. When the monitoring process detects an exit code of 16, it starts\n   mysqld again. Otherwise, it exits.\n\nHere is a minimal example as implemented in the bash shell:\n\n#!/bin/bash\n\nexport MYSQLD_PARENT_PID=$$\n\nexport MYSQLD_RESTART_EXIT=16\n\nwhile true ; do\n  bin/mysqld mysqld options here\n  if [ $? -ne $MYSQLD_RESTART_EXIT ]; then\n    break\n  fi\ndone\n\nOn Windows, the forking used to implement RESTART makes determining the\nserver process to attach to for debugging more difficult. To alleviate\nthis, starting the server with --gdb suppresses forking, in addition to\nits other actions done to set up a debugging environment. In non-debug\nsettings, --no-monitor may be used for the sole purpose of suppressing\nforking the monitor process. For a server started with either --gdb or\n--no-monitor, executing RESTART causes the server to simply exit\nwithout restarting.\n\nURL: https://dev.mysql.com/doc/refman/8.0/en/restart.html\n\n','','https://dev.mysql.com/doc/refman/8.0/en/restart.html'),(698,'SHUTDOWN',3,'Syntax:\nSHUTDOWN\n\nThis statement stops the MySQL server. It requires the SHUTDOWN\nprivilege.\n\nSHUTDOWN provides an SQL-level interface to the same functionality\navailable using the mysqladmin shutdown command or the mysql_shutdown()\n(https://dev.mysql.com/doc/c-api/8.0/en/mysql-shutdown.html) C API\nfunction. A successful SHUTDOWN sequence consists of checking the\nprivileges, validating the arguments, and sending an OK packet to the\nclient. Then the server is shut down.\n\nURL: https://dev.mysql.com/doc/refman/8.0/en/shutdown.html\n\n','','https://dev.mysql.com/doc/refman/8.0/en/shutdown.html'),(699,'EXPLAIN',51,'Syntax:\n{EXPLAIN | DESCRIBE | DESC}\n    tbl_name [col_name | wild]\n\n{EXPLAIN | DESCRIBE | DESC}\n    [explain_type]\n    {explainable_stmt | FOR CONNECTION connection_id}\n\n{EXPLAIN | DESCRIBE | DESC} ANALYZE [FORMAT = TREE] select_statement\n\nexplain_type: {\n    FORMAT = format_name\n}\n\nformat_name: {\n    TRADITIONAL\n  | JSON\n  | TREE\n}\n\nexplainable_stmt: {\n    SELECT statement\n  | TABLE statement\n  | DELETE statement\n  | INSERT statement\n  | REPLACE statement\n  | UPDATE statement\n}\n\nThe DESCRIBE and EXPLAIN statements are synonyms. In practice, the\nDESCRIBE keyword is more often used to obtain information about table\nstructure, whereas EXPLAIN is used to obtain a query execution plan\n(that is, an explanation of how MySQL would execute a query).\n\nURL: https://dev.mysql.com/doc/refman/8.0/en/explain.html\n\n','','https://dev.mysql.com/doc/refman/8.0/en/explain.html'),(700,'DESCRIBE',51,'Syntax:\n{EXPLAIN | DESCRIBE | DESC}\n    tbl_name [col_name | wild]\n\n{EXPLAIN | DESCRIBE | DESC}\n    [explain_type]\n    {explainable_stmt | FOR CONNECTION connection_id}\n\n{EXPLAIN | DESCRIBE | DESC} ANALYZE [FORMAT = TREE] select_statement\n\nexplain_type: {\n    FORMAT = format_name\n}\n\nformat_name: {\n    TRADITIONAL\n  | JSON\n  | TREE\n}\n\nexplainable_stmt: {\n    SELECT statement\n  | TABLE statement\n  | DELETE statement\n  | INSERT statement\n  | REPLACE statement\n  | UPDATE statement\n}\n\nThe DESCRIBE and EXPLAIN statements are synonyms. In practice, the\nDESCRIBE keyword is more often used to obtain information about table\nstructure, whereas EXPLAIN is used to obtain a query execution plan\n(that is, an explanation of how MySQL would execute a query).\n\nURL: https://dev.mysql.com/doc/refman/8.0/en/explain.html\n\n','','https://dev.mysql.com/doc/refman/8.0/en/explain.html'),(701,'DESC',51,'Syntax:\n{EXPLAIN | DESCRIBE | DESC}\n    tbl_name [col_name | wild]\n\n{EXPLAIN | DESCRIBE | DESC}\n    [explain_type]\n    {explainable_stmt | FOR CONNECTION connection_id}\n\n{EXPLAIN | DESCRIBE | DESC} ANALYZE [FORMAT = TREE] select_statement\n\nexplain_type: {\n    FORMAT = format_name\n}\n\nformat_name: {\n    TRADITIONAL\n  | JSON\n  | TREE\n}\n\nexplainable_stmt: {\n    SELECT statement\n  | TABLE statement\n  | DELETE statement\n  | INSERT statement\n  | REPLACE statement\n  | UPDATE statement\n}\n\nThe DESCRIBE and EXPLAIN statements are synonyms. In practice, the\nDESCRIBE keyword is more often used to obtain information about table\nstructure, whereas EXPLAIN is used to obtain a query execution plan\n(that is, an explanation of how MySQL would execute a query).\n\nURL: https://dev.mysql.com/doc/refman/8.0/en/explain.html\n\n','','https://dev.mysql.com/doc/refman/8.0/en/explain.html'),(702,'HELP STATEMENT',51,'Syntax:\nHELP \'search_string\'\n\nThe HELP statement returns online information from the MySQL Reference\nManual. Its proper operation requires that the help tables in the mysql\ndatabase be initialized with help topic information (see\nhttps://dev.mysql.com/doc/refman/8.0/en/server-side-help-support.html).\n\nThe HELP statement searches the help tables for the given search string\nand displays the result of the search. The search string is not\ncase-sensitive.\n\nThe search string can contain the wildcard characters % and _. These\nhave the same meaning as for pattern-matching operations performed with\nthe LIKE operator. For example, HELP \'rep%\' returns a list of topics\nthat begin with rep.\n\nThe HELP statement does not require a terminator such as ; or \\G.\n\nURL: https://dev.mysql.com/doc/refman/8.0/en/help.html\n\n','','https://dev.mysql.com/doc/refman/8.0/en/help.html'),(703,'USE',51,'Syntax:\nUSE db_name\n\nThe USE statement tells MySQL to use the named database as the default\n(current) database for subsequent statements. This statement requires\nsome privilege for the database or some object within it.\n\nThe named database remains the default until the end of the session or\nanother USE statement is issued:\n\nUSE db1;\nSELECT COUNT(*) FROM mytable;   # selects from db1.mytable\nUSE db2;\nSELECT COUNT(*) FROM mytable;   # selects from db2.mytable\n\nThe database name must be specified on a single line. Newlines in\ndatabase names are not supported.\n\nURL: https://dev.mysql.com/doc/refman/8.0/en/use.html\n\n','','https://dev.mysql.com/doc/refman/8.0/en/use.html'),(704,'MERGE',52,'The MERGE storage engine, also known as the MRG_MyISAM engine, is a\ncollection of identical MyISAM tables that can be used as one.\n\"Identical\" means that all tables have identical column data types and\nindex information. You cannot merge MyISAM tables in which the columns\nare listed in a different order, do not have exactly the same data\ntypes in corresponding columns, or have the indexes in different order.\nHowever, any or all of the MyISAM tables can be compressed with\nmyisampack. See\nhttps://dev.mysql.com/doc/refman/8.0/en/myisampack.html. Differences\nbetween tables such as these do not matter:\n\no Names of corresponding columns and indexes can differ.\n\no Comments for tables, columns, and indexes can differ.\n\no Table options such as AVG_ROW_LENGTH, MAX_ROWS, or PACK_KEYS can\n  differ.\n\nURL: https://dev.mysql.com/doc/refman/8.0/en/merge-storage-engine.html\n\n','mysql> CREATE TABLE t1 (\n    ->    a INT NOT NULL AUTO_INCREMENT PRIMARY KEY,\n    ->    message CHAR(20)) ENGINE=MyISAM;\nmysql> CREATE TABLE t2 (\n    ->    a INT NOT NULL AUTO_INCREMENT PRIMARY KEY,\n    ->    message CHAR(20)) ENGINE=MyISAM;\nmysql> INSERT INTO t1 (message) VALUES (\'Testing\'),(\'table\'),(\'t1\');\nmysql> INSERT INTO t2 (message) VALUES (\'Testing\'),(\'table\'),(\'t2\');\nmysql> CREATE TABLE total (\n    ->    a INT NOT NULL AUTO_INCREMENT,\n    ->    message CHAR(20), INDEX(a))\n    ->    ENGINE=MERGE UNION=(t1,t2) INSERT_METHOD=LAST;\n','https://dev.mysql.com/doc/refman/8.0/en/merge-storage-engine.html');

--
-- Dumping data for table `innodb_index_stats`
--

INSERT  IGNORE INTO `innodb_index_stats` VALUES ('doordash','delivery_persons','PRIMARY','2025-12-28 04:17:58','n_diff_pfx01',3,1,'id'),('doordash','delivery_persons','PRIMARY','2025-12-28 04:17:58','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('doordash','delivery_persons','PRIMARY','2025-12-28 04:17:58','size',1,NULL,'Number of pages in the index'),('doordash','delivery_persons','user_id','2025-12-28 04:17:58','n_diff_pfx01',3,1,'user_id'),('doordash','delivery_persons','user_id','2025-12-28 04:17:58','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('doordash','delivery_persons','user_id','2025-12-28 04:17:58','size',1,NULL,'Number of pages in the index'),('doordash','menu_items','PRIMARY','2025-12-28 04:07:38','n_diff_pfx01',21,1,'id'),('doordash','menu_items','PRIMARY','2025-12-28 04:07:38','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('doordash','menu_items','PRIMARY','2025-12-28 04:07:38','size',1,NULL,'Number of pages in the index'),('doordash','menu_items','restaurant_id','2025-12-28 04:07:38','n_diff_pfx01',8,1,'restaurant_id'),('doordash','menu_items','restaurant_id','2025-12-28 04:07:38','n_diff_pfx02',21,1,'restaurant_id,id'),('doordash','menu_items','restaurant_id','2025-12-28 04:07:38','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('doordash','menu_items','restaurant_id','2025-12-28 04:07:38','size',1,NULL,'Number of pages in the index'),('doordash','merchant_stripe_accounts','PRIMARY','2026-01-13 02:10:30','n_diff_pfx01',2,1,'id'),('doordash','merchant_stripe_accounts','PRIMARY','2026-01-13 02:10:30','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('doordash','merchant_stripe_accounts','PRIMARY','2026-01-13 02:10:30','size',1,NULL,'Number of pages in the index'),('doordash','merchant_stripe_accounts','restaurant_id','2026-01-13 02:10:30','n_diff_pfx01',2,1,'restaurant_id'),('doordash','merchant_stripe_accounts','restaurant_id','2026-01-13 02:10:30','n_diff_pfx02',2,1,'restaurant_id,id'),('doordash','merchant_stripe_accounts','restaurant_id','2026-01-13 02:10:30','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('doordash','merchant_stripe_accounts','restaurant_id','2026-01-13 02:10:30','size',1,NULL,'Number of pages in the index'),('doordash','merchant_stripe_accounts','stripe_account_id','2026-01-13 02:10:30','n_diff_pfx01',2,1,'stripe_account_id'),('doordash','merchant_stripe_accounts','stripe_account_id','2026-01-13 02:10:30','n_diff_pfx02',2,1,'stripe_account_id,id'),('doordash','merchant_stripe_accounts','stripe_account_id','2026-01-13 02:10:30','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('doordash','merchant_stripe_accounts','stripe_account_id','2026-01-13 02:10:30','size',1,NULL,'Number of pages in the index'),('doordash','merchant_stripe_accounts','unique_user_restaurant','2026-01-13 02:10:30','n_diff_pfx01',2,1,'user_id'),('doordash','merchant_stripe_accounts','unique_user_restaurant','2026-01-13 02:10:30','n_diff_pfx02',2,1,'user_id,restaurant_id'),('doordash','merchant_stripe_accounts','unique_user_restaurant','2026-01-13 02:10:30','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('doordash','merchant_stripe_accounts','unique_user_restaurant','2026-01-13 02:10:30','size',1,NULL,'Number of pages in the index'),('doordash','order_items','PRIMARY','2026-02-10 06:34:33','n_diff_pfx01',75,1,'id'),('doordash','order_items','PRIMARY','2026-02-10 06:34:33','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('doordash','order_items','PRIMARY','2026-02-10 06:34:33','size',1,NULL,'Number of pages in the index'),('doordash','order_items','menu_item_id','2026-02-10 06:34:33','n_diff_pfx01',14,1,'menu_item_id'),('doordash','order_items','menu_item_id','2026-02-10 06:34:33','n_diff_pfx02',75,1,'menu_item_id,id'),('doordash','order_items','menu_item_id','2026-02-10 06:34:33','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('doordash','order_items','menu_item_id','2026-02-10 06:34:33','size',1,NULL,'Number of pages in the index'),('doordash','order_items','order_id','2026-02-10 06:34:33','n_diff_pfx01',75,1,'order_id'),('doordash','order_items','order_id','2026-02-10 06:34:33','n_diff_pfx02',75,1,'order_id,id'),('doordash','order_items','order_id','2026-02-10 06:34:33','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('doordash','order_items','order_id','2026-02-10 06:34:33','size',1,NULL,'Number of pages in the index'),('doordash','orders','PRIMARY','2026-02-10 06:34:23','n_diff_pfx01',75,1,'id'),('doordash','orders','PRIMARY','2026-02-10 06:34:23','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('doordash','orders','PRIMARY','2026-02-10 06:34:23','size',1,NULL,'Number of pages in the index'),('doordash','orders','customer_id','2026-02-10 06:34:23','n_diff_pfx01',4,1,'customer_id'),('doordash','orders','customer_id','2026-02-10 06:34:23','n_diff_pfx02',75,1,'customer_id,id'),('doordash','orders','customer_id','2026-02-10 06:34:23','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('doordash','orders','customer_id','2026-02-10 06:34:23','size',1,NULL,'Number of pages in the index'),('doordash','orders','delivery_person_id','2026-02-10 06:34:23','n_diff_pfx01',4,1,'delivery_person_id'),('doordash','orders','delivery_person_id','2026-02-10 06:34:23','n_diff_pfx02',75,1,'delivery_person_id,id'),('doordash','orders','delivery_person_id','2026-02-10 06:34:23','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('doordash','orders','delivery_person_id','2026-02-10 06:34:23','size',1,NULL,'Number of pages in the index'),('doordash','orders','idx_payment_intent','2026-02-10 06:34:23','n_diff_pfx01',1,1,'payment_intent_id'),('doordash','orders','idx_payment_intent','2026-02-10 06:34:23','n_diff_pfx02',75,1,'payment_intent_id,id'),('doordash','orders','idx_payment_intent','2026-02-10 06:34:23','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('doordash','orders','idx_payment_intent','2026-02-10 06:34:23','size',1,NULL,'Number of pages in the index'),('doordash','orders','idx_payment_status','2026-02-10 06:34:23','n_diff_pfx01',1,1,'payment_status'),('doordash','orders','idx_payment_status','2026-02-10 06:34:23','n_diff_pfx02',75,1,'payment_status,id'),('doordash','orders','idx_payment_status','2026-02-10 06:34:23','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('doordash','orders','idx_payment_status','2026-02-10 06:34:23','size',1,NULL,'Number of pages in the index'),('doordash','orders','restaurant_id','2026-02-10 06:34:23','n_diff_pfx01',7,1,'restaurant_id'),('doordash','orders','restaurant_id','2026-02-10 06:34:23','n_diff_pfx02',75,1,'restaurant_id,id'),('doordash','orders','restaurant_id','2026-02-10 06:34:23','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('doordash','orders','restaurant_id','2026-02-10 06:34:23','size',1,NULL,'Number of pages in the index'),('doordash','payments','PRIMARY','2025-11-20 06:53:58','n_diff_pfx01',3,1,'id'),('doordash','payments','PRIMARY','2025-11-20 06:53:58','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('doordash','payments','PRIMARY','2025-11-20 06:53:58','size',1,NULL,'Number of pages in the index'),('doordash','payments','idx_customer_id','2025-11-20 06:53:58','n_diff_pfx01',2,1,'customer_id'),('doordash','payments','idx_customer_id','2025-11-20 06:53:58','n_diff_pfx02',3,1,'customer_id,id'),('doordash','payments','idx_customer_id','2025-11-20 06:53:58','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('doordash','payments','idx_customer_id','2025-11-20 06:53:58','size',1,NULL,'Number of pages in the index'),('doordash','payments','idx_order_id','2025-11-20 06:53:58','n_diff_pfx01',3,1,'order_id'),('doordash','payments','idx_order_id','2025-11-20 06:53:58','n_diff_pfx02',3,1,'order_id,id'),('doordash','payments','idx_order_id','2025-11-20 06:53:58','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('doordash','payments','idx_order_id','2025-11-20 06:53:58','size',1,NULL,'Number of pages in the index'),('doordash','payments','idx_payment_intent_id','2025-11-20 06:53:58','n_diff_pfx01',3,1,'payment_intent_id'),('doordash','payments','idx_payment_intent_id','2025-11-20 06:53:58','n_diff_pfx02',3,1,'payment_intent_id,id'),('doordash','payments','idx_payment_intent_id','2025-11-20 06:53:58','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('doordash','payments','idx_payment_intent_id','2025-11-20 06:53:58','size',1,NULL,'Number of pages in the index'),('doordash','payments','idx_payments_created_at','2025-11-20 06:53:58','n_diff_pfx01',3,1,'created_at'),('doordash','payments','idx_payments_created_at','2025-11-20 06:53:58','n_diff_pfx02',3,1,'created_at,id'),('doordash','payments','idx_payments_created_at','2025-11-20 06:53:58','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('doordash','payments','idx_payments_created_at','2025-11-20 06:53:58','size',1,NULL,'Number of pages in the index'),('doordash','payments','idx_payments_customer_id','2025-11-20 06:53:58','n_diff_pfx01',2,1,'customer_id'),('doordash','payments','idx_payments_customer_id','2025-11-20 06:53:58','n_diff_pfx02',3,1,'customer_id,id'),('doordash','payments','idx_payments_customer_id','2025-11-20 06:53:58','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('doordash','payments','idx_payments_customer_id','2025-11-20 06:53:58','size',1,NULL,'Number of pages in the index'),('doordash','payments','idx_payments_payment_method','2025-11-20 06:53:58','n_diff_pfx01',1,1,'payment_method'),('doordash','payments','idx_payments_payment_method','2025-11-20 06:53:58','n_diff_pfx02',3,1,'payment_method,id'),('doordash','payments','idx_payments_payment_method','2025-11-20 06:53:58','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('doordash','payments','idx_payments_payment_method','2025-11-20 06:53:58','size',1,NULL,'Number of pages in the index'),('doordash','payments','idx_payments_status','2025-11-20 06:53:58','n_diff_pfx01',1,1,'status'),('doordash','payments','idx_payments_status','2025-11-20 06:53:58','n_diff_pfx02',3,1,'status,id'),('doordash','payments','idx_payments_status','2025-11-20 06:53:58','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('doordash','payments','idx_payments_status','2025-11-20 06:53:58','size',1,NULL,'Number of pages in the index'),('doordash','payments','idx_status','2025-11-20 06:53:58','n_diff_pfx01',1,1,'status'),('doordash','payments','idx_status','2025-11-20 06:53:58','n_diff_pfx02',3,1,'status,id'),('doordash','payments','idx_status','2025-11-20 06:53:58','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('doordash','payments','idx_status','2025-11-20 06:53:58','size',1,NULL,'Number of pages in the index'),('doordash','payments','payment_intent_id','2025-11-20 06:53:58','n_diff_pfx01',3,1,'payment_intent_id'),('doordash','payments','payment_intent_id','2025-11-20 06:53:58','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('doordash','payments','payment_intent_id','2025-11-20 06:53:58','size',1,NULL,'Number of pages in the index'),('doordash','payments','payment_intent_id_2','2025-11-20 06:53:58','n_diff_pfx01',3,1,'payment_intent_id'),('doordash','payments','payment_intent_id_2','2025-11-20 06:53:58','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('doordash','payments','payment_intent_id_2','2025-11-20 06:53:58','size',1,NULL,'Number of pages in the index'),('doordash','refunds','PRIMARY','2025-11-16 16:47:58','n_diff_pfx01',0,1,'id'),('doordash','refunds','PRIMARY','2025-11-16 16:47:58','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('doordash','refunds','PRIMARY','2025-11-16 16:47:58','size',1,NULL,'Number of pages in the index'),('doordash','refunds','idx_refund_id','2025-11-16 16:47:58','n_diff_pfx01',0,1,'refund_id'),('doordash','refunds','idx_refund_id','2025-11-16 16:47:58','n_diff_pfx02',0,1,'refund_id,id'),('doordash','refunds','idx_refund_id','2025-11-16 16:47:58','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('doordash','refunds','idx_refund_id','2025-11-16 16:47:58','size',1,NULL,'Number of pages in the index'),('doordash','refunds','idx_refund_payment_intent','2025-11-16 16:47:58','n_diff_pfx01',0,1,'payment_intent_id'),('doordash','refunds','idx_refund_payment_intent','2025-11-16 16:47:58','n_diff_pfx02',0,1,'payment_intent_id,id'),('doordash','refunds','idx_refund_payment_intent','2025-11-16 16:47:58','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('doordash','refunds','idx_refund_payment_intent','2025-11-16 16:47:58','size',1,NULL,'Number of pages in the index'),('doordash','restaurants','PRIMARY','2025-11-05 12:21:16','n_diff_pfx01',18,1,'id'),('doordash','restaurants','PRIMARY','2025-11-05 12:21:16','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('doordash','restaurants','PRIMARY','2025-11-05 12:21:16','size',1,NULL,'Number of pages in the index'),('doordash','stripe_otps','PRIMARY','2026-01-13 02:09:41','n_diff_pfx01',2,1,'id'),('doordash','stripe_otps','PRIMARY','2026-01-13 02:09:41','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('doordash','stripe_otps','PRIMARY','2026-01-13 02:09:41','size',1,NULL,'Number of pages in the index'),('doordash','stripe_otps','unique_email_restaurant','2026-01-13 02:09:41','n_diff_pfx01',2,1,'email'),('doordash','stripe_otps','unique_email_restaurant','2026-01-13 02:09:41','n_diff_pfx02',2,1,'email,restaurant_id'),('doordash','stripe_otps','unique_email_restaurant','2026-01-13 02:09:41','n_diff_pfx03',2,1,'email,restaurant_id,user_id'),('doordash','stripe_otps','unique_email_restaurant','2026-01-13 02:09:41','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('doordash','stripe_otps','unique_email_restaurant','2026-01-13 02:09:41','size',1,NULL,'Number of pages in the index'),('doordash','user_restaurants','PRIMARY','2026-01-09 14:25:57','n_diff_pfx01',13,1,'id'),('doordash','user_restaurants','PRIMARY','2026-01-09 14:25:57','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('doordash','user_restaurants','PRIMARY','2026-01-09 14:25:57','size',1,NULL,'Number of pages in the index'),('doordash','user_restaurants','restaurant_id','2026-01-09 14:25:57','n_diff_pfx01',8,1,'restaurant_id'),('doordash','user_restaurants','restaurant_id','2026-01-09 14:25:57','n_diff_pfx02',13,1,'restaurant_id,id'),('doordash','user_restaurants','restaurant_id','2026-01-09 14:25:57','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('doordash','user_restaurants','restaurant_id','2026-01-09 14:25:57','size',1,NULL,'Number of pages in the index'),('doordash','user_restaurants','unique_user_restaurant','2026-01-09 14:25:57','n_diff_pfx01',5,1,'user_id'),('doordash','user_restaurants','unique_user_restaurant','2026-01-09 14:25:57','n_diff_pfx02',13,1,'user_id,restaurant_id'),('doordash','user_restaurants','unique_user_restaurant','2026-01-09 14:25:57','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('doordash','user_restaurants','unique_user_restaurant','2026-01-09 14:25:57','size',1,NULL,'Number of pages in the index'),('doordash','users','PRIMARY','2025-12-28 04:16:05','n_diff_pfx01',15,1,'id'),('doordash','users','PRIMARY','2025-12-28 04:16:05','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('doordash','users','PRIMARY','2025-12-28 04:16:05','size',1,NULL,'Number of pages in the index'),('doordash','users','email','2025-12-28 04:16:05','n_diff_pfx01',15,1,'email'),('doordash','users','email','2025-12-28 04:16:05','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('doordash','users','email','2025-12-28 04:16:05','size',1,NULL,'Number of pages in the index'),('employee_performance_tracker','assigned_tasks','PRIMARY','2025-10-31 02:40:07','n_diff_pfx01',30,1,'id'),('employee_performance_tracker','assigned_tasks','PRIMARY','2025-10-31 02:40:07','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('employee_performance_tracker','assigned_tasks','PRIMARY','2025-10-31 02:40:07','size',1,NULL,'Number of pages in the index'),('employee_performance_tracker','staff','PRIMARY','2025-10-31 01:20:36','n_diff_pfx01',2,1,'id'),('employee_performance_tracker','staff','PRIMARY','2025-10-31 01:20:36','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('employee_performance_tracker','staff','PRIMARY','2025-10-31 01:20:36','size',1,NULL,'Number of pages in the index'),('employee_performance_tracker','staff_tasks','PRIMARY','2025-10-19 21:03:41','n_diff_pfx01',0,1,'id'),('employee_performance_tracker','staff_tasks','PRIMARY','2025-10-19 21:03:41','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('employee_performance_tracker','staff_tasks','PRIMARY','2025-10-19 21:03:41','size',1,NULL,'Number of pages in the index'),('employee_performance_tracker','staff_tasks','staff_id','2025-10-19 21:03:41','n_diff_pfx01',0,1,'staff_id'),('employee_performance_tracker','staff_tasks','staff_id','2025-10-19 21:03:41','n_diff_pfx02',0,1,'staff_id,task_id'),('employee_performance_tracker','staff_tasks','staff_id','2025-10-19 21:03:41','n_diff_pfx03',0,1,'staff_id,task_id,date'),('employee_performance_tracker','staff_tasks','staff_id','2025-10-19 21:03:41','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('employee_performance_tracker','staff_tasks','staff_id','2025-10-19 21:03:41','size',1,NULL,'Number of pages in the index'),('employee_performance_tracker','tasks','PRIMARY','2025-10-21 18:49:29','n_diff_pfx01',12,1,'id'),('employee_performance_tracker','tasks','PRIMARY','2025-10-21 18:49:29','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('employee_performance_tracker','tasks','PRIMARY','2025-10-21 18:49:29','size',1,NULL,'Number of pages in the index'),('mysql','component','PRIMARY','2025-07-07 13:39:40','n_diff_pfx01',1,1,'component_id'),('mysql','component','PRIMARY','2025-07-07 13:39:40','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('mysql','component','PRIMARY','2025-07-07 13:39:40','size',1,NULL,'Number of pages in the index'),('phpmyadmin','pma__bookmark','PRIMARY','2025-07-03 14:00:45','n_diff_pfx01',0,1,'id'),('phpmyadmin','pma__bookmark','PRIMARY','2025-07-03 14:00:45','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('phpmyadmin','pma__bookmark','PRIMARY','2025-07-03 14:00:45','size',1,NULL,'Number of pages in the index'),('phpmyadmin','pma__central_columns','PRIMARY','2025-07-03 14:00:44','n_diff_pfx01',0,1,'db_name'),('phpmyadmin','pma__central_columns','PRIMARY','2025-07-03 14:00:44','n_diff_pfx02',0,1,'db_name,col_name'),('phpmyadmin','pma__central_columns','PRIMARY','2025-07-03 14:00:44','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('phpmyadmin','pma__central_columns','PRIMARY','2025-07-03 14:00:44','size',1,NULL,'Number of pages in the index'),('phpmyadmin','pma__column_info','PRIMARY','2025-07-03 14:00:45','n_diff_pfx01',0,1,'id'),('phpmyadmin','pma__column_info','PRIMARY','2025-07-03 14:00:45','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('phpmyadmin','pma__column_info','PRIMARY','2025-07-03 14:00:45','size',1,NULL,'Number of pages in the index'),('phpmyadmin','pma__column_info','db_name','2025-07-03 14:00:45','n_diff_pfx01',0,1,'db_name'),('phpmyadmin','pma__column_info','db_name','2025-07-03 14:00:45','n_diff_pfx02',0,1,'db_name,table_name'),('phpmyadmin','pma__column_info','db_name','2025-07-03 14:00:45','n_diff_pfx03',0,1,'db_name,table_name,column_name'),('phpmyadmin','pma__column_info','db_name','2025-07-03 14:00:45','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('phpmyadmin','pma__column_info','db_name','2025-07-03 14:00:45','size',1,NULL,'Number of pages in the index'),('phpmyadmin','pma__designer_settings','PRIMARY','2025-07-03 14:00:44','n_diff_pfx01',0,1,'username'),('phpmyadmin','pma__designer_settings','PRIMARY','2025-07-03 14:00:44','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('phpmyadmin','pma__designer_settings','PRIMARY','2025-07-03 14:00:44','size',1,NULL,'Number of pages in the index'),('phpmyadmin','pma__export_templates','PRIMARY','2025-07-03 14:00:46','n_diff_pfx01',0,1,'id'),('phpmyadmin','pma__export_templates','PRIMARY','2025-07-03 14:00:46','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('phpmyadmin','pma__export_templates','PRIMARY','2025-07-03 14:00:46','size',1,NULL,'Number of pages in the index'),('phpmyadmin','pma__export_templates','u_user_type_template','2025-07-03 14:00:46','n_diff_pfx01',0,1,'username'),('phpmyadmin','pma__export_templates','u_user_type_template','2025-07-03 14:00:46','n_diff_pfx02',0,1,'username,export_type'),('phpmyadmin','pma__export_templates','u_user_type_template','2025-07-03 14:00:46','n_diff_pfx03',0,1,'username,export_type,template_name'),('phpmyadmin','pma__export_templates','u_user_type_template','2025-07-03 14:00:46','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('phpmyadmin','pma__export_templates','u_user_type_template','2025-07-03 14:00:46','size',1,NULL,'Number of pages in the index'),('phpmyadmin','pma__favorite','PRIMARY','2025-07-03 14:00:44','n_diff_pfx01',0,1,'username'),('phpmyadmin','pma__favorite','PRIMARY','2025-07-03 14:00:44','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('phpmyadmin','pma__favorite','PRIMARY','2025-07-03 14:00:44','size',1,NULL,'Number of pages in the index'),('phpmyadmin','pma__history','PRIMARY','2025-07-03 14:00:46','n_diff_pfx01',0,1,'id'),('phpmyadmin','pma__history','PRIMARY','2025-07-03 14:00:46','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('phpmyadmin','pma__history','PRIMARY','2025-07-03 14:00:46','size',1,NULL,'Number of pages in the index'),('phpmyadmin','pma__history','username','2025-07-03 14:00:46','n_diff_pfx01',0,1,'username'),('phpmyadmin','pma__history','username','2025-07-03 14:00:46','n_diff_pfx02',0,1,'username,db'),('phpmyadmin','pma__history','username','2025-07-03 14:00:46','n_diff_pfx03',0,1,'username,db,table'),('phpmyadmin','pma__history','username','2025-07-03 14:00:46','n_diff_pfx04',0,1,'username,db,table,timevalue'),('phpmyadmin','pma__history','username','2025-07-03 14:00:46','n_diff_pfx05',0,1,'username,db,table,timevalue,id'),('phpmyadmin','pma__history','username','2025-07-03 14:00:46','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('phpmyadmin','pma__history','username','2025-07-03 14:00:46','size',1,NULL,'Number of pages in the index'),('phpmyadmin','pma__navigationhiding','PRIMARY','2025-07-03 14:00:45','n_diff_pfx01',0,1,'username'),('phpmyadmin','pma__navigationhiding','PRIMARY','2025-07-03 14:00:45','n_diff_pfx02',0,1,'username,item_name'),('phpmyadmin','pma__navigationhiding','PRIMARY','2025-07-03 14:00:45','n_diff_pfx03',0,1,'username,item_name,item_type'),('phpmyadmin','pma__navigationhiding','PRIMARY','2025-07-03 14:00:45','n_diff_pfx04',0,1,'username,item_name,item_type,db_name'),('phpmyadmin','pma__navigationhiding','PRIMARY','2025-07-03 14:00:45','n_diff_pfx05',0,1,'username,item_name,item_type,db_name,table_name'),('phpmyadmin','pma__navigationhiding','PRIMARY','2025-07-03 14:00:45','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('phpmyadmin','pma__navigationhiding','PRIMARY','2025-07-03 14:00:45','size',1,NULL,'Number of pages in the index'),('phpmyadmin','pma__pdf_pages','PRIMARY','2025-07-03 14:00:45','n_diff_pfx01',0,1,'page_nr'),('phpmyadmin','pma__pdf_pages','PRIMARY','2025-07-03 14:00:45','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('phpmyadmin','pma__pdf_pages','PRIMARY','2025-07-03 14:00:45','size',1,NULL,'Number of pages in the index'),('phpmyadmin','pma__pdf_pages','db_name','2025-07-03 14:00:45','n_diff_pfx01',0,1,'db_name'),('phpmyadmin','pma__pdf_pages','db_name','2025-07-03 14:00:45','n_diff_pfx02',0,1,'db_name,page_nr'),('phpmyadmin','pma__pdf_pages','db_name','2025-07-03 14:00:45','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('phpmyadmin','pma__pdf_pages','db_name','2025-07-03 14:00:45','size',1,NULL,'Number of pages in the index'),('phpmyadmin','pma__recent','PRIMARY','2025-07-03 14:00:45','n_diff_pfx01',0,1,'username'),('phpmyadmin','pma__recent','PRIMARY','2025-07-03 14:00:45','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('phpmyadmin','pma__recent','PRIMARY','2025-07-03 14:00:45','size',1,NULL,'Number of pages in the index'),('phpmyadmin','pma__relation','PRIMARY','2025-07-03 14:00:45','n_diff_pfx01',0,1,'master_db'),('phpmyadmin','pma__relation','PRIMARY','2025-07-03 14:00:45','n_diff_pfx02',0,1,'master_db,master_table'),('phpmyadmin','pma__relation','PRIMARY','2025-07-03 14:00:45','n_diff_pfx03',0,1,'master_db,master_table,master_field'),('phpmyadmin','pma__relation','PRIMARY','2025-07-03 14:00:45','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('phpmyadmin','pma__relation','PRIMARY','2025-07-03 14:00:45','size',1,NULL,'Number of pages in the index'),('phpmyadmin','pma__relation','foreign_field','2025-07-03 14:00:45','n_diff_pfx01',0,1,'foreign_db'),('phpmyadmin','pma__relation','foreign_field','2025-07-03 14:00:45','n_diff_pfx02',0,1,'foreign_db,foreign_table'),('phpmyadmin','pma__relation','foreign_field','2025-07-03 14:00:45','n_diff_pfx03',0,1,'foreign_db,foreign_table,master_db'),('phpmyadmin','pma__relation','foreign_field','2025-07-03 14:00:45','n_diff_pfx04',0,1,'foreign_db,foreign_table,master_db,master_table'),('phpmyadmin','pma__relation','foreign_field','2025-07-03 14:00:45','n_diff_pfx05',0,1,'foreign_db,foreign_table,master_db,master_table,master_field'),('phpmyadmin','pma__relation','foreign_field','2025-07-03 14:00:45','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('phpmyadmin','pma__relation','foreign_field','2025-07-03 14:00:45','size',1,NULL,'Number of pages in the index'),('phpmyadmin','pma__savedsearches','PRIMARY','2025-07-03 14:00:45','n_diff_pfx01',0,1,'id'),('phpmyadmin','pma__savedsearches','PRIMARY','2025-07-03 14:00:45','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('phpmyadmin','pma__savedsearches','PRIMARY','2025-07-03 14:00:45','size',1,NULL,'Number of pages in the index'),('phpmyadmin','pma__savedsearches','u_savedsearches_username_dbname','2025-07-03 14:00:45','n_diff_pfx01',0,1,'username'),('phpmyadmin','pma__savedsearches','u_savedsearches_username_dbname','2025-07-03 14:00:45','n_diff_pfx02',0,1,'username,db_name'),('phpmyadmin','pma__savedsearches','u_savedsearches_username_dbname','2025-07-03 14:00:45','n_diff_pfx03',0,1,'username,db_name,search_name'),('phpmyadmin','pma__savedsearches','u_savedsearches_username_dbname','2025-07-03 14:00:45','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('phpmyadmin','pma__savedsearches','u_savedsearches_username_dbname','2025-07-03 14:00:45','size',1,NULL,'Number of pages in the index'),('phpmyadmin','pma__table_coords','PRIMARY','2025-07-03 14:00:45','n_diff_pfx01',0,1,'db_name'),('phpmyadmin','pma__table_coords','PRIMARY','2025-07-03 14:00:45','n_diff_pfx02',0,1,'db_name,table_name'),('phpmyadmin','pma__table_coords','PRIMARY','2025-07-03 14:00:45','n_diff_pfx03',0,1,'db_name,table_name,pdf_page_number'),('phpmyadmin','pma__table_coords','PRIMARY','2025-07-03 14:00:45','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('phpmyadmin','pma__table_coords','PRIMARY','2025-07-03 14:00:45','size',1,NULL,'Number of pages in the index'),('phpmyadmin','pma__table_info','PRIMARY','2025-07-03 14:00:45','n_diff_pfx01',0,1,'db_name'),('phpmyadmin','pma__table_info','PRIMARY','2025-07-03 14:00:45','n_diff_pfx02',0,1,'db_name,table_name'),('phpmyadmin','pma__table_info','PRIMARY','2025-07-03 14:00:45','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('phpmyadmin','pma__table_info','PRIMARY','2025-07-03 14:00:45','size',1,NULL,'Number of pages in the index'),('phpmyadmin','pma__table_uiprefs','PRIMARY','2025-07-03 14:00:45','n_diff_pfx01',0,1,'username'),('phpmyadmin','pma__table_uiprefs','PRIMARY','2025-07-03 14:00:45','n_diff_pfx02',0,1,'username,db_name'),('phpmyadmin','pma__table_uiprefs','PRIMARY','2025-07-03 14:00:45','n_diff_pfx03',0,1,'username,db_name,table_name'),('phpmyadmin','pma__table_uiprefs','PRIMARY','2025-07-03 14:00:45','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('phpmyadmin','pma__table_uiprefs','PRIMARY','2025-07-03 14:00:45','size',1,NULL,'Number of pages in the index'),('phpmyadmin','pma__tracking','PRIMARY','2025-07-03 14:00:45','n_diff_pfx01',0,1,'db_name'),('phpmyadmin','pma__tracking','PRIMARY','2025-07-03 14:00:45','n_diff_pfx02',0,1,'db_name,table_name'),('phpmyadmin','pma__tracking','PRIMARY','2025-07-03 14:00:45','n_diff_pfx03',0,1,'db_name,table_name,version'),('phpmyadmin','pma__tracking','PRIMARY','2025-07-03 14:00:45','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('phpmyadmin','pma__tracking','PRIMARY','2025-07-03 14:00:45','size',1,NULL,'Number of pages in the index'),('phpmyadmin','pma__userconfig','PRIMARY','2025-07-03 14:00:45','n_diff_pfx01',0,1,'username'),('phpmyadmin','pma__userconfig','PRIMARY','2025-07-03 14:00:45','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('phpmyadmin','pma__userconfig','PRIMARY','2025-07-03 14:00:45','size',1,NULL,'Number of pages in the index'),('phpmyadmin','pma__usergroups','PRIMARY','2025-07-03 14:00:45','n_diff_pfx01',0,1,'usergroup'),('phpmyadmin','pma__usergroups','PRIMARY','2025-07-03 14:00:45','n_diff_pfx02',0,1,'usergroup,tab'),('phpmyadmin','pma__usergroups','PRIMARY','2025-07-03 14:00:45','n_diff_pfx03',0,1,'usergroup,tab,allowed'),('phpmyadmin','pma__usergroups','PRIMARY','2025-07-03 14:00:45','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('phpmyadmin','pma__usergroups','PRIMARY','2025-07-03 14:00:45','size',1,NULL,'Number of pages in the index'),('phpmyadmin','pma__users','PRIMARY','2025-07-03 14:00:45','n_diff_pfx01',0,1,'username'),('phpmyadmin','pma__users','PRIMARY','2025-07-03 14:00:45','n_diff_pfx02',0,1,'username,usergroup'),('phpmyadmin','pma__users','PRIMARY','2025-07-03 14:00:45','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('phpmyadmin','pma__users','PRIMARY','2025-07-03 14:00:45','size',1,NULL,'Number of pages in the index'),('quiz_app','assignment_questions','PRIMARY','2025-10-23 03:54:53','n_diff_pfx01',12,1,'id'),('quiz_app','assignment_questions','PRIMARY','2025-10-23 03:54:53','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('quiz_app','assignment_questions','PRIMARY','2025-10-23 03:54:53','size',1,NULL,'Number of pages in the index'),('quiz_app','assignment_questions','assignment_id','2025-10-23 03:54:53','n_diff_pfx01',4,1,'assignment_id'),('quiz_app','assignment_questions','assignment_id','2025-10-23 03:54:53','n_diff_pfx02',12,1,'assignment_id,id'),('quiz_app','assignment_questions','assignment_id','2025-10-23 03:54:53','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('quiz_app','assignment_questions','assignment_id','2025-10-23 03:54:53','size',1,NULL,'Number of pages in the index'),('quiz_app','assignment_questions','question_id','2025-10-23 03:54:53','n_diff_pfx01',6,1,'question_id'),('quiz_app','assignment_questions','question_id','2025-10-23 03:54:53','n_diff_pfx02',12,1,'question_id,id'),('quiz_app','assignment_questions','question_id','2025-10-23 03:54:53','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('quiz_app','assignment_questions','question_id','2025-10-23 03:54:53','size',1,NULL,'Number of pages in the index'),('quiz_app','assignments','PRIMARY','2025-10-20 19:23:02','n_diff_pfx01',5,1,'id'),('quiz_app','assignments','PRIMARY','2025-10-20 19:23:02','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('quiz_app','assignments','PRIMARY','2025-10-20 19:23:02','size',1,NULL,'Number of pages in the index'),('quiz_app','assignments','grade_id','2025-10-20 19:23:02','n_diff_pfx01',1,1,'grade_id'),('quiz_app','assignments','grade_id','2025-10-20 19:23:02','n_diff_pfx02',5,1,'grade_id,id'),('quiz_app','assignments','grade_id','2025-10-20 19:23:02','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('quiz_app','assignments','grade_id','2025-10-20 19:23:02','size',1,NULL,'Number of pages in the index'),('quiz_app','assignments','student_id','2025-10-20 19:23:02','n_diff_pfx01',2,1,'student_id'),('quiz_app','assignments','student_id','2025-10-20 19:23:02','n_diff_pfx02',5,1,'student_id,id'),('quiz_app','assignments','student_id','2025-10-20 19:23:02','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('quiz_app','assignments','student_id','2025-10-20 19:23:02','size',1,NULL,'Number of pages in the index'),('quiz_app','assignments','teacher_id','2025-10-20 19:23:02','n_diff_pfx01',1,1,'teacher_id'),('quiz_app','assignments','teacher_id','2025-10-20 19:23:02','n_diff_pfx02',5,1,'teacher_id,id'),('quiz_app','assignments','teacher_id','2025-10-20 19:23:02','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('quiz_app','assignments','teacher_id','2025-10-20 19:23:02','size',1,NULL,'Number of pages in the index'),('quiz_app','attempts','PRIMARY','2025-10-20 19:22:32','n_diff_pfx01',0,1,'id'),('quiz_app','attempts','PRIMARY','2025-10-20 19:22:32','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('quiz_app','attempts','PRIMARY','2025-10-20 19:22:32','size',1,NULL,'Number of pages in the index'),('quiz_app','grade_levels','PRIMARY','2025-10-20 19:23:32','n_diff_pfx01',10,1,'id'),('quiz_app','grade_levels','PRIMARY','2025-10-20 19:23:32','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('quiz_app','grade_levels','PRIMARY','2025-10-20 19:23:32','size',1,NULL,'Number of pages in the index'),('quiz_app','questions','PRIMARY','2025-10-23 03:54:32','n_diff_pfx01',8,1,'id'),('quiz_app','questions','PRIMARY','2025-10-23 03:54:32','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('quiz_app','questions','PRIMARY','2025-10-23 03:54:32','size',1,NULL,'Number of pages in the index'),('quiz_app','quiz_questions','PRIMARY','2025-10-23 03:55:54','n_diff_pfx01',60,1,'id'),('quiz_app','quiz_questions','PRIMARY','2025-10-23 03:55:54','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('quiz_app','quiz_questions','PRIMARY','2025-10-23 03:55:54','size',1,NULL,'Number of pages in the index'),('quiz_app','quiz_questions','idx_quiz_questions_question_id','2025-10-23 03:55:54','n_diff_pfx01',12,1,'question_id'),('quiz_app','quiz_questions','idx_quiz_questions_question_id','2025-10-23 03:55:54','n_diff_pfx02',60,1,'question_id,id'),('quiz_app','quiz_questions','idx_quiz_questions_question_id','2025-10-23 03:55:54','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('quiz_app','quiz_questions','idx_quiz_questions_question_id','2025-10-23 03:55:54','size',1,NULL,'Number of pages in the index'),('quiz_app','quiz_questions','idx_quiz_questions_quiz_result_id','2025-10-23 03:55:54','n_diff_pfx01',17,1,'quiz_result_id'),('quiz_app','quiz_questions','idx_quiz_questions_quiz_result_id','2025-10-23 03:55:54','n_diff_pfx02',60,1,'quiz_result_id,id'),('quiz_app','quiz_questions','idx_quiz_questions_quiz_result_id','2025-10-23 03:55:54','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('quiz_app','quiz_questions','idx_quiz_questions_quiz_result_id','2025-10-23 03:55:54','size',1,NULL,'Number of pages in the index'),('quiz_app','quiz_results','PRIMARY','2025-10-23 03:55:44','n_diff_pfx01',17,1,'id'),('quiz_app','quiz_results','PRIMARY','2025-10-23 03:55:44','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('quiz_app','quiz_results','PRIMARY','2025-10-23 03:55:44','size',1,NULL,'Number of pages in the index'),('quiz_app','quiz_results','idx_quiz_results_completed_at','2025-10-23 03:55:44','n_diff_pfx01',17,1,'completed_at'),('quiz_app','quiz_results','idx_quiz_results_completed_at','2025-10-23 03:55:44','n_diff_pfx02',17,1,'completed_at,id'),('quiz_app','quiz_results','idx_quiz_results_completed_at','2025-10-23 03:55:44','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('quiz_app','quiz_results','idx_quiz_results_completed_at','2025-10-23 03:55:44','size',1,NULL,'Number of pages in the index'),('quiz_app','quiz_results','idx_quiz_results_user_id','2025-10-23 03:55:44','n_diff_pfx01',1,1,'user_id'),('quiz_app','quiz_results','idx_quiz_results_user_id','2025-10-23 03:55:44','n_diff_pfx02',17,1,'user_id,id'),('quiz_app','quiz_results','idx_quiz_results_user_id','2025-10-23 03:55:44','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('quiz_app','quiz_results','idx_quiz_results_user_id','2025-10-23 03:55:44','size',1,NULL,'Number of pages in the index'),('quiz_app','users','PRIMARY','2025-10-20 19:22:42','n_diff_pfx01',4,1,'id'),('quiz_app','users','PRIMARY','2025-10-20 19:22:42','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('quiz_app','users','PRIMARY','2025-10-20 19:22:42','size',1,NULL,'Number of pages in the index'),('quiz_app','users','email','2025-10-20 19:22:42','n_diff_pfx01',4,1,'email'),('quiz_app','users','email','2025-10-20 19:22:42','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('quiz_app','users','email','2025-10-20 19:22:42','size',1,NULL,'Number of pages in the index'),('remote_desktop','api_keys','PRIMARY','2025-12-11 12:01:32','n_diff_pfx01',0,1,'id'),('remote_desktop','api_keys','PRIMARY','2025-12-11 12:01:32','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('remote_desktop','api_keys','PRIMARY','2025-12-11 12:01:32','size',1,NULL,'Number of pages in the index'),('remote_desktop','api_keys','api_key','2025-12-11 12:01:32','n_diff_pfx01',0,1,'api_key'),('remote_desktop','api_keys','api_key','2025-12-11 12:01:32','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('remote_desktop','api_keys','api_key','2025-12-11 12:01:32','size',1,NULL,'Number of pages in the index'),('remote_desktop','api_keys','device_id','2025-12-11 12:01:32','n_diff_pfx01',0,1,'device_id'),('remote_desktop','api_keys','device_id','2025-12-11 12:01:32','n_diff_pfx02',0,1,'device_id,id'),('remote_desktop','api_keys','device_id','2025-12-11 12:01:32','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('remote_desktop','api_keys','device_id','2025-12-11 12:01:32','size',1,NULL,'Number of pages in the index'),('remote_desktop','connections','PRIMARY','2025-12-11 12:01:32','n_diff_pfx01',0,1,'id'),('remote_desktop','connections','PRIMARY','2025-12-11 12:01:32','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('remote_desktop','connections','PRIMARY','2025-12-11 12:01:32','size',1,NULL,'Number of pages in the index'),('remote_desktop','connections','idx_from_device','2025-12-11 12:01:32','n_diff_pfx01',0,1,'from_device'),('remote_desktop','connections','idx_from_device','2025-12-11 12:01:32','n_diff_pfx02',0,1,'from_device,id'),('remote_desktop','connections','idx_from_device','2025-12-11 12:01:32','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('remote_desktop','connections','idx_from_device','2025-12-11 12:01:32','size',1,NULL,'Number of pages in the index'),('remote_desktop','connections','idx_status','2025-12-11 12:01:32','n_diff_pfx01',0,1,'status'),('remote_desktop','connections','idx_status','2025-12-11 12:01:32','n_diff_pfx02',0,1,'status,id'),('remote_desktop','connections','idx_status','2025-12-11 12:01:32','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('remote_desktop','connections','idx_status','2025-12-11 12:01:32','size',1,NULL,'Number of pages in the index'),('remote_desktop','connections','idx_to_device','2025-12-11 12:01:32','n_diff_pfx01',0,1,'to_device'),('remote_desktop','connections','idx_to_device','2025-12-11 12:01:32','n_diff_pfx02',0,1,'to_device,id'),('remote_desktop','connections','idx_to_device','2025-12-11 12:01:32','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('remote_desktop','connections','idx_to_device','2025-12-11 12:01:32','size',1,NULL,'Number of pages in the index'),('remote_desktop','devices','PRIMARY','2025-12-11 12:01:32','n_diff_pfx01',0,1,'device_id'),('remote_desktop','devices','PRIMARY','2025-12-11 12:01:32','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('remote_desktop','devices','PRIMARY','2025-12-11 12:01:32','size',1,NULL,'Number of pages in the index'),('remote_desktop','devices','idx_last_seen','2025-12-11 12:01:32','n_diff_pfx01',0,1,'last_seen'),('remote_desktop','devices','idx_last_seen','2025-12-11 12:01:32','n_diff_pfx02',0,1,'last_seen,device_id'),('remote_desktop','devices','idx_last_seen','2025-12-11 12:01:32','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('remote_desktop','devices','idx_last_seen','2025-12-11 12:01:32','size',1,NULL,'Number of pages in the index'),('sanmiwago_p','#sql-216_1b7f0','PRIMARY','2025-01-28 03:04:07','n_diff_pfx01',0,1,'id'),('sanmiwago_p','#sql-216_1b7f0','PRIMARY','2025-01-28 03:04:07','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('sanmiwago_p','#sql-216_1b7f0','PRIMARY','2025-01-28 03:04:07','size',1,NULL,'Number of pages in the index'),('six_pos','accounts','PRIMARY','2026-01-03 14:02:09','n_diff_pfx01',3,1,'id'),('six_pos','accounts','PRIMARY','2026-01-03 14:02:09','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('six_pos','accounts','PRIMARY','2026-01-03 14:02:09','size',1,NULL,'Number of pages in the index'),('six_pos','admin_roles','PRIMARY','2026-01-03 14:01:59','n_diff_pfx01',1,1,'id'),('six_pos','admin_roles','PRIMARY','2026-01-03 14:01:59','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('six_pos','admin_roles','PRIMARY','2026-01-03 14:01:59','size',1,NULL,'Number of pages in the index'),('six_pos','admins','PRIMARY','2026-01-03 14:01:59','n_diff_pfx01',0,1,'id'),('six_pos','admins','PRIMARY','2026-01-03 14:01:59','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('six_pos','admins','PRIMARY','2026-01-03 14:01:59','size',1,NULL,'Number of pages in the index'),('six_pos','brands','PRIMARY','2026-01-03 14:01:59','n_diff_pfx01',1,1,'id'),('six_pos','brands','PRIMARY','2026-01-03 14:01:59','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('six_pos','brands','PRIMARY','2026-01-03 14:01:59','size',1,NULL,'Number of pages in the index'),('six_pos','business_settings','PRIMARY','2026-01-03 14:02:49','n_diff_pfx01',13,1,'id'),('six_pos','business_settings','PRIMARY','2026-01-03 14:02:49','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('six_pos','business_settings','PRIMARY','2026-01-03 14:02:49','size',1,NULL,'Number of pages in the index'),('six_pos','categories','PRIMARY','2026-01-03 14:02:29','n_diff_pfx01',2,1,'id'),('six_pos','categories','PRIMARY','2026-01-03 14:02:29','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('six_pos','categories','PRIMARY','2026-01-03 14:02:29','size',1,NULL,'Number of pages in the index'),('six_pos','companies','PRIMARY','2026-01-03 14:01:59','n_diff_pfx01',0,1,'id'),('six_pos','companies','PRIMARY','2026-01-03 14:01:59','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('six_pos','companies','PRIMARY','2026-01-03 14:01:59','size',1,NULL,'Number of pages in the index'),('six_pos','counters','PRIMARY','2026-01-03 14:01:59','n_diff_pfx01',0,1,'id'),('six_pos','counters','PRIMARY','2026-01-03 14:01:59','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('six_pos','counters','PRIMARY','2026-01-03 14:01:59','size',1,NULL,'Number of pages in the index'),('six_pos','coupons','PRIMARY','2026-01-03 14:01:59','n_diff_pfx01',0,1,'id'),('six_pos','coupons','PRIMARY','2026-01-03 14:01:59','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('six_pos','coupons','PRIMARY','2026-01-03 14:01:59','size',1,NULL,'Number of pages in the index'),('six_pos','currencies','PRIMARY','2026-01-03 14:03:09','n_diff_pfx01',119,1,'id'),('six_pos','currencies','PRIMARY','2026-01-03 14:03:09','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('six_pos','currencies','PRIMARY','2026-01-03 14:03:09','size',1,NULL,'Number of pages in the index'),('six_pos','customers','PRIMARY','2026-01-03 14:01:59','n_diff_pfx01',1,1,'id'),('six_pos','customers','PRIMARY','2026-01-03 14:01:59','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('six_pos','customers','PRIMARY','2026-01-03 14:01:59','size',1,NULL,'Number of pages in the index'),('six_pos','failed_jobs','PRIMARY','2026-01-03 14:01:59','n_diff_pfx01',0,1,'id'),('six_pos','failed_jobs','PRIMARY','2026-01-03 14:01:59','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('six_pos','failed_jobs','PRIMARY','2026-01-03 14:01:59','size',1,NULL,'Number of pages in the index'),('six_pos','failed_jobs','failed_jobs_uuid_unique','2026-01-03 14:01:59','n_diff_pfx01',0,1,'uuid'),('six_pos','failed_jobs','failed_jobs_uuid_unique','2026-01-03 14:01:59','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('six_pos','failed_jobs','failed_jobs_uuid_unique','2026-01-03 14:01:59','size',1,NULL,'Number of pages in the index'),('six_pos','migrations','PRIMARY','2026-01-03 14:02:19','n_diff_pfx01',56,1,'id'),('six_pos','migrations','PRIMARY','2026-01-03 14:02:19','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('six_pos','migrations','PRIMARY','2026-01-03 14:02:19','size',1,NULL,'Number of pages in the index'),('six_pos','oauth_access_tokens','PRIMARY','2026-01-03 14:01:58','n_diff_pfx01',0,1,'id'),('six_pos','oauth_access_tokens','PRIMARY','2026-01-03 14:01:58','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('six_pos','oauth_access_tokens','PRIMARY','2026-01-03 14:01:58','size',1,NULL,'Number of pages in the index'),('six_pos','oauth_access_tokens','oauth_access_tokens_user_id_index','2026-01-03 14:01:58','n_diff_pfx01',0,1,'user_id'),('six_pos','oauth_access_tokens','oauth_access_tokens_user_id_index','2026-01-03 14:01:58','n_diff_pfx02',0,1,'user_id,id'),('six_pos','oauth_access_tokens','oauth_access_tokens_user_id_index','2026-01-03 14:01:58','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('six_pos','oauth_access_tokens','oauth_access_tokens_user_id_index','2026-01-03 14:01:58','size',1,NULL,'Number of pages in the index'),('six_pos','oauth_auth_codes','PRIMARY','2026-01-03 14:01:58','n_diff_pfx01',0,1,'id'),('six_pos','oauth_auth_codes','PRIMARY','2026-01-03 14:01:58','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('six_pos','oauth_auth_codes','PRIMARY','2026-01-03 14:01:58','size',1,NULL,'Number of pages in the index'),('six_pos','oauth_auth_codes','oauth_auth_codes_user_id_index','2026-01-03 14:01:58','n_diff_pfx01',0,1,'user_id'),('six_pos','oauth_auth_codes','oauth_auth_codes_user_id_index','2026-01-03 14:01:58','n_diff_pfx02',0,1,'user_id,id'),('six_pos','oauth_auth_codes','oauth_auth_codes_user_id_index','2026-01-03 14:01:58','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('six_pos','oauth_auth_codes','oauth_auth_codes_user_id_index','2026-01-03 14:01:58','size',1,NULL,'Number of pages in the index'),('six_pos','oauth_clients','PRIMARY','2026-01-03 14:02:39','n_diff_pfx01',2,1,'id'),('six_pos','oauth_clients','PRIMARY','2026-01-03 14:02:39','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('six_pos','oauth_clients','PRIMARY','2026-01-03 14:02:39','size',1,NULL,'Number of pages in the index'),('six_pos','oauth_clients','oauth_clients_user_id_index','2026-01-03 14:02:39','n_diff_pfx01',1,1,'user_id'),('six_pos','oauth_clients','oauth_clients_user_id_index','2026-01-03 14:02:39','n_diff_pfx02',2,1,'user_id,id'),('six_pos','oauth_clients','oauth_clients_user_id_index','2026-01-03 14:02:39','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('six_pos','oauth_clients','oauth_clients_user_id_index','2026-01-03 14:02:39','size',1,NULL,'Number of pages in the index'),('six_pos','oauth_personal_access_clients','PRIMARY','2026-01-03 14:01:59','n_diff_pfx01',1,1,'id'),('six_pos','oauth_personal_access_clients','PRIMARY','2026-01-03 14:01:59','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('six_pos','oauth_personal_access_clients','PRIMARY','2026-01-03 14:01:59','size',1,NULL,'Number of pages in the index'),('six_pos','oauth_refresh_tokens','PRIMARY','2026-01-03 14:01:58','n_diff_pfx01',0,1,'id'),('six_pos','oauth_refresh_tokens','PRIMARY','2026-01-03 14:01:58','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('six_pos','oauth_refresh_tokens','PRIMARY','2026-01-03 14:01:58','size',1,NULL,'Number of pages in the index'),('six_pos','oauth_refresh_tokens','oauth_refresh_tokens_access_token_id_index','2026-01-03 14:01:58','n_diff_pfx01',0,1,'access_token_id'),('six_pos','oauth_refresh_tokens','oauth_refresh_tokens_access_token_id_index','2026-01-03 14:01:58','n_diff_pfx02',0,1,'access_token_id,id'),('six_pos','oauth_refresh_tokens','oauth_refresh_tokens_access_token_id_index','2026-01-03 14:01:58','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('six_pos','oauth_refresh_tokens','oauth_refresh_tokens_access_token_id_index','2026-01-03 14:01:58','size',1,NULL,'Number of pages in the index'),('six_pos','order_details','PRIMARY','2026-01-03 14:01:59','n_diff_pfx01',0,1,'id'),('six_pos','order_details','PRIMARY','2026-01-03 14:01:59','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('six_pos','order_details','PRIMARY','2026-01-03 14:01:59','size',1,NULL,'Number of pages in the index'),('six_pos','orders','PRIMARY','2026-01-03 14:01:59','n_diff_pfx01',0,1,'id'),('six_pos','orders','PRIMARY','2026-01-03 14:01:59','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('six_pos','orders','PRIMARY','2026-01-03 14:01:59','size',1,NULL,'Number of pages in the index'),('six_pos','password_resets','GEN_CLUST_INDEX','2026-01-03 14:01:59','n_diff_pfx01',0,1,'DB_ROW_ID'),('six_pos','password_resets','GEN_CLUST_INDEX','2026-01-03 14:01:59','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('six_pos','password_resets','GEN_CLUST_INDEX','2026-01-03 14:01:59','size',1,NULL,'Number of pages in the index'),('six_pos','password_resets','password_resets_email_index','2026-01-03 14:01:59','n_diff_pfx01',0,1,'email'),('six_pos','password_resets','password_resets_email_index','2026-01-03 14:01:59','n_diff_pfx02',0,1,'email,DB_ROW_ID'),('six_pos','password_resets','password_resets_email_index','2026-01-03 14:01:59','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('six_pos','password_resets','password_resets_email_index','2026-01-03 14:01:59','size',1,NULL,'Number of pages in the index'),('six_pos','personal_access_tokens','PRIMARY','2026-01-03 14:01:59','n_diff_pfx01',0,1,'id'),('six_pos','personal_access_tokens','PRIMARY','2026-01-03 14:01:59','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('six_pos','personal_access_tokens','PRIMARY','2026-01-03 14:01:59','size',1,NULL,'Number of pages in the index'),('six_pos','personal_access_tokens','personal_access_tokens_token_unique','2026-01-03 14:01:59','n_diff_pfx01',0,1,'token'),('six_pos','personal_access_tokens','personal_access_tokens_token_unique','2026-01-03 14:01:59','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('six_pos','personal_access_tokens','personal_access_tokens_token_unique','2026-01-03 14:01:59','size',1,NULL,'Number of pages in the index'),('six_pos','personal_access_tokens','personal_access_tokens_tokenable_type_tokenable_id_index','2026-01-03 14:01:59','n_diff_pfx01',0,1,'tokenable_type'),('six_pos','personal_access_tokens','personal_access_tokens_tokenable_type_tokenable_id_index','2026-01-03 14:01:59','n_diff_pfx02',0,1,'tokenable_type,tokenable_id'),('six_pos','personal_access_tokens','personal_access_tokens_tokenable_type_tokenable_id_index','2026-01-03 14:01:59','n_diff_pfx03',0,1,'tokenable_type,tokenable_id,id'),('six_pos','personal_access_tokens','personal_access_tokens_tokenable_type_tokenable_id_index','2026-01-03 14:01:59','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('six_pos','personal_access_tokens','personal_access_tokens_tokenable_type_tokenable_id_index','2026-01-03 14:01:59','size',1,NULL,'Number of pages in the index'),('six_pos','refunds','PRIMARY','2026-01-03 14:01:59','n_diff_pfx01',0,1,'id'),('six_pos','refunds','PRIMARY','2026-01-03 14:01:59','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('six_pos','refunds','PRIMARY','2026-01-03 14:01:59','size',1,NULL,'Number of pages in the index'),('six_pos','soft_credentials','PRIMARY','2026-01-03 14:01:59','n_diff_pfx01',0,1,'id'),('six_pos','soft_credentials','PRIMARY','2026-01-03 14:01:59','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('six_pos','soft_credentials','PRIMARY','2026-01-03 14:01:59','size',1,NULL,'Number of pages in the index'),('six_pos','suppliers','PRIMARY','2026-01-03 14:01:59','n_diff_pfx01',1,1,'id'),('six_pos','suppliers','PRIMARY','2026-01-03 14:01:59','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('six_pos','suppliers','PRIMARY','2026-01-03 14:01:59','size',1,NULL,'Number of pages in the index'),('six_pos','transections','PRIMARY','2026-01-03 14:01:59','n_diff_pfx01',0,1,'id'),('six_pos','transections','PRIMARY','2026-01-03 14:01:59','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('six_pos','transections','PRIMARY','2026-01-03 14:01:59','size',1,NULL,'Number of pages in the index'),('six_pos','units','PRIMARY','2026-01-03 14:02:59','n_diff_pfx01',3,1,'id'),('six_pos','units','PRIMARY','2026-01-03 14:02:59','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('six_pos','units','PRIMARY','2026-01-03 14:02:59','size',1,NULL,'Number of pages in the index'),('six_pos','users','PRIMARY','2026-01-03 14:01:59','n_diff_pfx01',0,1,'id'),('six_pos','users','PRIMARY','2026-01-03 14:01:59','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('six_pos','users','PRIMARY','2026-01-03 14:01:59','size',1,NULL,'Number of pages in the index'),('six_pos','users','users_email_unique','2026-01-03 14:01:59','n_diff_pfx01',0,1,'email'),('six_pos','users','users_email_unique','2026-01-03 14:01:59','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('six_pos','users','users_email_unique','2026-01-03 14:01:59','size',1,NULL,'Number of pages in the index'),('sys','sys_config','PRIMARY','2023-09-22 01:26:37','n_diff_pfx01',2,1,'variable'),('sys','sys_config','PRIMARY','2023-09-22 01:26:37','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('sys','sys_config','PRIMARY','2023-09-22 01:26:37','size',1,NULL,'Number of pages in the index');

--
-- Dumping data for table `innodb_table_stats`
--

INSERT  IGNORE INTO `innodb_table_stats` VALUES ('doordash','delivery_persons','2025-12-28 04:17:58',3,1,1),('doordash','menu_items','2025-12-28 04:07:38',21,1,1),('doordash','merchant_stripe_accounts','2026-01-13 02:10:30',2,1,3),('doordash','order_items','2026-02-10 06:34:33',75,1,2),('doordash','orders','2026-02-10 06:34:23',75,1,5),('doordash','payments','2025-11-20 06:53:58',3,1,10),('doordash','refunds','2025-11-16 16:47:58',0,1,2),('doordash','restaurants','2025-11-05 12:21:16',18,1,0),('doordash','stripe_otps','2026-01-13 02:09:41',2,1,1),('doordash','user_restaurants','2026-01-09 14:25:57',13,1,2),('doordash','users','2025-12-28 04:16:05',15,1,1),('employee_performance_tracker','assigned_tasks','2025-10-31 02:40:07',30,1,0),('employee_performance_tracker','staff','2025-10-31 01:20:36',2,1,0),('employee_performance_tracker','staff_tasks','2025-10-19 21:03:41',0,1,1),('employee_performance_tracker','tasks','2025-10-21 18:49:29',12,1,0),('mysql','component','2025-07-07 13:39:40',1,1,0),('phpmyadmin','pma__bookmark','2025-07-03 14:00:45',0,1,0),('phpmyadmin','pma__central_columns','2025-07-03 14:00:44',0,1,0),('phpmyadmin','pma__column_info','2025-07-03 14:00:45',0,1,1),('phpmyadmin','pma__designer_settings','2025-07-03 14:00:44',0,1,0),('phpmyadmin','pma__export_templates','2025-07-03 14:00:46',0,1,1),('phpmyadmin','pma__favorite','2025-07-03 14:00:44',0,1,0),('phpmyadmin','pma__history','2025-07-03 14:00:46',0,1,1),('phpmyadmin','pma__navigationhiding','2025-07-03 14:00:45',0,1,0),('phpmyadmin','pma__pdf_pages','2025-07-03 14:00:45',0,1,1),('phpmyadmin','pma__recent','2025-07-03 14:00:45',0,1,0),('phpmyadmin','pma__relation','2025-07-03 14:00:45',0,1,1),('phpmyadmin','pma__savedsearches','2025-07-03 14:00:45',0,1,1),('phpmyadmin','pma__table_coords','2025-07-03 14:00:45',0,1,0),('phpmyadmin','pma__table_info','2025-07-03 14:00:45',0,1,0),('phpmyadmin','pma__table_uiprefs','2025-07-03 14:00:45',0,1,0),('phpmyadmin','pma__tracking','2025-07-03 14:00:45',0,1,0),('phpmyadmin','pma__userconfig','2025-07-03 14:00:45',0,1,0),('phpmyadmin','pma__usergroups','2025-07-03 14:00:45',0,1,0),('phpmyadmin','pma__users','2025-07-03 14:00:45',0,1,0),('quiz_app','assignment_questions','2025-10-23 03:54:53',12,1,2),('quiz_app','assignments','2025-10-20 19:23:02',5,1,3),('quiz_app','attempts','2025-10-20 19:22:32',0,1,0),('quiz_app','grade_levels','2025-10-20 19:23:32',10,1,0),('quiz_app','questions','2025-10-23 03:54:32',8,1,0),('quiz_app','quiz_questions','2025-10-23 03:55:54',60,1,2),('quiz_app','quiz_results','2025-10-23 03:55:44',17,1,2),('quiz_app','users','2025-10-20 19:22:42',4,1,1),('remote_desktop','api_keys','2025-12-11 12:01:32',0,1,2),('remote_desktop','connections','2025-12-11 12:01:32',0,1,3),('remote_desktop','devices','2025-12-11 12:01:32',0,1,1),('sanmiwago_p','#sql-216_1b7f0','2025-01-28 03:04:07',0,1,0),('six_pos','accounts','2026-01-03 14:02:09',3,1,0),('six_pos','admin_roles','2026-01-03 14:01:59',1,1,0),('six_pos','admins','2026-01-03 14:01:59',0,1,0),('six_pos','brands','2026-01-03 14:01:59',1,1,0),('six_pos','business_settings','2026-01-03 14:02:49',13,1,0),('six_pos','categories','2026-01-03 14:02:29',2,1,0),('six_pos','companies','2026-01-03 14:01:59',0,1,0),('six_pos','counters','2026-01-03 14:01:59',0,1,0),('six_pos','coupons','2026-01-03 14:01:59',0,1,0),('six_pos','currencies','2026-01-03 14:03:09',119,1,0),('six_pos','customers','2026-01-03 14:01:59',1,1,0),('six_pos','failed_jobs','2026-01-03 14:01:59',0,1,1),('six_pos','migrations','2026-01-03 14:02:19',56,1,0),('six_pos','oauth_access_tokens','2026-01-03 14:01:58',0,1,1),('six_pos','oauth_auth_codes','2026-01-03 14:01:58',0,1,1),('six_pos','oauth_clients','2026-01-03 14:02:39',2,1,1),('six_pos','oauth_personal_access_clients','2026-01-03 14:01:59',1,1,0),('six_pos','oauth_refresh_tokens','2026-01-03 14:01:58',0,1,1),('six_pos','order_details','2026-01-03 14:01:59',0,1,0),('six_pos','orders','2026-01-03 14:01:59',0,1,0),('six_pos','password_resets','2026-01-03 14:01:59',0,1,0),('six_pos','personal_access_tokens','2026-01-03 14:01:59',0,1,2),('six_pos','refunds','2026-01-03 14:01:59',0,1,0),('six_pos','soft_credentials','2026-01-03 14:01:59',0,1,0),('six_pos','suppliers','2026-01-03 14:01:59',1,1,0),('six_pos','transections','2026-01-03 14:01:59',0,1,0),('six_pos','units','2026-01-03 14:02:59',3,1,0),('six_pos','users','2026-01-03 14:01:59',0,1,1),('sys','sys_config','2023-09-22 01:26:37',2,1,0);

--
-- Table structure for table `password_history`
--

CREATE TABLE `password_history` (
  `Host` char(255) CHARACTER SET ascii COLLATE ascii_general_ci NOT NULL DEFAULT '',
  `User` char(32) COLLATE utf8mb3_bin NOT NULL DEFAULT '',
  `Password_timestamp` timestamp(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6),
  `Password` text COLLATE utf8mb3_bin,
  PRIMARY KEY (`Host`,`User`,`Password_timestamp` DESC)
) /*!50100 TABLESPACE `mysql` */ ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_bin STATS_PERSISTENT=0 ROW_FORMAT=DYNAMIC COMMENT='Password history for user accounts';

--
-- Dumping data for table `password_history`
--


--
-- Table structure for table `plugin`
--

CREATE TABLE `plugin` (
  `name` varchar(64) NOT NULL DEFAULT '',
  `dl` varchar(128) NOT NULL DEFAULT '',
  PRIMARY KEY (`name`)
) /*!50100 TABLESPACE `mysql` */ ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 STATS_PERSISTENT=0 ROW_FORMAT=DYNAMIC COMMENT='MySQL plugins';

--
-- Dumping data for table `plugin`
--

INSERT INTO `plugin` VALUES ('auth_socket','auth_socket.so');

--
-- Table structure for table `procs_priv`
--

CREATE TABLE `procs_priv` (
  `Host` char(255) CHARACTER SET ascii COLLATE ascii_general_ci NOT NULL DEFAULT '',
  `Db` char(64) COLLATE utf8mb3_bin NOT NULL DEFAULT '',
  `User` char(32) COLLATE utf8mb3_bin NOT NULL DEFAULT '',
  `Routine_name` char(64) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL DEFAULT '',
  `Routine_type` enum('FUNCTION','PROCEDURE') COLLATE utf8mb3_bin NOT NULL,
  `Grantor` varchar(288) COLLATE utf8mb3_bin NOT NULL DEFAULT '',
  `Proc_priv` set('Execute','Alter Routine','Grant') CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL DEFAULT '',
  `Timestamp` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`Host`,`User`,`Db`,`Routine_name`,`Routine_type`),
  KEY `Grantor` (`Grantor`)
) /*!50100 TABLESPACE `mysql` */ ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_bin STATS_PERSISTENT=0 ROW_FORMAT=DYNAMIC COMMENT='Procedure privileges';

--
-- Dumping data for table `procs_priv`
--


--
-- Table structure for table `proxies_priv`
--

CREATE TABLE `proxies_priv` (
  `Host` char(255) CHARACTER SET ascii COLLATE ascii_general_ci NOT NULL DEFAULT '',
  `User` char(32) COLLATE utf8mb3_bin NOT NULL DEFAULT '',
  `Proxied_host` char(255) CHARACTER SET ascii COLLATE ascii_general_ci NOT NULL DEFAULT '',
  `Proxied_user` char(32) COLLATE utf8mb3_bin NOT NULL DEFAULT '',
  `With_grant` tinyint(1) NOT NULL DEFAULT '0',
  `Grantor` varchar(288) COLLATE utf8mb3_bin NOT NULL DEFAULT '',
  `Timestamp` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`Host`,`User`,`Proxied_host`,`Proxied_user`),
  KEY `Grantor` (`Grantor`)
) /*!50100 TABLESPACE `mysql` */ ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_bin STATS_PERSISTENT=0 ROW_FORMAT=DYNAMIC COMMENT='User proxy privileges';

--
-- Dumping data for table `proxies_priv`
--

INSERT INTO `proxies_priv` VALUES ('localhost','root','','',1,'boot@','2023-09-22 01:26:37');

--
-- Table structure for table `replication_asynchronous_connection_failover`
--

CREATE TABLE `replication_asynchronous_connection_failover` (
  `Channel_name` char(64) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL COMMENT 'The replication channel name that connects source and replica.',
  `Host` char(255) CHARACTER SET ascii COLLATE ascii_general_ci NOT NULL COMMENT 'The source hostname that the replica will attempt to switch over the replication connection to in case of a failure.',
  `Port` int unsigned NOT NULL COMMENT 'The source port that the replica will attempt to switch over the replication connection to in case of a failure.',
  `Network_namespace` char(64) NOT NULL COMMENT 'The source network namespace that the replica will attempt to switch over the replication connection to in case of a failure. If its value is empty, connections use the default (global) namespace.',
  `Weight` tinyint unsigned NOT NULL COMMENT 'The order in which the replica shall try to switch the connection over to when there are failures. Weight can be set to a number between 1 and 100, where 100 is the highest weight and 1 the lowest.',
  `Managed_name` char(64) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL DEFAULT '' COMMENT 'The name of the group which this server belongs to.',
  PRIMARY KEY (`Channel_name`,`Host`,`Port`,`Network_namespace`,`Managed_name`),
  KEY `Channel_name` (`Channel_name`,`Managed_name`)
) /*!50100 TABLESPACE `mysql` */ ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 STATS_PERSISTENT=0 ROW_FORMAT=DYNAMIC COMMENT='The source configuration details';

--
-- Dumping data for table `replication_asynchronous_connection_failover`
--


--
-- Table structure for table `replication_asynchronous_connection_failover_managed`
--

CREATE TABLE `replication_asynchronous_connection_failover_managed` (
  `Channel_name` char(64) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL COMMENT 'The replication channel name that connects source and replica.',
  `Managed_name` char(64) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL DEFAULT '' COMMENT 'The name of the source which needs to be managed.',
  `Managed_type` char(64) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL DEFAULT '' COMMENT 'Determines the managed type.',
  `Configuration` json DEFAULT NULL COMMENT 'The data to help manage group. For Managed_type = GroupReplication, Configuration value should contain {"Primary_weight": 80, "Secondary_weight": 60}, so that it assigns weight=80 to PRIMARY of the group, and weight=60 for rest of the members in mysql.replication_asynchronous_connection_failover table.',
  PRIMARY KEY (`Channel_name`,`Managed_name`)
) /*!50100 TABLESPACE `mysql` */ ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 STATS_PERSISTENT=0 ROW_FORMAT=DYNAMIC COMMENT='The managed source configuration details';

--
-- Dumping data for table `replication_asynchronous_connection_failover_managed`
--


--
-- Table structure for table `replication_group_configuration_version`
--

CREATE TABLE `replication_group_configuration_version` (
  `name` char(255) CHARACTER SET ascii COLLATE ascii_general_ci NOT NULL COMMENT 'The configuration name.',
  `version` bigint unsigned NOT NULL COMMENT 'The version of the configuration name.',
  PRIMARY KEY (`name`)
) /*!50100 TABLESPACE `mysql` */ ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci STATS_PERSISTENT=0 ROW_FORMAT=DYNAMIC COMMENT='The group configuration version.';

--
-- Dumping data for table `replication_group_configuration_version`
--

INSERT INTO `replication_group_configuration_version` VALUES ('replication_group_member_actions',1);

--
-- Table structure for table `replication_group_member_actions`
--

CREATE TABLE `replication_group_member_actions` (
  `name` char(255) CHARACTER SET ascii COLLATE ascii_general_ci NOT NULL COMMENT 'The action name.',
  `event` char(64) CHARACTER SET ascii COLLATE ascii_general_ci NOT NULL COMMENT 'The event that will trigger the action.',
  `enabled` tinyint(1) NOT NULL COMMENT 'Whether the action is enabled.',
  `type` char(64) CHARACTER SET ascii COLLATE ascii_general_ci NOT NULL COMMENT 'The action type.',
  `priority` tinyint unsigned NOT NULL COMMENT 'The order on which the action will be run, value between 1 and 100, lower values first.',
  `error_handling` char(64) CHARACTER SET ascii COLLATE ascii_general_ci NOT NULL COMMENT 'On errors during the action will be handled: IGNORE, CRITICAL.',
  PRIMARY KEY (`name`,`event`),
  KEY `event` (`event`)
) /*!50100 TABLESPACE `mysql` */ ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci STATS_PERSISTENT=0 ROW_FORMAT=DYNAMIC COMMENT='The member actions configuration.';

--
-- Dumping data for table `replication_group_member_actions`
--

INSERT INTO `replication_group_member_actions` VALUES ('mysql_disable_super_read_only_if_primary','AFTER_PRIMARY_ELECTION',1,'INTERNAL',1,'IGNORE'),('mysql_start_failover_channels_if_primary','AFTER_PRIMARY_ELECTION',1,'INTERNAL',10,'CRITICAL');

--
-- Table structure for table `role_edges`
--

CREATE TABLE `role_edges` (
  `FROM_HOST` char(255) CHARACTER SET ascii COLLATE ascii_general_ci NOT NULL DEFAULT '',
  `FROM_USER` char(32) COLLATE utf8mb3_bin NOT NULL DEFAULT '',
  `TO_HOST` char(255) CHARACTER SET ascii COLLATE ascii_general_ci NOT NULL DEFAULT '',
  `TO_USER` char(32) COLLATE utf8mb3_bin NOT NULL DEFAULT '',
  `WITH_ADMIN_OPTION` enum('N','Y') CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL DEFAULT 'N',
  PRIMARY KEY (`FROM_HOST`,`FROM_USER`,`TO_HOST`,`TO_USER`)
) /*!50100 TABLESPACE `mysql` */ ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_bin STATS_PERSISTENT=0 ROW_FORMAT=DYNAMIC COMMENT='Role hierarchy and role grants';

--
-- Dumping data for table `role_edges`
--


--
-- Table structure for table `server_cost`
--

CREATE TABLE `server_cost` (
  `cost_name` varchar(64) NOT NULL,
  `cost_value` float DEFAULT NULL,
  `last_update` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `comment` varchar(1024) DEFAULT NULL,
  `default_value` float GENERATED ALWAYS AS ((case `cost_name` when _utf8mb3'disk_temptable_create_cost' then 20.0 when _utf8mb3'disk_temptable_row_cost' then 0.5 when _utf8mb3'key_compare_cost' then 0.05 when _utf8mb3'memory_temptable_create_cost' then 1.0 when _utf8mb3'memory_temptable_row_cost' then 0.1 when _utf8mb3'row_evaluate_cost' then 0.1 else NULL end)) VIRTUAL,
  PRIMARY KEY (`cost_name`)
) /*!50100 TABLESPACE `mysql` */ ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 STATS_PERSISTENT=0 ROW_FORMAT=DYNAMIC;

--
-- Dumping data for table `server_cost`
--

INSERT INTO `server_cost` (`cost_name`, `cost_value`, `last_update`, `comment`) VALUES ('disk_temptable_create_cost',NULL,'2023-09-22 01:26:37',NULL),('disk_temptable_row_cost',NULL,'2023-09-22 01:26:37',NULL),('key_compare_cost',NULL,'2023-09-22 01:26:37',NULL),('memory_temptable_create_cost',NULL,'2023-09-22 01:26:37',NULL),('memory_temptable_row_cost',NULL,'2023-09-22 01:26:37',NULL),('row_evaluate_cost',NULL,'2023-09-22 01:26:37',NULL);

--
-- Table structure for table `servers`
--

CREATE TABLE `servers` (
  `Server_name` char(64) NOT NULL DEFAULT '',
  `Host` char(255) CHARACTER SET ascii COLLATE ascii_general_ci NOT NULL DEFAULT '',
  `Db` char(64) NOT NULL DEFAULT '',
  `Username` char(64) NOT NULL DEFAULT '',
  `Password` char(64) NOT NULL DEFAULT '',
  `Port` int NOT NULL DEFAULT '0',
  `Socket` char(64) NOT NULL DEFAULT '',
  `Wrapper` char(64) NOT NULL DEFAULT '',
  `Owner` char(64) NOT NULL DEFAULT '',
  PRIMARY KEY (`Server_name`)
) /*!50100 TABLESPACE `mysql` */ ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 STATS_PERSISTENT=0 ROW_FORMAT=DYNAMIC COMMENT='MySQL Foreign Servers table';

--
-- Dumping data for table `servers`
--


--
-- Table structure for table `slave_master_info`
--

CREATE TABLE IF NOT EXISTS `slave_master_info` (
  `Number_of_lines` int unsigned NOT NULL COMMENT 'Number of lines in the file.',
  `Master_log_name` text CHARACTER SET utf8mb3 COLLATE utf8mb3_bin NOT NULL COMMENT 'The name of the master binary log currently being read from the master.',
  `Master_log_pos` bigint unsigned NOT NULL COMMENT 'The master log position of the last read event.',
  `Host` varchar(255) CHARACTER SET ascii COLLATE ascii_general_ci DEFAULT NULL COMMENT 'The host name of the source.',
  `User_name` text CHARACTER SET utf8mb3 COLLATE utf8mb3_bin COMMENT 'The user name used to connect to the master.',
  `User_password` text CHARACTER SET utf8mb3 COLLATE utf8mb3_bin COMMENT 'The password used to connect to the master.',
  `Port` int unsigned NOT NULL COMMENT 'The network port used to connect to the master.',
  `Connect_retry` int unsigned NOT NULL COMMENT 'The period (in seconds) that the slave will wait before trying to reconnect to the master.',
  `Enabled_ssl` tinyint(1) NOT NULL COMMENT 'Indicates whether the server supports SSL connections.',
  `Ssl_ca` text CHARACTER SET utf8mb3 COLLATE utf8mb3_bin COMMENT 'The file used for the Certificate Authority (CA) certificate.',
  `Ssl_capath` text CHARACTER SET utf8mb3 COLLATE utf8mb3_bin COMMENT 'The path to the Certificate Authority (CA) certificates.',
  `Ssl_cert` text CHARACTER SET utf8mb3 COLLATE utf8mb3_bin COMMENT 'The name of the SSL certificate file.',
  `Ssl_cipher` text CHARACTER SET utf8mb3 COLLATE utf8mb3_bin COMMENT 'The name of the cipher in use for the SSL connection.',
  `Ssl_key` text CHARACTER SET utf8mb3 COLLATE utf8mb3_bin COMMENT 'The name of the SSL key file.',
  `Ssl_verify_server_cert` tinyint(1) NOT NULL COMMENT 'Whether to verify the server certificate.',
  `Heartbeat` float NOT NULL,
  `Bind` text CHARACTER SET utf8mb3 COLLATE utf8mb3_bin COMMENT 'Displays which interface is employed when connecting to the MySQL server',
  `Ignored_server_ids` text CHARACTER SET utf8mb3 COLLATE utf8mb3_bin COMMENT 'The number of server IDs to be ignored, followed by the actual server IDs',
  `Uuid` text CHARACTER SET utf8mb3 COLLATE utf8mb3_bin COMMENT 'The master server uuid.',
  `Retry_count` bigint unsigned NOT NULL COMMENT 'Number of reconnect attempts, to the master, before giving up.',
  `Ssl_crl` text CHARACTER SET utf8mb3 COLLATE utf8mb3_bin COMMENT 'The file used for the Certificate Revocation List (CRL)',
  `Ssl_crlpath` text CHARACTER SET utf8mb3 COLLATE utf8mb3_bin COMMENT 'The path used for Certificate Revocation List (CRL) files',
  `Enabled_auto_position` tinyint(1) NOT NULL COMMENT 'Indicates whether GTIDs will be used to retrieve events from the master.',
  `Channel_name` varchar(64) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL COMMENT 'The channel on which the replica is connected to a source. Used in Multisource Replication',
  `Tls_version` text CHARACTER SET utf8mb3 COLLATE utf8mb3_bin COMMENT 'Tls version',
  `Public_key_path` text CHARACTER SET utf8mb3 COLLATE utf8mb3_bin COMMENT 'The file containing public key of master server.',
  `Get_public_key` tinyint(1) NOT NULL COMMENT 'Preference to get public key from master.',
  `Network_namespace` text CHARACTER SET utf8mb3 COLLATE utf8mb3_bin COMMENT 'Network namespace used for communication with the master server.',
  `Master_compression_algorithm` varchar(64) CHARACTER SET utf8mb3 COLLATE utf8mb3_bin NOT NULL COMMENT 'Compression algorithm supported for data transfer between source and replica.',
  `Master_zstd_compression_level` int unsigned NOT NULL COMMENT 'Compression level associated with zstd compression algorithm.',
  `Tls_ciphersuites` text CHARACTER SET utf8mb3 COLLATE utf8mb3_bin COMMENT 'Ciphersuites used for TLS 1.3 communication with the master server.',
  `Source_connection_auto_failover` tinyint(1) NOT NULL DEFAULT '0' COMMENT 'Indicates whether the channel connection failover is enabled.',
  `Gtid_only` tinyint(1) NOT NULL DEFAULT '0' COMMENT 'Indicates if this channel only uses GTIDs and does not persist positions.',
  PRIMARY KEY (`Channel_name`)
) /*!50100 TABLESPACE `mysql` */ ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 STATS_PERSISTENT=0 ROW_FORMAT=DYNAMIC COMMENT='Master Information';

--
-- Table structure for table `slave_relay_log_info`
--

CREATE TABLE IF NOT EXISTS `slave_relay_log_info` (
  `Number_of_lines` int unsigned NOT NULL COMMENT 'Number of lines in the file or rows in the table. Used to version table definitions.',
  `Relay_log_name` text CHARACTER SET utf8mb3 COLLATE utf8mb3_bin COMMENT 'The name of the current relay log file.',
  `Relay_log_pos` bigint unsigned DEFAULT NULL COMMENT 'The relay log position of the last executed event.',
  `Master_log_name` text CHARACTER SET utf8mb3 COLLATE utf8mb3_bin COMMENT 'The name of the master binary log file from which the events in the relay log file were read.',
  `Master_log_pos` bigint unsigned DEFAULT NULL COMMENT 'The master log position of the last executed event.',
  `Sql_delay` int DEFAULT NULL COMMENT 'The number of seconds that the slave must lag behind the master.',
  `Number_of_workers` int unsigned DEFAULT NULL,
  `Id` int unsigned DEFAULT NULL COMMENT 'Internal Id that uniquely identifies this record.',
  `Channel_name` varchar(64) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL COMMENT 'The channel on which the replica is connected to a source. Used in Multisource Replication',
  `Privilege_checks_username` varchar(32) CHARACTER SET utf8mb3 COLLATE utf8mb3_bin DEFAULT NULL COMMENT 'Username part of PRIVILEGE_CHECKS_USER.',
  `Privilege_checks_hostname` varchar(255) CHARACTER SET ascii COLLATE ascii_general_ci DEFAULT NULL COMMENT 'Hostname part of PRIVILEGE_CHECKS_USER.',
  `Require_row_format` tinyint(1) NOT NULL COMMENT 'Indicates whether the channel shall only accept row based events.',
  `Require_table_primary_key_check` enum('STREAM','ON','OFF','GENERATE') NOT NULL DEFAULT 'STREAM' COMMENT 'Indicates what is the channel policy regarding tables without primary keys on create and alter table queries',
  `Assign_gtids_to_anonymous_transactions_type` enum('OFF','LOCAL','UUID') NOT NULL DEFAULT 'OFF' COMMENT 'Indicates whether the channel will generate a new GTID for anonymous transactions. OFF means that anonymous transactions will remain anonymous. LOCAL means that anonymous transactions will be assigned a newly generated GTID based on server_uuid. UUID indicates that anonymous transactions will be assigned a newly generated GTID based on Assign_gtids_to_anonymous_transactions_value',
  `Assign_gtids_to_anonymous_transactions_value` text CHARACTER SET utf8mb3 COLLATE utf8mb3_bin COMMENT 'Indicates the UUID used while generating GTIDs for anonymous transactions',
  PRIMARY KEY (`Channel_name`)
) /*!50100 TABLESPACE `mysql` */ ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 STATS_PERSISTENT=0 ROW_FORMAT=DYNAMIC COMMENT='Relay Log Information';

--
-- Table structure for table `slave_worker_info`
--

CREATE TABLE `slave_worker_info` (
  `Id` int unsigned NOT NULL,
  `Relay_log_name` text CHARACTER SET utf8mb3 COLLATE utf8mb3_bin NOT NULL,
  `Relay_log_pos` bigint unsigned NOT NULL,
  `Master_log_name` text CHARACTER SET utf8mb3 COLLATE utf8mb3_bin NOT NULL,
  `Master_log_pos` bigint unsigned NOT NULL,
  `Checkpoint_relay_log_name` text CHARACTER SET utf8mb3 COLLATE utf8mb3_bin NOT NULL,
  `Checkpoint_relay_log_pos` bigint unsigned NOT NULL,
  `Checkpoint_master_log_name` text CHARACTER SET utf8mb3 COLLATE utf8mb3_bin NOT NULL,
  `Checkpoint_master_log_pos` bigint unsigned NOT NULL,
  `Checkpoint_seqno` int unsigned NOT NULL,
  `Checkpoint_group_size` int unsigned NOT NULL,
  `Checkpoint_group_bitmap` blob NOT NULL,
  `Channel_name` varchar(64) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL COMMENT 'The channel on which the replica is connected to a source. Used in Multisource Replication',
  PRIMARY KEY (`Channel_name`,`Id`)
) /*!50100 TABLESPACE `mysql` */ ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 STATS_PERSISTENT=0 ROW_FORMAT=DYNAMIC COMMENT='Worker Information';

--
-- Dumping data for table `slave_worker_info`
--


--
-- Table structure for table `tables_priv`
--

CREATE TABLE `tables_priv` (
  `Host` char(255) CHARACTER SET ascii COLLATE ascii_general_ci NOT NULL DEFAULT '',
  `Db` char(64) COLLATE utf8mb3_bin NOT NULL DEFAULT '',
  `User` char(32) COLLATE utf8mb3_bin NOT NULL DEFAULT '',
  `Table_name` char(64) COLLATE utf8mb3_bin NOT NULL DEFAULT '',
  `Grantor` varchar(288) COLLATE utf8mb3_bin NOT NULL DEFAULT '',
  `Timestamp` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `Table_priv` set('Select','Insert','Update','Delete','Create','Drop','Grant','References','Index','Alter','Create View','Show view','Trigger') CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL DEFAULT '',
  `Column_priv` set('Select','Insert','Update','References') CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL DEFAULT '',
  PRIMARY KEY (`Host`,`User`,`Db`,`Table_name`),
  KEY `Grantor` (`Grantor`)
) /*!50100 TABLESPACE `mysql` */ ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_bin STATS_PERSISTENT=0 ROW_FORMAT=DYNAMIC COMMENT='Table privileges';

--
-- Dumping data for table `tables_priv`
--

INSERT INTO `tables_priv` VALUES ('localhost','mysql','mysql.session','user','boot@','2023-09-22 01:26:37','Select',''),('localhost','sys','mysql.sys','sys_config','root@localhost','2023-09-22 01:26:37','Select','');

--
-- Table structure for table `time_zone`
--

CREATE TABLE `time_zone` (
  `Time_zone_id` int unsigned NOT NULL AUTO_INCREMENT,
  `Use_leap_seconds` enum('Y','N') CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL DEFAULT 'N',
  PRIMARY KEY (`Time_zone_id`)
) /*!50100 TABLESPACE `mysql` */ ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 STATS_PERSISTENT=0 ROW_FORMAT=DYNAMIC COMMENT='Time zones';

--
-- Dumping data for table `time_zone`
--


--
-- Table structure for table `time_zone_leap_second`
--

CREATE TABLE `time_zone_leap_second` (
  `Transition_time` bigint NOT NULL,
  `Correction` int NOT NULL,
  PRIMARY KEY (`Transition_time`)
) /*!50100 TABLESPACE `mysql` */ ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 STATS_PERSISTENT=0 ROW_FORMAT=DYNAMIC COMMENT='Leap seconds information for time zones';

--
-- Dumping data for table `time_zone_leap_second`
--


--
-- Table structure for table `time_zone_name`
--

CREATE TABLE `time_zone_name` (
  `Name` char(64) NOT NULL,
  `Time_zone_id` int unsigned NOT NULL,
  PRIMARY KEY (`Name`)
) /*!50100 TABLESPACE `mysql` */ ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 STATS_PERSISTENT=0 ROW_FORMAT=DYNAMIC COMMENT='Time zone names';

--
-- Dumping data for table `time_zone_name`
--


--
-- Table structure for table `time_zone_transition`
--

CREATE TABLE `time_zone_transition` (
  `Time_zone_id` int unsigned NOT NULL,
  `Transition_time` bigint NOT NULL,
  `Transition_type_id` int unsigned NOT NULL,
  PRIMARY KEY (`Time_zone_id`,`Transition_time`)
) /*!50100 TABLESPACE `mysql` */ ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 STATS_PERSISTENT=0 ROW_FORMAT=DYNAMIC COMMENT='Time zone transitions';

--
-- Dumping data for table `time_zone_transition`
--


--
-- Table structure for table `time_zone_transition_type`
--

CREATE TABLE `time_zone_transition_type` (
  `Time_zone_id` int unsigned NOT NULL,
  `Transition_type_id` int unsigned NOT NULL,
  `Offset` int NOT NULL DEFAULT '0',
  `Is_DST` tinyint unsigned NOT NULL DEFAULT '0',
  `Abbreviation` char(8) NOT NULL DEFAULT '',
  PRIMARY KEY (`Time_zone_id`,`Transition_type_id`)
) /*!50100 TABLESPACE `mysql` */ ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 STATS_PERSISTENT=0 ROW_FORMAT=DYNAMIC COMMENT='Time zone transition types';

--
-- Dumping data for table `time_zone_transition_type`
--


--
-- Table structure for table `user`
--

CREATE TABLE `user` (
  `Host` char(255) CHARACTER SET ascii COLLATE ascii_general_ci NOT NULL DEFAULT '',
  `User` char(32) COLLATE utf8mb3_bin NOT NULL DEFAULT '',
  `Select_priv` enum('N','Y') CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL DEFAULT 'N',
  `Insert_priv` enum('N','Y') CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL DEFAULT 'N',
  `Update_priv` enum('N','Y') CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL DEFAULT 'N',
  `Delete_priv` enum('N','Y') CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL DEFAULT 'N',
  `Create_priv` enum('N','Y') CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL DEFAULT 'N',
  `Drop_priv` enum('N','Y') CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL DEFAULT 'N',
  `Reload_priv` enum('N','Y') CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL DEFAULT 'N',
  `Shutdown_priv` enum('N','Y') CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL DEFAULT 'N',
  `Process_priv` enum('N','Y') CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL DEFAULT 'N',
  `File_priv` enum('N','Y') CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL DEFAULT 'N',
  `Grant_priv` enum('N','Y') CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL DEFAULT 'N',
  `References_priv` enum('N','Y') CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL DEFAULT 'N',
  `Index_priv` enum('N','Y') CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL DEFAULT 'N',
  `Alter_priv` enum('N','Y') CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL DEFAULT 'N',
  `Show_db_priv` enum('N','Y') CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL DEFAULT 'N',
  `Super_priv` enum('N','Y') CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL DEFAULT 'N',
  `Create_tmp_table_priv` enum('N','Y') CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL DEFAULT 'N',
  `Lock_tables_priv` enum('N','Y') CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL DEFAULT 'N',
  `Execute_priv` enum('N','Y') CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL DEFAULT 'N',
  `Repl_slave_priv` enum('N','Y') CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL DEFAULT 'N',
  `Repl_client_priv` enum('N','Y') CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL DEFAULT 'N',
  `Create_view_priv` enum('N','Y') CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL DEFAULT 'N',
  `Show_view_priv` enum('N','Y') CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL DEFAULT 'N',
  `Create_routine_priv` enum('N','Y') CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL DEFAULT 'N',
  `Alter_routine_priv` enum('N','Y') CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL DEFAULT 'N',
  `Create_user_priv` enum('N','Y') CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL DEFAULT 'N',
  `Event_priv` enum('N','Y') CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL DEFAULT 'N',
  `Trigger_priv` enum('N','Y') CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL DEFAULT 'N',
  `Create_tablespace_priv` enum('N','Y') CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL DEFAULT 'N',
  `ssl_type` enum('','ANY','X509','SPECIFIED') CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL DEFAULT '',
  `ssl_cipher` blob NOT NULL,
  `x509_issuer` blob NOT NULL,
  `x509_subject` blob NOT NULL,
  `max_questions` int unsigned NOT NULL DEFAULT '0',
  `max_updates` int unsigned NOT NULL DEFAULT '0',
  `max_connections` int unsigned NOT NULL DEFAULT '0',
  `max_user_connections` int unsigned NOT NULL DEFAULT '0',
  `plugin` char(64) COLLATE utf8mb3_bin NOT NULL DEFAULT 'caching_sha2_password',
  `authentication_string` text COLLATE utf8mb3_bin,
  `password_expired` enum('N','Y') CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL DEFAULT 'N',
  `password_last_changed` timestamp NULL DEFAULT NULL,
  `password_lifetime` smallint unsigned DEFAULT NULL,
  `account_locked` enum('N','Y') CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL DEFAULT 'N',
  `Create_role_priv` enum('N','Y') CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL DEFAULT 'N',
  `Drop_role_priv` enum('N','Y') CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL DEFAULT 'N',
  `Password_reuse_history` smallint unsigned DEFAULT NULL,
  `Password_reuse_time` smallint unsigned DEFAULT NULL,
  `Password_require_current` enum('N','Y') CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci DEFAULT NULL,
  `User_attributes` json DEFAULT NULL,
  PRIMARY KEY (`Host`,`User`)
) /*!50100 TABLESPACE `mysql` */ ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_bin STATS_PERSISTENT=0 ROW_FORMAT=DYNAMIC COMMENT='Users and global privileges';

--
-- Dumping data for table `user`
--

INSERT INTO `user` VALUES ('%','emp_tracker_user','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','','','','',0,0,0,0,'caching_sha2_password','$A$005$D23[h]=9v bv_q:`yXFz5sFDvvZJuHebnDm1.2Ztoobj30aGyymLNas.8g4D','N','2025-10-19 21:05:43',NULL,'N','N','N',NULL,NULL,NULL,NULL),('%','gfadev','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','N','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','','','','',0,0,0,0,'caching_sha2_password','$A$005$\".	2hOW(\nBiT05+.P2wvYKVhuSdJaNoyb2vfU2BNDUg8k4KPWrce2bHx.DF8','N','2025-06-23 13:46:39',NULL,'N','Y','Y',NULL,NULL,NULL,NULL),('%','repl','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','Y','Y','N','N','N','N','N','N','N','N','','','','',0,0,0,0,'mysql_native_password','*4F15AF656EAFD7A46812AA6C3CAD866C865F120A','N','2025-07-07 13:26:11',NULL,'N','N','N',NULL,NULL,NULL,NULL),('localhost','debian-sys-maint','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','','','','',0,0,0,0,'caching_sha2_password','$A$005$U`\"}R0!HgFR}U=4MS\"SPGb6BjT9OpfJCVxyR/OLW9eiQRObLJf.VJoBdaJo8/','N','2023-09-22 01:26:38',NULL,'N','Y','Y',NULL,NULL,NULL,NULL),('localhost','ems_user','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','','','','',0,0,0,0,'caching_sha2_password','$A$005$\ZPN_,21N]Ex%(kB?@EuHM1KEm7VLFoAMN8KOPlUtwqFjP5U2ZCQXlY22fo8wB','N','2025-10-20 21:20:26',NULL,'N','N','N',NULL,NULL,NULL,NULL),('localhost','gfadev','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','','','','',0,0,0,0,'caching_sha2_password','$A$005$8LW#l)(~6M\"t!VJ_ZH0JqRmlzpG8PGXIOJ3Vz4xsBjypyBqpa6weP70UfewD','N','2023-09-22 04:03:33',NULL,'N','Y','Y',NULL,NULL,NULL,NULL),('localhost','mysql.infoschema','Y','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','','','','',0,0,0,0,'caching_sha2_password','$A$005$THISISACOMBINATIONOFINVALIDSALTANDPASSWORDTHATMUSTNEVERBRBEUSED','N','2023-09-22 01:26:37',NULL,'Y','N','N',NULL,NULL,NULL,NULL),('localhost','mysql.session','N','N','N','N','N','N','N','Y','N','N','N','N','N','N','N','Y','N','N','N','N','N','N','N','N','N','N','N','N','N','','','','',0,0,0,0,'caching_sha2_password','$A$005$THISISACOMBINATIONOFINVALIDSALTANDPASSWORDTHATMUSTNEVERBRBEUSED','N','2023-09-22 01:26:37',NULL,'Y','N','N',NULL,NULL,NULL,NULL),('localhost','mysql.sys','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','','','','',0,0,0,0,'caching_sha2_password','$A$005$THISISACOMBINATIONOFINVALIDSALTANDPASSWORDTHATMUSTNEVERBRBEUSED','N','2023-09-22 01:26:37',NULL,'Y','N','N',NULL,NULL,NULL,NULL),('localhost','root','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','','','','',0,0,0,0,'auth_socket','','N','2023-09-22 01:26:37',NULL,'N','Y','Y',NULL,NULL,NULL,NULL);

--
-- Dumping events for database 'mysql'
--

--
-- Dumping routines for database 'mysql'
--

--
-- Table structure for table `general_log`
--

CREATE TABLE IF NOT EXISTS `general_log` (
  `event_time` timestamp(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6) ON UPDATE CURRENT_TIMESTAMP(6),
  `user_host` mediumtext NOT NULL,
  `thread_id` bigint unsigned NOT NULL,
  `server_id` int unsigned NOT NULL,
  `command_type` varchar(64) NOT NULL,
  `argument` mediumblob NOT NULL
) ENGINE=CSV DEFAULT CHARSET=utf8mb3 COMMENT='General log';

--
-- Table structure for table `slow_log`
--

CREATE TABLE IF NOT EXISTS `slow_log` (
  `start_time` timestamp(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6) ON UPDATE CURRENT_TIMESTAMP(6),
  `user_host` mediumtext NOT NULL,
  `query_time` time(6) NOT NULL,
  `lock_time` time(6) NOT NULL,
  `rows_sent` int NOT NULL,
  `rows_examined` int NOT NULL,
  `db` varchar(512) NOT NULL,
  `last_insert_id` int NOT NULL,
  `insert_id` int NOT NULL,
  `server_id` int unsigned NOT NULL,
  `sql_text` mediumblob NOT NULL,
  `thread_id` bigint unsigned NOT NULL
) ENGINE=CSV DEFAULT CHARSET=utf8mb3 COMMENT='Slow log';

--
-- Current Database: `doordash`
--

CREATE DATABASE /*!32312 IF NOT EXISTS*/ `doordash` /*!40100 DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci */ /*!80016 DEFAULT ENCRYPTION='N' */;

USE `doordash`;

--
-- Table structure for table `delivery_persons`
--

CREATE TABLE `delivery_persons` (
  `id` int NOT NULL AUTO_INCREMENT,
  `user_id` int NOT NULL,
  `vehicle_type` enum('car','motorcycle','bicycle','scooter') COLLATE utf8mb4_general_ci DEFAULT 'motorcycle',
  `vehicle_plate` varchar(20) COLLATE utf8mb4_general_ci DEFAULT NULL,
  `license_number` varchar(50) COLLATE utf8mb4_general_ci DEFAULT NULL,
  `is_available` tinyint(1) DEFAULT '1',
  `current_location` varchar(255) COLLATE utf8mb4_general_ci DEFAULT NULL,
  `total_deliveries` int DEFAULT '0',
  `rating` decimal(3,2) DEFAULT '5.00',
  `earnings` decimal(10,2) DEFAULT '0.00',
  `is_approved` tinyint(1) DEFAULT '0',
  `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  UNIQUE KEY `user_id` (`user_id`),
  CONSTRAINT `delivery_persons_ibfk_1` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Dumping data for table `delivery_persons`
--

INSERT INTO `delivery_persons` VALUES (1,10,'motorcycle','123','123',1,NULL,13,5.00,38.87,1,'2025-11-03 12:52:03','2025-11-12 16:14:21'),(2,23,'car','1111111','11111111',1,NULL,4,5.00,11.96,1,'2025-11-06 02:12:25','2025-11-17 00:44:46'),(3,27,'motorcycle','66667888888','444446777777',1,NULL,1,5.00,2.00,1,'2025-12-28 04:17:58','2025-12-28 05:54:19');

--
-- Table structure for table `menu_items`
--

CREATE TABLE `menu_items` (
  `id` int NOT NULL AUTO_INCREMENT,
  `restaurant_id` int NOT NULL,
  `name` varchar(255) COLLATE utf8mb4_general_ci NOT NULL,
  `description` text COLLATE utf8mb4_general_ci,
  `price` decimal(10,2) NOT NULL,
  `category` varchar(100) COLLATE utf8mb4_general_ci DEFAULT NULL,
  `image_url` varchar(500) COLLATE utf8mb4_general_ci DEFAULT NULL,
  `is_available` tinyint(1) DEFAULT '1',
  `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  KEY `restaurant_id` (`restaurant_id`),
  CONSTRAINT `menu_items_ibfk_1` FOREIGN KEY (`restaurant_id`) REFERENCES `restaurants` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=23 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Dumping data for table `menu_items`
--

INSERT INTO `menu_items` VALUES (1,5,'burger1','m',100.00,'Appetizers','uploads/menu_item_1761883182_6904342e35cc0.png',1,'2025-10-31 03:59:42'),(2,1,'burgerd','',2.00,'Appetizers',NULL,1,'2025-10-31 04:54:08'),(4,1,'Pepperoni Pizza','Classic pepperoni with mozzarella',14.99,'Pizza',NULL,1,'2025-11-04 02:50:05'),(5,1,'Garlic Breadsticks','Fresh baked with garlic butter',5.99,'Sides',NULL,1,'2025-11-04 02:50:05'),(6,2,'Beef Tacos','Seasoned ground beef with lettuce and cheese',8.99,'Tacos',NULL,1,'2025-11-04 02:50:05'),(7,2,'Chicken Quesadilla','Grilled chicken with melted cheese',10.99,'Main Course',NULL,1,'2025-11-04 02:50:05'),(8,2,'Guacamole','Fresh avocado dip with chips',4.99,'Appetizers',NULL,1,'2025-11-04 02:50:05'),(9,3,'Kung Pao Chicken','Spicy stir-fried chicken with peanuts',13.99,'Main Course',NULL,1,'2025-11-04 02:50:05'),(10,3,'Fried Rice','Vegetable fried rice with egg',9.99,'Sides',NULL,1,'2025-11-04 02:50:05'),(11,3,'Spring Rolls','Crispy vegetable spring rolls',6.99,'Appetizers',NULL,1,'2025-11-04 02:50:05'),(12,4,'Classic Cheeseburger','Beef patty with cheese and veggies',11.99,'Burgers',NULL,1,'2025-11-04 02:50:05'),(13,4,'Bacon Burger','Beef patty with crispy bacon',13.99,'Burgers',NULL,1,'2025-11-04 02:50:05'),(14,4,'French Fries','Crispy golden fries',3.99,'Sides',NULL,1,'2025-11-04 02:50:05'),(15,1,'Pasta','',1.00,'Main Course',NULL,1,'2025-11-04 03:19:01'),(16,22,'burger1','',9.00,'Main Course',NULL,1,'2025-11-05 11:30:26'),(17,23,'pizza','pizza',13.99,'Main Course',NULL,1,'2025-11-06 02:10:55'),(18,23,'speghetti','test',10.00,'Main Course',NULL,1,'2025-11-09 08:35:52'),(19,1,'Noodles','',2.00,'Main Course',NULL,1,'2025-11-13 03:41:43'),(20,1,'Rotiya','',5.00,'Main Course',NULL,1,'2025-11-16 10:18:28'),(21,24,'Spring water','Water',2.00,'Sides',NULL,1,'2025-12-28 04:07:03'),(22,24,'Sprite','Drink',2.50,'Beverages',NULL,1,'2025-12-28 04:07:38');

--
-- Table structure for table `merchant_stripe_accounts`
--

CREATE TABLE `merchant_stripe_accounts` (
  `id` int NOT NULL AUTO_INCREMENT,
  `user_id` int NOT NULL,
  `restaurant_id` int NOT NULL,
  `stripe_account_id` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL,
  `stripe_publishable_key` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL,
  `stripe_secret_key` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL,
  `email` varchar(255) COLLATE utf8mb4_general_ci DEFAULT NULL,
  `is_connected` tinyint(1) DEFAULT '0',
  `charges_enabled` tinyint(1) DEFAULT '0',
  `payouts_enabled` tinyint(1) DEFAULT '0',
  `stripe_account_data` json DEFAULT NULL,
  `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  UNIQUE KEY `unique_user_restaurant` (`user_id`,`restaurant_id`),
  KEY `restaurant_id` (`restaurant_id`),
  KEY `stripe_account_id` (`stripe_account_id`),
  CONSTRAINT `merchant_stripe_accounts_ibfk_1` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE,
  CONSTRAINT `merchant_stripe_accounts_ibfk_2` FOREIGN KEY (`restaurant_id`) REFERENCES `restaurants` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Dumping data for table `merchant_stripe_accounts`
--

INSERT INTO `merchant_stripe_accounts` VALUES (1,1,1,'acct_f67a32207b1de9','pk_test_51R1sdLE4KfYmn4w42S8f1W9jP1DEqdQ9gLR2g0kkNr1XqhdM5tofOd8HylmmuHSa7oU3jJ1dGBoy398kxFqwJOR800eBidMYI0','sk_test_51R1sdLE4KfYmn4w4XTBa3OZ337uac16fJ54aZuCuN1OmiRDZyEEzyjHpAR5NGZz5d43jVNTVfoukIVM2F76bEg7d002FqgPRCl','nafok70175@eubonus.com',1,1,1,NULL,'2026-01-10 16:33:44','2026-01-12 06:03:39'),(2,25,24,'acct_98c4d90c131a1e','pk_test_51R1sdLE4KfYmn4w42S8f1W9jP1DEqdQ9gLR2g0kkNr1XqhdM5tofOd8HylmmuHSa7oU3jJ1dGBoy398kxFqwJOR800eBidMYI0','sk_test_51R1sdLE4KfYmn4w4XTBa3OZ337uac16fJ54aZuCuN1OmiRDZyEEzyjHpAR5NGZz5d43jVNTVfoukIVM2F76bEg7d002FqgPRCl','sanmi980wago@gmail.com',1,1,1,NULL,'2026-01-13 02:10:30','2026-01-13 02:10:30');

--
-- Table structure for table `order_items`
--

CREATE TABLE `order_items` (
  `id` int NOT NULL AUTO_INCREMENT,
  `order_id` int NOT NULL,
  `menu_item_id` int NOT NULL,
  `quantity` int NOT NULL,
  `price` decimal(10,2) NOT NULL,
  PRIMARY KEY (`id`),
  KEY `order_id` (`order_id`),
  KEY `menu_item_id` (`menu_item_id`),
  CONSTRAINT `order_items_ibfk_1` FOREIGN KEY (`order_id`) REFERENCES `orders` (`id`) ON DELETE CASCADE,
  CONSTRAINT `order_items_ibfk_2` FOREIGN KEY (`menu_item_id`) REFERENCES `menu_items` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=91 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Dumping data for table `order_items`
--

INSERT INTO `order_items` VALUES (7,7,17,1,13.99),(8,8,2,1,2.00),(9,9,2,1,2.00),(10,10,2,1,2.00),(11,11,2,1,2.00),(12,12,2,1,2.00),(13,13,17,1,13.99),(14,14,2,1,2.00),(15,15,2,1,2.00),(16,16,2,1,2.00),(17,17,15,1,1.00),(18,18,5,1,5.99),(19,19,15,1,1.00),(20,20,15,1,1.00),(21,21,15,1,1.00),(22,22,15,1,1.00),(23,23,15,1,1.00),(24,24,5,1,5.99),(25,25,19,1,2.00),(26,26,17,2,13.99),(27,27,20,1,5.00),(28,28,19,1,2.00),(29,29,15,1,1.00),(30,30,20,1,5.00),(31,31,17,1,13.99),(32,32,18,1,10.00),(33,33,17,1,13.99),(34,34,18,1,10.00),(35,35,8,1,4.99),(36,36,8,1,4.99),(37,37,5,1,5.99),(38,38,5,1,5.99),(39,39,16,1,9.00),(40,40,16,1,9.00),(41,41,16,1,9.00),(42,42,16,1,9.00),(43,43,11,1,6.99),(44,44,11,1,6.99),(45,45,11,1,6.99),(46,46,11,1,6.99),(47,47,9,1,13.99),(48,48,9,1,13.99),(49,49,9,1,13.99),(50,50,8,1,4.99),(51,51,11,1,6.99),(52,52,11,1,6.99),(53,53,11,1,6.99),(54,54,11,1,6.99),(55,55,11,1,6.99),(56,56,11,1,6.99),(57,57,9,1,13.99),(58,58,9,1,13.99),(59,59,9,1,13.99),(60,60,9,1,13.99),(61,61,11,1,6.99),(62,62,16,1,9.00),(63,63,12,1,11.99),(64,64,21,1,2.00),(65,65,22,2,2.50),(66,66,22,1,2.50),(67,67,22,1,2.50),(68,68,22,1,2.50),(69,69,21,1,2.00),(70,70,21,1,2.00),(71,71,15,1,1.00),(72,72,20,1,5.00),(73,73,22,1,2.50),(74,74,2,1,2.00),(75,75,2,1,2.00),(76,76,21,1,2.00),(77,77,15,1,1.00),(78,78,15,1,1.00),(79,79,11,1,6.99),(80,80,11,1,6.99),(81,81,11,1,6.99),(82,82,11,1,6.99),(83,83,2,1,2.00),(84,84,11,1,6.99),(85,85,11,1,6.99),(86,86,22,1,2.50),(87,87,2,1,2.00),(88,88,2,1,2.00),(89,89,15,1,1.00),(90,89,20,1,5.00);

--
-- Table structure for table `orders`
--

CREATE TABLE `orders` (
  `id` int NOT NULL AUTO_INCREMENT,
  `customer_id` int NOT NULL,
  `restaurant_id` int NOT NULL,
  `delivery_person_id` int DEFAULT NULL,
  `total_amount` decimal(10,2) NOT NULL,
  `delivery_address` text COLLATE utf8mb4_general_ci NOT NULL,
  `status` enum('pending','confirmed','preparing','ready_for_pickup','picked_up','on_the_way','delivered','cancelled','missed') COLLATE utf8mb4_general_ci DEFAULT 'pending',
  `delivery_fee` decimal(10,2) DEFAULT '0.00',
  `instructions` text COLLATE utf8mb4_general_ci,
  `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `subtotal` decimal(10,2) DEFAULT '0.00',
  `tax_amount` decimal(10,2) DEFAULT '0.00',
  `tax_rate` decimal(5,4) DEFAULT '0.0888',
  `delivery_distance` decimal(5,2) DEFAULT NULL,
  `delivery_proof_image` varchar(500) COLLATE utf8mb4_general_ci DEFAULT NULL,
  `payment_status` enum('pending','paid','failed','refunded') COLLATE utf8mb4_general_ci DEFAULT 'pending',
  `payment_intent_id` varchar(255) COLLATE utf8mb4_general_ci DEFAULT NULL,
  `invoice_number` varchar(50) COLLATE utf8mb4_general_ci DEFAULT NULL,
  `order_no` varchar(50) COLLATE utf8mb4_general_ci DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `customer_id` (`customer_id`),
  KEY `restaurant_id` (`restaurant_id`),
  KEY `delivery_person_id` (`delivery_person_id`),
  KEY `idx_payment_intent` (`payment_intent_id`),
  KEY `idx_payment_status` (`payment_status`),
  CONSTRAINT `orders_ibfk_1` FOREIGN KEY (`customer_id`) REFERENCES `users` (`id`),
  CONSTRAINT `orders_ibfk_2` FOREIGN KEY (`restaurant_id`) REFERENCES `restaurants` (`id`),
  CONSTRAINT `orders_ibfk_3` FOREIGN KEY (`delivery_person_id`) REFERENCES `delivery_persons` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=90 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Dumping data for table `orders`
--

INSERT INTO `orders` VALUES (7,21,23,2,16.98,'10013, Manhattan, New York County, New York, United States','delivered',2.99,'','2025-11-06 04:22:45','2026-01-21 16:16:26',0.00,0.00,0.0888,1.00,NULL,'pending',NULL,'INV-7','ORD-7'),(8,11,1,1,5.17,'Pakistan','delivered',2.99,'','2025-11-07 04:37:28','2026-01-21 16:16:26',2.00,0.18,0.0888,6.50,NULL,'pending',NULL,'INV-8','ORD-8'),(9,11,1,1,5.17,'Pakistan','delivered',2.99,'','2025-11-07 08:01:27','2026-01-21 16:16:26',2.00,0.18,0.0888,6.50,NULL,'pending',NULL,'INV-9','ORD-9'),(10,11,1,1,5.17,'Pakistan','delivered',2.99,'','2025-11-07 14:51:58','2026-01-21 16:16:26',2.00,0.18,0.0888,6.50,NULL,'pending',NULL,'INV-10','ORD-10'),(11,11,1,1,5.17,'Pakistan','delivered',2.99,'','2025-11-09 02:15:28','2026-01-21 16:16:26',2.00,0.18,0.0888,6.50,NULL,'pending',NULL,'INV-11','ORD-11'),(12,11,1,1,5.17,'Pakistan','delivered',2.99,'','2025-11-09 06:32:51','2026-01-21 16:16:26',2.00,0.18,0.0888,6.50,NULL,'pending',NULL,'INV-12','ORD-12'),(13,21,23,2,18.22,'10013, Manhattan, New York County, New York, United States','delivered',2.99,'','2025-11-09 08:12:53','2026-01-21 16:16:26',13.99,1.24,0.0888,1.00,NULL,'pending',NULL,'INV-13','ORD-13'),(14,11,1,1,5.17,'Pakistan','delivered',2.99,'','2025-11-10 17:20:13','2026-01-21 16:16:26',2.00,0.18,0.0888,6.50,NULL,'pending',NULL,'INV-14','ORD-14'),(15,11,1,1,5.17,'Pakistan','delivered',2.99,'','2025-11-10 17:51:19','2026-01-21 16:16:26',2.00,0.18,0.0888,6.50,NULL,'pending',NULL,'INV-15','ORD-15'),(16,11,1,1,5.17,'Pakistan','delivered',2.99,'','2025-11-11 03:43:51','2026-01-21 16:16:26',2.00,0.18,0.0888,6.50,NULL,'pending',NULL,'INV-16','ORD-16'),(17,11,1,1,4.08,'Pakistan','delivered',2.99,'','2025-11-11 08:18:23','2026-01-21 16:16:26',1.00,0.09,0.0888,6.50,NULL,'pending',NULL,'INV-17','ORD-17'),(18,11,1,1,9.51,'Pakistan','delivered',2.99,'','2025-11-11 08:23:34','2026-01-21 16:16:26',5.99,0.53,0.0888,6.50,NULL,'pending',NULL,'INV-18','ORD-18'),(19,11,1,1,4.08,'pakistan','delivered',2.99,'','2025-11-12 15:50:50','2026-01-21 16:16:26',1.00,0.09,0.0888,5.90,NULL,'pending',NULL,'INV-19','ORD-19'),(20,11,1,NULL,4.08,'pakistan','cancelled',2.99,'','2025-11-12 15:52:01','2026-01-21 16:16:26',1.00,0.09,0.0888,5.90,NULL,'pending',NULL,'INV-20','ORD-20'),(21,11,1,NULL,4.08,'Pakistan','missed',2.99,'','2025-11-12 16:09:27','2026-02-19 03:47:50',1.00,0.09,0.0888,6.50,NULL,'pending',NULL,'INV-21','ORD-21'),(22,11,1,NULL,4.08,'multan','missed',2.99,'','2025-11-12 16:36:58','2026-02-19 03:47:50',1.00,0.09,0.0888,5.50,NULL,'pending',NULL,'INV-22','ORD-22'),(23,11,1,NULL,4.08,'paistan','missed',2.99,'','2025-11-12 16:52:37','2026-02-19 03:47:50',1.00,0.09,0.0888,1.20,NULL,'pending',NULL,'INV-23','ORD-23'),(24,11,1,NULL,9.51,'Pakistan','ready_for_pickup',2.99,'','2025-11-12 17:12:03','2026-02-19 03:56:25',5.99,0.53,0.0888,6.50,NULL,'pending',NULL,'INV-24','ORD-24'),(25,11,1,1,5.17,'Pakistan','on_the_way',2.99,'','2025-11-13 07:05:39','2026-01-21 16:16:26',2.00,0.18,0.0888,6.50,NULL,'pending',NULL,'INV-25','ORD-25'),(26,21,23,2,33.45,'62 william street, new york, ny 10005','delivered',2.99,'','2025-11-14 03:34:12','2026-01-21 16:16:26',27.98,2.48,0.0888,7.00,NULL,'pending',NULL,'INV-26','ORD-26'),(27,11,1,NULL,8.43,'Pakistan','missed',2.99,'','2025-11-16 12:07:46','2026-02-19 03:47:50',5.00,0.44,0.0888,6.50,NULL,'pending',NULL,'INV-27','ORD-27'),(28,11,1,NULL,5.17,'Pakistan','missed',2.99,'','2025-11-16 12:20:14','2026-02-19 03:47:50',2.00,0.18,0.0888,6.50,NULL,'pending',NULL,'INV-28','ORD-28'),(29,11,1,NULL,4.08,'Pakistan','missed',2.99,'','2025-11-16 12:57:13','2026-02-19 03:47:50',1.00,0.09,0.0888,6.50,NULL,'pending',NULL,'INV-29','ORD-29'),(30,11,1,NULL,8.43,'Pakistan','missed',2.99,'','2025-11-16 14:22:42','2026-02-19 03:47:50',5.00,0.44,0.0888,6.50,NULL,'pending',NULL,'INV-30','ORD-30'),(31,11,23,2,18.22,'62 William st, New York, ny','delivered',2.99,'','2025-11-17 00:25:12','2026-01-21 16:16:26',13.99,1.24,0.0888,3.50,NULL,'pending',NULL,'INV-31','ORD-31'),(32,21,23,NULL,13.88,'10013, Manhattan, New York County, New York, United States','pending',2.99,'','2025-11-17 03:21:39','2026-01-21 16:16:26',10.00,0.89,0.0888,1.00,NULL,'pending',NULL,'INV-32','ORD-32'),(33,24,23,NULL,18.22,'10013, Manhattan, New York County, New York, United States','pending',2.99,'','2025-11-18 03:01:46','2026-01-21 16:16:26',13.99,1.24,0.0888,1.00,NULL,'pending',NULL,'INV-33','ORD-33'),(34,24,23,NULL,13.88,'10013, Manhattan, New York County, New York, United States','pending',2.99,'','2025-11-18 03:11:31','2026-01-21 16:16:26',10.00,0.89,0.0888,1.00,NULL,'pending',NULL,'INV-34','ORD-34'),(35,11,2,NULL,7.42,'Pakistan','pending',1.99,'','2025-11-19 08:50:22','2026-01-21 16:16:26',4.99,0.44,0.0888,5.50,NULL,'pending',NULL,'INV-35','ORD-35'),(36,11,2,NULL,7.42,'Pakistan','pending',1.99,'','2025-11-20 07:20:16','2026-01-21 16:16:26',4.99,0.44,0.0888,5.50,NULL,'pending',NULL,'INV-36','ORD-36'),(37,11,1,NULL,9.51,'Vehari, Pakistan','missed',2.99,'','2025-11-20 18:18:21','2026-02-19 03:47:50',5.99,0.53,0.0888,1.40,NULL,'pending',NULL,'INV-37','ORD-37'),(38,11,1,NULL,9.51,'Vehari, Pakistan','missed',2.99,'','2025-11-20 18:18:28','2026-02-19 03:47:50',5.99,0.53,0.0888,1.40,NULL,'pending',NULL,'INV-38','ORD-38'),(39,11,22,NULL,29.80,'Pakistan','pending',20.00,'','2025-11-20 18:39:55','2026-01-21 16:16:26',9.00,0.80,0.0888,6.40,NULL,'pending',NULL,'INV-39','ORD-39'),(40,11,22,NULL,29.80,'Pakistan','pending',20.00,'','2025-11-20 18:40:10','2026-01-21 16:16:26',9.00,0.80,0.0888,6.40,NULL,'pending',NULL,'INV-40','ORD-40'),(41,11,22,NULL,29.80,'Pakistan','pending',20.00,'','2025-11-20 18:40:19','2026-01-21 16:16:26',9.00,0.80,0.0888,6.40,NULL,'pending',NULL,'INV-41','ORD-41'),(42,11,22,NULL,29.80,'Pakistan','pending',20.00,'','2025-11-20 18:41:40','2026-01-21 16:16:26',9.00,0.80,0.0888,6.40,NULL,'pending',NULL,'INV-42','ORD-42'),(43,11,3,NULL,11.60,'Pakistan','pending',3.99,'','2025-11-20 18:49:49','2026-01-21 16:16:26',6.99,0.62,0.0888,5.80,NULL,'pending',NULL,'INV-43','ORD-43'),(44,11,3,NULL,11.60,'Pakistan','pending',3.99,'','2025-11-20 18:49:55','2026-01-21 16:16:26',6.99,0.62,0.0888,5.80,NULL,'pending',NULL,'INV-44','ORD-44'),(45,11,3,NULL,11.60,'PAk','pending',3.99,'','2025-11-20 19:11:24','2026-01-21 16:16:26',6.99,0.62,0.0888,2.80,NULL,'pending',NULL,'INV-45','ORD-45'),(46,11,3,NULL,11.60,'c','pending',3.99,'','2025-11-20 19:30:21','2026-01-21 16:16:26',6.99,0.62,0.0888,4.30,NULL,'pending',NULL,'INV-46','ORD-46'),(47,11,3,NULL,19.22,'g','pending',3.99,'','2025-11-20 19:37:24','2026-01-21 16:16:26',13.99,1.24,0.0888,7.70,NULL,'pending',NULL,'INV-47','ORD-47'),(48,11,3,NULL,19.22,'l','pending',3.99,'','2025-11-20 20:10:11','2026-01-21 16:16:26',13.99,1.24,0.0888,3.90,NULL,'pending',NULL,'INV-48','ORD-48'),(49,11,3,NULL,19.22,'l','pending',3.99,'','2025-11-20 20:10:22','2026-01-21 16:16:26',13.99,1.24,0.0888,3.90,NULL,'pending',NULL,'INV-49','ORD-49'),(50,11,2,NULL,7.42,'k','pending',1.99,'','2025-11-20 21:12:44','2026-01-21 16:16:26',4.99,0.44,0.0888,0.90,NULL,'pending',NULL,'INV-50','ORD-50'),(51,11,3,NULL,11.60,'p','pending',3.99,'','2025-11-20 21:22:19','2026-01-21 16:16:26',6.99,0.62,0.0888,7.40,NULL,'pending',NULL,'INV-51','ORD-51'),(52,11,3,NULL,11.60,'p','pending',3.99,'','2025-11-20 21:22:28','2026-01-21 16:16:26',6.99,0.62,0.0888,7.40,NULL,'pending',NULL,'INV-52','ORD-52'),(53,11,3,NULL,11.60,'l','pending',3.99,'','2025-11-20 21:27:05','2026-01-21 16:16:26',6.99,0.62,0.0888,3.90,NULL,'pending',NULL,'INV-53','ORD-53'),(54,11,3,NULL,11.60,'l','pending',3.99,'','2025-11-20 21:27:28','2026-01-21 16:16:26',6.99,0.62,0.0888,3.90,NULL,'pending',NULL,'INV-54','ORD-54'),(55,11,3,NULL,11.60,'k','pending',3.99,'','2025-11-20 21:52:23','2026-01-21 16:16:26',6.99,0.62,0.0888,2.70,NULL,'pending',NULL,'INV-55','ORD-55'),(56,11,3,NULL,11.60,'k','pending',3.99,'','2025-11-20 21:58:22','2026-01-21 16:16:26',6.99,0.62,0.0888,2.70,NULL,'pending',NULL,'INV-56','ORD-56'),(57,11,3,NULL,19.22,'o','pending',3.99,'','2025-11-20 22:03:56','2026-01-21 16:16:26',13.99,1.24,0.0888,3.30,NULL,'pending',NULL,'INV-57','ORD-57'),(58,11,3,NULL,19.22,'o','pending',3.99,'','2025-11-20 22:04:12','2026-01-21 16:16:26',13.99,1.24,0.0888,3.30,NULL,'pending',NULL,'INV-58','ORD-58'),(59,11,3,NULL,19.22,'o','pending',3.99,'','2025-11-20 22:31:36','2026-01-21 16:16:26',13.99,1.24,0.0888,3.30,NULL,'pending',NULL,'INV-59','ORD-59'),(60,11,3,NULL,19.22,'o','pending',3.99,'','2025-11-20 22:31:43','2026-01-21 16:16:26',13.99,1.24,0.0888,3.30,NULL,'pending',NULL,'INV-60','ORD-60'),(61,11,3,NULL,11.60,'m','pending',3.99,'','2025-11-21 05:20:40','2026-01-21 16:16:26',6.99,0.62,0.0888,3.00,NULL,'pending',NULL,'INV-61','ORD-61'),(62,11,22,NULL,29.80,'Pakistan','pending',20.00,'','2025-11-21 06:02:51','2026-01-21 16:16:26',9.00,0.80,0.0888,6.40,NULL,'pending',NULL,'INV-62','ORD-62'),(63,11,4,NULL,16.04,'Pakistan','pending',2.99,'','2025-11-21 06:03:25','2026-01-21 16:16:26',11.99,1.06,0.0888,5.20,NULL,'pending',NULL,'INV-63','ORD-63'),(64,11,24,3,4.18,'265 Canal St., STE 304, New york, NY 10013','delivered',2.00,'','2025-12-28 05:47:37','2026-01-21 16:16:26',2.00,0.18,0.0888,6.80,NULL,'pending',NULL,'INV-64','ORD-64'),(65,26,24,NULL,7.44,'265 Canal St., STE 304, New york, NY 10013','pending',2.00,'','2025-12-30 01:51:13','2026-01-21 16:16:26',5.00,0.44,0.0888,NULL,NULL,'pending',NULL,'INV-65','ORD-65'),(66,11,24,NULL,4.72,'265 Canal St., STE 304, New york, NY 10013','pending',2.00,'','2025-12-30 01:58:31','2026-01-21 16:16:26',2.50,0.22,0.0888,0.00,NULL,'pending',NULL,'INV-66','ORD-66'),(67,11,24,NULL,4.72,'10013 new York','pending',2.00,'','2026-01-13 02:21:56','2026-01-21 16:16:26',2.50,0.22,0.0888,0.00,NULL,'pending',NULL,'INV-67','ORD-67'),(68,26,24,NULL,4.72,'265 Canal St., STE 304, New york, NY 10013','pending',2.00,'','2026-01-13 02:25:42','2026-01-21 16:16:26',2.50,0.22,0.0888,NULL,NULL,'pending',NULL,'INV-68','ORD-68'),(69,11,24,NULL,4.18,'10013 NYC','pending',2.00,'','2026-01-15 02:33:44','2026-01-27 01:39:19',2.00,0.18,0.0888,0.00,NULL,'pending',NULL,'INV-69','ORD-69'),(70,11,24,NULL,4.18,'10013','pending',2.00,'','2026-01-15 02:40:24','2026-01-27 01:39:14',2.00,0.18,0.0888,0.00,NULL,'pending',NULL,'INV-70','ORD-70'),(71,11,1,NULL,4.08,'Pakistan','missed',2.99,'','2026-01-20 05:54:41','2026-02-19 03:47:50',1.00,0.09,0.0888,5.20,NULL,'pending',NULL,'INV-71','ORD-71'),(72,11,1,NULL,8.43,'Pakistan','missed',2.99,'','2026-01-20 06:24:37','2026-02-19 03:47:50',5.00,0.44,0.0888,6.20,NULL,'pending',NULL,'INV-72','ORD-72'),(73,11,24,NULL,4.72,'10013 new York','pending',2.00,'','2026-01-27 01:28:28','2026-01-27 01:39:08',2.50,0.22,0.0888,0.00,NULL,'pending',NULL,NULL,NULL),(74,11,1,NULL,5.17,'Pakistan','missed',2.99,'','2026-01-30 21:14:51','2026-02-19 03:47:50',2.00,0.18,0.0888,9.40,NULL,'pending',NULL,NULL,NULL),(75,11,1,NULL,5.17,'Pakistan','missed',2.99,'','2026-01-30 21:15:28','2026-02-19 03:47:50',2.00,0.18,0.0888,1.50,NULL,'pending',NULL,NULL,NULL),(76,26,24,NULL,4.18,'265 Canal St., STE 304, New york, NY 10013','pending',2.00,'','2026-02-03 22:55:12','2026-02-03 22:55:12',2.00,0.18,0.0888,NULL,NULL,'pending',NULL,NULL,NULL),(77,11,1,NULL,4.08,'Pakistan','missed',2.99,'','2026-02-10 06:21:04','2026-02-19 03:47:50',1.00,0.09,0.0888,1.30,NULL,'pending',NULL,NULL,NULL),(78,11,1,NULL,4.08,'Pakistan','missed',2.99,'','2026-02-10 06:21:12','2026-02-19 03:47:50',1.00,0.09,0.0888,5.70,NULL,'pending',NULL,NULL,NULL),(79,11,3,NULL,11.60,'Pakistan','pending',3.99,'','2026-02-10 06:27:09','2026-02-10 06:33:51',6.99,0.62,0.0888,0.00,NULL,'pending',NULL,NULL,NULL),(80,11,3,NULL,11.60,'Pakistan','pending',3.99,'','2026-02-10 06:34:16','2026-02-10 06:38:14',6.99,0.62,0.0888,0.00,NULL,'pending',NULL,NULL,NULL),(81,11,3,NULL,11.60,'Pakistan','pending',3.99,'','2026-02-10 06:34:23','2026-02-10 06:38:12',6.99,0.62,0.0888,0.00,NULL,'pending',NULL,NULL,NULL),(82,11,3,NULL,11.60,'Pakistan','pending',3.99,'','2026-02-10 06:38:00','2026-02-10 06:38:10',6.99,0.62,0.0888,0.00,NULL,'pending',NULL,NULL,NULL),(83,11,1,NULL,5.17,'Pakistan','missed',2.99,'','2026-02-10 06:46:00','2026-02-19 03:47:50',2.00,0.18,0.0888,6.90,NULL,'pending',NULL,NULL,NULL),(84,11,3,NULL,11.60,'Pakistan','pending',3.99,'','2026-02-10 07:14:46','2026-02-10 07:15:05',6.99,0.62,0.0888,0.00,NULL,'pending',NULL,NULL,NULL),(85,11,3,NULL,11.60,'Pakistan','pending',3.99,'','2026-02-10 07:14:54','2026-02-10 07:15:03',6.99,0.62,0.0888,0.00,NULL,'pending',NULL,NULL,NULL),(86,11,24,NULL,4.72,'10013 byc','pending',2.00,'','2026-02-12 01:33:46','2026-02-12 01:33:46',2.50,0.22,0.0888,NULL,NULL,'pending',NULL,NULL,NULL),(87,11,1,NULL,5.17,'Pakistan','missed',2.99,'','2026-02-12 02:05:30','2026-02-19 03:47:50',2.00,0.18,0.0888,5.40,NULL,'pending',NULL,NULL,NULL),(88,11,1,NULL,5.17,'Pakistan','missed',2.99,'','2026-02-14 03:42:42','2026-02-19 03:47:50',2.00,0.18,0.0888,6.40,NULL,'pending',NULL,NULL,NULL),(89,11,1,NULL,9.52,'Pakistan','missed',2.99,'','2026-02-14 03:48:07','2026-02-19 03:47:50',6.00,0.53,0.0888,4.40,NULL,'pending',NULL,NULL,NULL);

--
-- Table structure for table `payments`
--

CREATE TABLE `payments` (
  `id` int NOT NULL AUTO_INCREMENT,
  `order_id` int NOT NULL,
  `payment_intent_id` varchar(255) NOT NULL,
  `amount` decimal(10,2) NOT NULL,
  `currency` varchar(10) DEFAULT 'usd',
  `payment_method` varchar(50) DEFAULT 'card',
  `wallet_type` varchar(50) DEFAULT NULL,
  `status` enum('pending','succeeded','failed','refunded') DEFAULT 'pending',
  `refund_id` varchar(255) DEFAULT NULL,
  `customer_id` int DEFAULT NULL,
  `customer_email` varchar(255) DEFAULT NULL,
  `stripe_response` text,
  `failure_reason` text,
  `express_payment_data` json DEFAULT NULL,
  `created_at` datetime DEFAULT NULL,
  `updated_at` datetime DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `payment_intent_id` (`payment_intent_id`),
  UNIQUE KEY `payment_intent_id_2` (`payment_intent_id`),
  KEY `idx_order_id` (`order_id`),
  KEY `idx_payment_intent_id` (`payment_intent_id`),
  KEY `idx_customer_id` (`customer_id`),
  KEY `idx_status` (`status`),
  KEY `idx_payments_customer_id` (`customer_id`),
  KEY `idx_payments_created_at` (`created_at`),
  KEY `idx_payments_status` (`status`),
  KEY `idx_payments_payment_method` (`payment_method`)
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;

--
-- Dumping data for table `payments`
--

INSERT INTO `payments` VALUES (1,999,'pi_3SU4VKE4KfYmn4w40PJBTaiL',29.99,'usd','card',NULL,'pending',NULL,11,NULL,NULL,NULL,NULL,'2025-11-16 06:52:26',NULL),(2,28,'pi_3SU4wEE4KfYmn4w416Euy49Q',5.17,'usd','card',NULL,'pending',NULL,11,NULL,NULL,NULL,NULL,'2025-11-16 07:20:15',NULL),(3,0,'pi_3SV73UE4KfYmn4w41gS160Np',25.99,'usd','card',NULL,'pending',NULL,NULL,NULL,NULL,NULL,NULL,'2025-11-19 03:48:00',NULL);

--
-- Table structure for table `refunds`
--

CREATE TABLE `refunds` (
  `id` int NOT NULL AUTO_INCREMENT,
  `payment_intent_id` varchar(255) NOT NULL,
  `refund_id` varchar(255) NOT NULL,
  `amount` decimal(10,2) NOT NULL,
  `reason` text,
  `status` enum('pending','succeeded','failed') DEFAULT 'pending',
  `created_at` timestamp NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_at` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  KEY `idx_refund_payment_intent` (`payment_intent_id`),
  KEY `idx_refund_id` (`refund_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;

--
-- Dumping data for table `refunds`
--


--
-- Table structure for table `restaurants`
--

CREATE TABLE `restaurants` (
  `id` int NOT NULL AUTO_INCREMENT,
  `name` varchar(255) COLLATE utf8mb4_general_ci NOT NULL,
  `description` text COLLATE utf8mb4_general_ci,
  `address` varchar(500) COLLATE utf8mb4_general_ci DEFAULT NULL,
  `city` varchar(100) COLLATE utf8mb4_general_ci DEFAULT NULL,
  `state` varchar(100) COLLATE utf8mb4_general_ci DEFAULT NULL,
  `zip_code` varchar(20) COLLATE utf8mb4_general_ci DEFAULT NULL,
  `cuisine_type` varchar(100) COLLATE utf8mb4_general_ci DEFAULT NULL,
  `delivery_time` varchar(50) COLLATE utf8mb4_general_ci DEFAULT NULL,
  `distance` varchar(50) COLLATE utf8mb4_general_ci DEFAULT NULL,
  `rating` decimal(3,2) DEFAULT NULL,
  `review_count` int DEFAULT '0',
  `delivery_fee` decimal(10,2) DEFAULT NULL,
  `image_url` varchar(500) COLLATE utf8mb4_general_ci DEFAULT NULL,
  `featured` tinyint(1) DEFAULT '0',
  `is_active` tinyint(1) DEFAULT '1',
  `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=25 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Dumping data for table `restaurants`
--

INSERT INTO `restaurants` VALUES (1,'AB Burger Palace','Best burgers in town with fresh ingredients','123 Main Street','New York','NY','10001','Japanese','20-30 min','1.2 mi',4.50,128,2.99,NULL,1,1,'2025-10-24 17:20:31'),(2,'Pizza Heaven','Authentic Italian pizzas made with love','456 Pizza Avenue','New York','NY','10002','Italian • Pizza','25-35 min','0.8 mi',4.70,256,1.99,NULL,1,1,'2025-10-24 17:20:31'),(3,'Sushi Master','Fresh sushi and Japanese cuisine','789 Sushi Lane','Los Angeles','CA','90001','Japanese • Sushi','30-40 min','2.1 mi',4.80,189,3.99,NULL,0,1,'2025-10-24 17:20:31'),(4,'Bonash','q','321 Burger Road','Chicago','IL','60601','American','20-30 min',NULL,4.50,0,2.99,NULL,0,1,'2025-10-31 03:52:45'),(5,'Bonash1','q','123 Main Street','New York','NY','10001','American','20-30 min',NULL,4.50,0,2.99,NULL,0,1,'2025-10-31 03:53:07'),(6,'Burger Palaces','','456 Pizza Avenue','New York','NY','10002','American','20-30 min',NULL,4.50,0,2.99,NULL,0,1,'2025-10-31 04:56:50'),(7,'Pizza Palace','Best New York style pizza in town','789 Sushi Lane','Los Angeles','CA','90001','Italian • Pizza','20-30 min',NULL,4.60,189,1.99,NULL,0,1,'2025-11-04 02:50:05'),(8,'Taco Fiesta','Authentic Mexican street food','321 Burger Road','Chicago','IL','60601','Mexican • Tacos','15-25 min',NULL,4.40,95,2.49,NULL,0,1,'2025-11-04 02:50:05'),(9,'Dragon Wok','Fresh Chinese cuisine made to order','555 Taco Street','New York','NY','10003','Chinese • Asian','25-35 min',NULL,4.70,156,2.99,NULL,0,1,'2025-11-04 02:50:05'),(10,'Burger Barn','Gourmet burgers and crispy fries','777 Curry Lane','New York','NY','10004','American • Burgers','18-28 min',NULL,4.50,203,1.99,NULL,0,1,'2025-11-04 02:50:05'),(11,'Sushi Zen','Traditional Japanese sushi and rolls','123 Main Street','New York','NY','10001','Japanese • Sushi','30-40 min',NULL,4.80,178,3.49,NULL,0,1,'2025-11-04 02:50:05'),(12,'Curry House','Authentic Indian curries and biryanis','456 Pizza Avenue','New York','NY','10002','Indian • Curry','25-35 min',NULL,4.60,124,2.99,NULL,0,1,'2025-11-04 02:50:05'),(13,'Mediterranean Grill','Healthy Mediterranean bowls and wraps','789 Sushi Lane','Los Angeles','CA','90001','Mediterranean • Healthy','20-30 min',NULL,4.70,88,2.49,NULL,0,1,'2025-11-04 02:50:05'),(18,'Shan','','Pakistan','Multan','VEHARI','10000','American','20-30 min',NULL,4.50,0,2.99,NULL,0,1,'2025-11-05 10:51:28'),(19,'Burger Palaces','','Pakistan','Multan','VE','10000','American','20-30 min',NULL,4.50,0,2.99,NULL,0,1,'2025-11-05 11:01:17'),(20,'Shan','','Pakistan','Multan','VE','10000','French','15-25 min',NULL,4.50,0,20.00,NULL,0,1,'2025-11-05 11:18:37'),(21,'Shan','','Pakistan','Multan','AK','10000','French','15-25 min',NULL,4.50,0,29.00,NULL,0,1,'2025-11-05 11:20:20'),(22,'Shan','','Pakistan','Multan','AZ','10000','French','15-25 min',NULL,4.50,0,20.00,NULL,0,1,'2025-11-05 11:27:38'),(23,'mypizzahut','mypizzahut','321 Burger Road','Chicago','IL','60601','Italian','20-30 min',NULL,4.50,0,2.99,NULL,0,1,'2025-11-06 02:10:26'),(24,'Sunmi (test)','Chinese','5th avenue','New york','Ny','10013','Chinese','15-25 min',NULL,4.50,0,2.00,NULL,0,1,'2025-12-28 04:03:16');

--
-- Table structure for table `stripe_otps`
--

CREATE TABLE `stripe_otps` (
  `id` int NOT NULL AUTO_INCREMENT,
  `email` varchar(255) NOT NULL,
  `otp` varchar(6) NOT NULL,
  `restaurant_id` int NOT NULL,
  `user_id` int NOT NULL,
  `expires_at` datetime NOT NULL,
  `created_at` timestamp NULL DEFAULT CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  UNIQUE KEY `unique_email_restaurant` (`email`,`restaurant_id`,`user_id`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;

--
-- Dumping data for table `stripe_otps`
--

INSERT INTO `stripe_otps` VALUES (1,'nafok70175@eubonus.com','300131',1,1,'2026-01-10 11:44:15','2026-01-10 16:34:15'),(2,'sanmi980wago@gmail.com','793801',24,25,'2026-01-12 21:19:41','2026-01-13 02:09:41');

--
-- Table structure for table `user_restaurants`
--

CREATE TABLE `user_restaurants` (
  `id` int NOT NULL AUTO_INCREMENT,
  `user_id` int NOT NULL,
  `restaurant_id` int NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `is_owner` tinyint(1) DEFAULT '1',
  PRIMARY KEY (`id`),
  UNIQUE KEY `unique_user_restaurant` (`user_id`,`restaurant_id`),
  KEY `restaurant_id` (`restaurant_id`),
  CONSTRAINT `user_restaurants_ibfk_1` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE,
  CONSTRAINT `user_restaurants_ibfk_2` FOREIGN KEY (`restaurant_id`) REFERENCES `restaurants` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=29 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Dumping data for table `user_restaurants`
--

INSERT INTO `user_restaurants` VALUES (1,6,1,'2025-10-31 04:28:31',1),(2,6,2,'2025-10-31 04:28:31',1),(3,6,3,'2025-10-31 04:28:31',1),(4,6,4,'2025-10-31 04:28:31',1),(5,6,5,'2025-10-31 04:28:31',1),(6,7,1,'2025-10-31 04:28:31',1),(7,7,2,'2025-10-31 04:28:31',1),(8,7,3,'2025-10-31 04:28:31',1),(9,7,4,'2025-10-31 04:28:31',1),(10,7,5,'2025-10-31 04:28:31',1),(26,20,22,'2025-11-05 11:27:38',1),(27,22,23,'2025-11-06 02:10:26',1),(28,25,24,'2025-12-28 04:03:16',1);

--
-- Table structure for table `users`
--

CREATE TABLE `users` (
  `id` int NOT NULL AUTO_INCREMENT,
  `email` varchar(255) COLLATE utf8mb4_general_ci NOT NULL,
  `password` varchar(255) COLLATE utf8mb4_general_ci NOT NULL,
  `full_name` varchar(255) COLLATE utf8mb4_general_ci NOT NULL,
  `phone` varchar(20) COLLATE utf8mb4_general_ci DEFAULT NULL,
  `address` text COLLATE utf8mb4_general_ci,
  `user_type` enum('customer','restaurant','delivery','admin') COLLATE utf8mb4_general_ci DEFAULT 'customer',
  `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `is_active` tinyint(1) DEFAULT '1',
  `last_login` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `email` (`email`)
) ENGINE=InnoDB AUTO_INCREMENT=28 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Dumping data for table `users`
--

INSERT INTO `users` VALUES (1,'admin@admin.com','1234567890','Admin User','1234567890',NULL,'admin','2025-10-24 16:09:09',1,'2025-12-28 05:28:42'),(2,'l@gmail.com','password.00','k','123456789',NULL,'customer','2025-10-24 16:11:38',1,'2025-10-24 17:57:23'),(3,'k@gmail.com','QWERTY','k','12345','multan','customer','2025-10-24 17:10:15',1,'2025-11-05 12:21:43'),(6,'bonash@gmail.com','bonash','Bonash','12345',NULL,'restaurant','2025-10-24 17:43:10',1,'2026-02-19 03:40:43'),(7,'aznali@gmail.com','bonash','Ali','123456',NULL,'restaurant','2025-10-31 03:52:45',1,'2025-11-09 03:28:14'),(9,'kofabi6652@magpit.com','qwerty','AZNASH','12434',NULL,'delivery','2025-11-03 11:16:40',1,'2025-11-03 11:51:19'),(10,'kofabi6652@magpit.co','qwerty','Azn','1234567',NULL,'delivery','2025-11-03 12:52:03',1,'2025-11-16 14:24:53'),(11,'s2@gmail.com','qwerty','AZNASH','12434','Pakistan','customer','2025-11-04 02:55:40',1,'2026-02-14 03:41:46'),(20,'shan1@gmail.com','qwerty','Ahmad','123456',NULL,'restaurant','2025-11-05 11:27:38',1,NULL),(21,'siusarboy@gmail.com','1234567890','mycustomer','4159387930','10013, Manhattan, New York County, New York, United States','customer','2025-11-06 02:08:51',1,'2025-11-18 03:18:00'),(22,'sanmiwagoinc@gmail.com','1234567890','mypizzahut','4159387930',NULL,'restaurant','2025-11-06 02:10:26',1,'2025-11-14 03:00:34'),(23,'siusarboy3@gmail.com','1234567890','mydriver','4159387930',NULL,'delivery','2025-11-06 02:12:25',1,'2025-11-14 03:46:14'),(24,'zumarh589@gmail.com','Abc123@*','Urwa','2139738862','10013, Manhattan, New York County, New York, United States','customer','2025-11-18 02:59:08',1,NULL),(25,'techavenzor@gmail.com','Abc123@*','Urwa','2139738862',NULL,'restaurant','2025-12-28 04:03:16',1,'2026-01-13 02:07:16'),(26,'acba2672@gmail.com','Abc123@*','Urwa','2139738862','265 Canal St., STE 304, New york, NY 10013','customer','2025-12-28 04:16:05',1,'2026-02-12 01:33:23'),(27,'undefinedsoul319@gmail.com','Abc123@*','Rider','2139738862',NULL,'delivery','2025-12-28 04:17:58',1,'2025-12-28 05:43:24');

--
-- Dumping events for database 'doordash'
--

--
-- Dumping routines for database 'doordash'
--

--
-- Current Database: `employee_performance_tracker`
--

CREATE DATABASE /*!32312 IF NOT EXISTS*/ `employee_performance_tracker` /*!40100 DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci */ /*!80016 DEFAULT ENCRYPTION='N' */;

USE `employee_performance_tracker`;

--
-- Table structure for table `assigned_tasks`
--

CREATE TABLE `assigned_tasks` (
  `id` int NOT NULL AUTO_INCREMENT,
  `staff_id` int DEFAULT NULL,
  `task_id` int DEFAULT NULL,
  `assigned_by` int DEFAULT NULL,
  `assigned_date` date DEFAULT NULL,
  `due_date` date DEFAULT NULL,
  `status` varchar(50) DEFAULT 'pending',
  `completed_date` date DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=63 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;

--
-- Dumping data for table `assigned_tasks`
--

INSERT INTO `assigned_tasks` VALUES (1,2,8,1,'2025-10-21','2025-10-22','pending',NULL,'2025-10-20 22:19:14'),(2,4,8,1,'2025-10-21','2025-10-22','pending',NULL,'2025-10-20 22:25:44'),(3,3,8,1,'2025-10-21','2025-10-21','pending',NULL,'2025-10-21 17:36:12'),(4,6,10,1,'2025-10-21','2025-10-21','pending',NULL,'2025-10-21 18:45:22'),(24,18,9,1,'2025-10-22','2025-10-22','completed','2025-10-22','2025-10-22 01:03:07'),(25,18,5,1,'2025-10-22','2025-10-23','pending',NULL,'2025-10-22 01:03:12'),(27,20,8,1,'2025-10-23','2025-10-24','completed','2025-10-23','2025-10-22 20:28:32'),(28,20,8,1,'2025-10-23','2025-10-24','completed','2025-10-23','2025-10-22 20:29:03'),(29,20,8,1,'2025-10-23','2025-10-24','completed','2025-10-23','2025-10-22 20:30:51'),(30,20,8,1,'2025-10-23','2025-10-24','completed','2025-10-23','2025-10-22 20:31:30'),(31,20,8,1,'2025-10-23','2025-10-24','completed','2025-10-23','2025-10-22 20:32:01'),(32,20,8,1,'2025-10-23','2025-10-24','completed','2025-10-23','2025-10-22 20:32:42'),(33,20,8,1,'2025-10-23','2025-10-24','completed','2025-10-23','2025-10-22 20:33:44'),(34,20,8,1,'2025-10-23','2025-10-24','completed','2025-10-23','2025-10-22 20:35:44'),(35,20,8,1,'2025-10-23','2025-10-24','completed','2025-10-23','2025-10-22 20:39:38'),(36,20,7,1,'2025-10-23','2025-10-24','completed','2025-10-23','2025-10-22 21:05:40'),(37,20,7,1,'2025-10-23','2025-10-24','completed','2025-10-23','2025-10-22 21:09:40'),(38,20,7,1,'2025-10-23','2025-10-24','pending',NULL,'2025-10-22 21:10:34'),(39,20,3,1,'2025-10-23','2025-10-23','pending',NULL,'2025-10-22 21:10:43'),(40,20,6,1,'2025-10-23','2025-10-24','pending',NULL,'2025-10-22 21:17:20'),(53,18,11,1,'2025-10-30','2025-10-30','pending',NULL,'2025-10-31 01:05:39'),(54,18,13,1,'2025-10-30','2025-10-30','pending',NULL,'2025-10-31 02:17:35'),(55,18,7,1,'2025-10-30','2025-11-07','pending',NULL,'2025-10-31 02:17:47'),(56,18,8,1,'2025-10-30','2025-11-19','pending',NULL,'2025-10-31 02:29:57'),(57,18,9,1,'2025-10-30','2025-10-30','pending',NULL,'2025-10-31 02:31:30'),(58,18,9,1,'2025-10-30','2025-10-31','pending',NULL,'2025-10-31 02:31:50'),(59,18,8,1,'2025-10-30','2025-10-30','pending',NULL,'2025-10-31 02:35:48'),(60,18,8,1,'2025-10-30','2025-10-31','pending',NULL,'2025-10-31 02:36:37'),(61,18,7,1,'2025-10-30','2025-10-31','pending',NULL,'2025-10-31 02:38:45'),(62,18,3,1,'2025-10-31','2025-10-31','pending',NULL,'2025-10-31 02:40:07');

--
-- Table structure for table `staff`
--

CREATE TABLE `staff` (
  `id` int NOT NULL AUTO_INCREMENT,
  `name` varchar(100) DEFAULT NULL,
  `email` varchar(100) DEFAULT NULL,
  `password` varchar(100) DEFAULT NULL,
  `role` varchar(50) DEFAULT NULL,
  `photo` varchar(500) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=24 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;

--
-- Dumping data for table `staff`
--

INSERT INTO `staff` VALUES (18,'winne','winnie@gmail.com','$2y$10$rhYOg.OSUKDnOIJJEb7Hx.weyoBHhqRCmdqbVGyC7niwpRVGjeBdi','staff','http://154.12.250.195/employee-performance-tracker/php/uploads/1761094952_5870.png'),(20,'Too a','toobaamjad098@gmail.com','$2y$10$1ble1nML/9kT661eGngtfuasvcPG84DmrXOq8FAcFhS3esq7nxf0i','admin','http://154.12.250.195/employee-performance-tracker/php/uploads/1761164782_3106.png');

--
-- Table structure for table `staff_tasks`
--

CREATE TABLE `staff_tasks` (
  `id` int NOT NULL AUTO_INCREMENT,
  `staff_id` int DEFAULT NULL,
  `task_id` int DEFAULT NULL,
  `date` date DEFAULT NULL,
  `times` int DEFAULT '0',
  PRIMARY KEY (`id`),
  UNIQUE KEY `staff_id` (`staff_id`,`task_id`,`date`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;

--
-- Dumping data for table `staff_tasks`
--


--
-- Table structure for table `tasks`
--

CREATE TABLE `tasks` (
  `id` int NOT NULL AUTO_INCREMENT,
  `task_name` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=15 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;

--
-- Dumping data for table `tasks`
--

INSERT INTO `tasks` VALUES (1,'Prepare boba'),(2,'Clean the windows'),(3,'Refill any missing supplies'),(4,'Brew fresh coffee'),(5,'Check and clean the barista machine'),(6,'Count and verify register money'),(7,'Move the trash can to the basement'),(8,'Check the quality of drinks and ice creams'),(9,'After 5:30 PM, place the sign'),(10,'fyf'),(11,'jsbs'),(12,'fgg'),(13,'Clean the room'),(14,'hello');

--
-- Dumping events for database 'employee_performance_tracker'
--

--
-- Dumping routines for database 'employee_performance_tracker'
--

--
-- Current Database: `phpmyadmin`
--

CREATE DATABASE /*!32312 IF NOT EXISTS*/ `phpmyadmin` /*!40100 DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci */ /*!80016 DEFAULT ENCRYPTION='N' */;

USE `phpmyadmin`;

--
-- Table structure for table `pma__bookmark`
--

CREATE TABLE `pma__bookmark` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `dbase` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_bin NOT NULL DEFAULT '',
  `user` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_bin NOT NULL DEFAULT '',
  `label` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL DEFAULT '',
  `query` text CHARACTER SET utf8mb3 COLLATE utf8mb3_bin NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_bin COMMENT='Bookmarks';

--
-- Dumping data for table `pma__bookmark`
--


--
-- Table structure for table `pma__central_columns`
--

CREATE TABLE `pma__central_columns` (
  `db_name` varchar(64) CHARACTER SET utf8mb3 COLLATE utf8mb3_bin NOT NULL,
  `col_name` varchar(64) CHARACTER SET utf8mb3 COLLATE utf8mb3_bin NOT NULL,
  `col_type` varchar(64) CHARACTER SET utf8mb3 COLLATE utf8mb3_bin NOT NULL,
  `col_length` text CHARACTER SET utf8mb3 COLLATE utf8mb3_bin,
  `col_collation` varchar(64) CHARACTER SET utf8mb3 COLLATE utf8mb3_bin NOT NULL,
  `col_isNull` tinyint(1) NOT NULL,
  `col_extra` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_bin DEFAULT '',
  `col_default` text CHARACTER SET utf8mb3 COLLATE utf8mb3_bin,
  PRIMARY KEY (`db_name`,`col_name`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_bin COMMENT='Central list of columns';

--
-- Dumping data for table `pma__central_columns`
--


--
-- Table structure for table `pma__column_info`
--

CREATE TABLE `pma__column_info` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `db_name` varchar(64) CHARACTER SET utf8mb3 COLLATE utf8mb3_bin NOT NULL DEFAULT '',
  `table_name` varchar(64) CHARACTER SET utf8mb3 COLLATE utf8mb3_bin NOT NULL DEFAULT '',
  `column_name` varchar(64) CHARACTER SET utf8mb3 COLLATE utf8mb3_bin NOT NULL DEFAULT '',
  `comment` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL DEFAULT '',
  `mimetype` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL DEFAULT '',
  `transformation` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_bin NOT NULL DEFAULT '',
  `transformation_options` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_bin NOT NULL DEFAULT '',
  `input_transformation` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_bin NOT NULL DEFAULT '',
  `input_transformation_options` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_bin NOT NULL DEFAULT '',
  PRIMARY KEY (`id`),
  UNIQUE KEY `db_name` (`db_name`,`table_name`,`column_name`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_bin COMMENT='Column information for phpMyAdmin';

--
-- Dumping data for table `pma__column_info`
--


--
-- Table structure for table `pma__designer_settings`
--

CREATE TABLE `pma__designer_settings` (
  `username` varchar(64) CHARACTER SET utf8mb3 COLLATE utf8mb3_bin NOT NULL,
  `settings_data` text CHARACTER SET utf8mb3 COLLATE utf8mb3_bin NOT NULL,
  PRIMARY KEY (`username`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_bin COMMENT='Settings related to Designer';

--
-- Dumping data for table `pma__designer_settings`
--


--
-- Table structure for table `pma__export_templates`
--

CREATE TABLE `pma__export_templates` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `username` varchar(64) CHARACTER SET utf8mb3 COLLATE utf8mb3_bin NOT NULL,
  `export_type` varchar(10) CHARACTER SET utf8mb3 COLLATE utf8mb3_bin NOT NULL,
  `template_name` varchar(64) CHARACTER SET utf8mb3 COLLATE utf8mb3_bin NOT NULL,
  `template_data` text CHARACTER SET utf8mb3 COLLATE utf8mb3_bin NOT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `u_user_type_template` (`username`,`export_type`,`template_name`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_bin COMMENT='Saved export templates';

--
-- Dumping data for table `pma__export_templates`
--


--
-- Table structure for table `pma__favorite`
--

CREATE TABLE `pma__favorite` (
  `username` varchar(64) CHARACTER SET utf8mb3 COLLATE utf8mb3_bin NOT NULL,
  `tables` text CHARACTER SET utf8mb3 COLLATE utf8mb3_bin NOT NULL,
  PRIMARY KEY (`username`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_bin COMMENT='Favorite tables';

--
-- Dumping data for table `pma__favorite`
--


--
-- Table structure for table `pma__history`
--

CREATE TABLE `pma__history` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `username` varchar(64) CHARACTER SET utf8mb3 COLLATE utf8mb3_bin NOT NULL DEFAULT '',
  `db` varchar(64) CHARACTER SET utf8mb3 COLLATE utf8mb3_bin NOT NULL DEFAULT '',
  `table` varchar(64) CHARACTER SET utf8mb3 COLLATE utf8mb3_bin NOT NULL DEFAULT '',
  `timevalue` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `sqlquery` text CHARACTER SET utf8mb3 COLLATE utf8mb3_bin NOT NULL,
  PRIMARY KEY (`id`),
  KEY `username` (`username`,`db`,`table`,`timevalue`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_bin COMMENT='SQL history for phpMyAdmin';

--
-- Dumping data for table `pma__history`
--


--
-- Table structure for table `pma__navigationhiding`
--

CREATE TABLE `pma__navigationhiding` (
  `username` varchar(64) CHARACTER SET utf8mb3 COLLATE utf8mb3_bin NOT NULL,
  `item_name` varchar(64) CHARACTER SET utf8mb3 COLLATE utf8mb3_bin NOT NULL,
  `item_type` varchar(64) CHARACTER SET utf8mb3 COLLATE utf8mb3_bin NOT NULL,
  `db_name` varchar(64) CHARACTER SET utf8mb3 COLLATE utf8mb3_bin NOT NULL,
  `table_name` varchar(64) CHARACTER SET utf8mb3 COLLATE utf8mb3_bin NOT NULL,
  PRIMARY KEY (`username`,`item_name`,`item_type`,`db_name`,`table_name`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_bin COMMENT='Hidden items of navigation tree';

--
-- Dumping data for table `pma__navigationhiding`
--


--
-- Table structure for table `pma__pdf_pages`
--

CREATE TABLE `pma__pdf_pages` (
  `db_name` varchar(64) CHARACTER SET utf8mb3 COLLATE utf8mb3_bin NOT NULL DEFAULT '',
  `page_nr` int unsigned NOT NULL,
  `page_descr` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL DEFAULT '',
  PRIMARY KEY (`page_nr`),
  KEY `db_name` (`db_name`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_bin COMMENT='PDF relation pages for phpMyAdmin';

--
-- Dumping data for table `pma__pdf_pages`
--


--
-- Table structure for table `pma__recent`
--

CREATE TABLE `pma__recent` (
  `username` varchar(64) CHARACTER SET utf8mb3 COLLATE utf8mb3_bin NOT NULL,
  `tables` text CHARACTER SET utf8mb3 COLLATE utf8mb3_bin NOT NULL,
  PRIMARY KEY (`username`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_bin COMMENT='Recently accessed tables';

--
-- Dumping data for table `pma__recent`
--

INSERT INTO `pma__recent` VALUES ('gfadev','[{\"db\":\"doordash\",\"table\":\"orders\"},{\"db\":\"doordash\",\"table\":\"users\"},{\"db\":\"doordash\",\"table\":\"user_restaurants\"},{\"db\":\"doordash\",\"table\":\"restaurants\"},{\"db\":\"doordash\",\"table\":\"merchant_stripe_accounts\"},{\"db\":\"doordash\",\"table\":\"delivery_persons\"},{\"db\":\"doordash\",\"table\":\"menu_items\"},{\"db\":\"doordash\",\"table\":\"payments\"},{\"db\":\"doordash\",\"table\":\"order_items\"},{\"db\":\"quiz_app\",\"table\":\"assignments\"}]');

--
-- Table structure for table `pma__relation`
--

CREATE TABLE `pma__relation` (
  `master_db` varchar(64) CHARACTER SET utf8mb3 COLLATE utf8mb3_bin NOT NULL DEFAULT '',
  `master_table` varchar(64) CHARACTER SET utf8mb3 COLLATE utf8mb3_bin NOT NULL DEFAULT '',
  `master_field` varchar(64) CHARACTER SET utf8mb3 COLLATE utf8mb3_bin NOT NULL DEFAULT '',
  `foreign_db` varchar(64) CHARACTER SET utf8mb3 COLLATE utf8mb3_bin NOT NULL DEFAULT '',
  `foreign_table` varchar(64) CHARACTER SET utf8mb3 COLLATE utf8mb3_bin NOT NULL DEFAULT '',
  `foreign_field` varchar(64) CHARACTER SET utf8mb3 COLLATE utf8mb3_bin NOT NULL DEFAULT '',
  PRIMARY KEY (`master_db`,`master_table`,`master_field`),
  KEY `foreign_field` (`foreign_db`,`foreign_table`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_bin COMMENT='Relation table';

--
-- Dumping data for table `pma__relation`
--


--
-- Table structure for table `pma__savedsearches`
--

CREATE TABLE `pma__savedsearches` (
  `id` int unsigned NOT NULL,
  `username` varchar(64) CHARACTER SET utf8mb3 COLLATE utf8mb3_bin NOT NULL DEFAULT '',
  `db_name` varchar(64) CHARACTER SET utf8mb3 COLLATE utf8mb3_bin NOT NULL DEFAULT '',
  `search_name` varchar(64) CHARACTER SET utf8mb3 COLLATE utf8mb3_bin NOT NULL DEFAULT '',
  `search_data` text CHARACTER SET utf8mb3 COLLATE utf8mb3_bin NOT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `u_savedsearches_username_dbname` (`username`,`db_name`,`search_name`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_bin COMMENT='Saved searches';

--
-- Dumping data for table `pma__savedsearches`
--


--
-- Table structure for table `pma__table_coords`
--

CREATE TABLE `pma__table_coords` (
  `db_name` varchar(64) CHARACTER SET utf8mb3 COLLATE utf8mb3_bin NOT NULL DEFAULT '',
  `table_name` varchar(64) CHARACTER SET utf8mb3 COLLATE utf8mb3_bin NOT NULL DEFAULT '',
  `pdf_page_number` int NOT NULL DEFAULT '0',
  `x` float unsigned NOT NULL DEFAULT '0',
  `y` float unsigned NOT NULL DEFAULT '0',
  PRIMARY KEY (`db_name`,`table_name`,`pdf_page_number`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_bin COMMENT='Table coordinates for phpMyAdmin PDF output';

--
-- Dumping data for table `pma__table_coords`
--


--
-- Table structure for table `pma__table_info`
--

CREATE TABLE `pma__table_info` (
  `db_name` varchar(64) CHARACTER SET utf8mb3 COLLATE utf8mb3_bin NOT NULL DEFAULT '',
  `table_name` varchar(64) CHARACTER SET utf8mb3 COLLATE utf8mb3_bin NOT NULL DEFAULT '',
  `display_field` varchar(64) CHARACTER SET utf8mb3 COLLATE utf8mb3_bin NOT NULL DEFAULT '',
  PRIMARY KEY (`db_name`,`table_name`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_bin COMMENT='Table information for phpMyAdmin';

--
-- Dumping data for table `pma__table_info`
--


--
-- Table structure for table `pma__table_uiprefs`
--

CREATE TABLE `pma__table_uiprefs` (
  `username` varchar(64) CHARACTER SET utf8mb3 COLLATE utf8mb3_bin NOT NULL,
  `db_name` varchar(64) CHARACTER SET utf8mb3 COLLATE utf8mb3_bin NOT NULL,
  `table_name` varchar(64) CHARACTER SET utf8mb3 COLLATE utf8mb3_bin NOT NULL,
  `prefs` text CHARACTER SET utf8mb3 COLLATE utf8mb3_bin NOT NULL,
  `last_update` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`username`,`db_name`,`table_name`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_bin COMMENT='Tables'' UI preferences';

--
-- Dumping data for table `pma__table_uiprefs`
--

INSERT INTO `pma__table_uiprefs` VALUES ('gfadev','doordash','orders','{\"sorted_col\":\"`orders`.`status` ASC\"}','2026-01-20 12:36:41'),('gfadev','sanmiwago','cr_activity_logs','{\"sorted_col\":\"`id` DESC\"}','2025-07-07 13:50:50');

--
-- Table structure for table `pma__tracking`
--

CREATE TABLE `pma__tracking` (
  `db_name` varchar(64) CHARACTER SET utf8mb3 COLLATE utf8mb3_bin NOT NULL,
  `table_name` varchar(64) CHARACTER SET utf8mb3 COLLATE utf8mb3_bin NOT NULL,
  `version` int unsigned NOT NULL,
  `date_created` datetime NOT NULL,
  `date_updated` datetime NOT NULL,
  `schema_snapshot` text CHARACTER SET utf8mb3 COLLATE utf8mb3_bin NOT NULL,
  `schema_sql` text CHARACTER SET utf8mb3 COLLATE utf8mb3_bin,
  `data_sql` longtext CHARACTER SET utf8mb3 COLLATE utf8mb3_bin,
  `tracking` set('UPDATE','REPLACE','INSERT','DELETE','TRUNCATE','CREATE DATABASE','ALTER DATABASE','DROP DATABASE','CREATE TABLE','ALTER TABLE','RENAME TABLE','DROP TABLE','CREATE INDEX','DROP INDEX','CREATE VIEW','ALTER VIEW','DROP VIEW') CHARACTER SET utf8mb3 COLLATE utf8mb3_bin DEFAULT NULL,
  `tracking_active` int unsigned NOT NULL DEFAULT '1',
  PRIMARY KEY (`db_name`,`table_name`,`version`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_bin COMMENT='Database changes tracking for phpMyAdmin';

--
-- Dumping data for table `pma__tracking`
--


--
-- Table structure for table `pma__userconfig`
--

CREATE TABLE `pma__userconfig` (
  `username` varchar(64) CHARACTER SET utf8mb3 COLLATE utf8mb3_bin NOT NULL,
  `timevalue` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `config_data` text CHARACTER SET utf8mb3 COLLATE utf8mb3_bin NOT NULL,
  PRIMARY KEY (`username`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_bin COMMENT='User preferences storage for phpMyAdmin';

--
-- Dumping data for table `pma__userconfig`
--

INSERT INTO `pma__userconfig` VALUES ('gfadev','2026-02-18 03:17:17','{\"Console\\/Mode\":\"collapse\"}');

--
-- Table structure for table `pma__usergroups`
--

CREATE TABLE `pma__usergroups` (
  `usergroup` varchar(64) CHARACTER SET utf8mb3 COLLATE utf8mb3_bin NOT NULL,
  `tab` varchar(64) CHARACTER SET utf8mb3 COLLATE utf8mb3_bin NOT NULL,
  `allowed` enum('Y','N') CHARACTER SET utf8mb3 COLLATE utf8mb3_bin NOT NULL DEFAULT 'N',
  PRIMARY KEY (`usergroup`,`tab`,`allowed`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_bin COMMENT='User groups with configured menu items';

--
-- Dumping data for table `pma__usergroups`
--


--
-- Table structure for table `pma__users`
--

CREATE TABLE `pma__users` (
  `username` varchar(64) CHARACTER SET utf8mb3 COLLATE utf8mb3_bin NOT NULL,
  `usergroup` varchar(64) CHARACTER SET utf8mb3 COLLATE utf8mb3_bin NOT NULL,
  PRIMARY KEY (`username`,`usergroup`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_bin COMMENT='Users and their assignments to user groups';

--
-- Dumping data for table `pma__users`
--


--
-- Dumping events for database 'phpmyadmin'
--

--
-- Dumping routines for database 'phpmyadmin'
--

--
-- Current Database: `pos`
--

CREATE DATABASE /*!32312 IF NOT EXISTS*/ `pos` /*!40100 DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci */ /*!80016 DEFAULT ENCRYPTION='N' */;

USE `pos`;

--
-- Dumping events for database 'pos'
--

--
-- Dumping routines for database 'pos'
--

--
-- Current Database: `quiz_app`
--

CREATE DATABASE /*!32312 IF NOT EXISTS*/ `quiz_app` /*!40100 DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci */ /*!80016 DEFAULT ENCRYPTION='N' */;

USE `quiz_app`;

--
-- Table structure for table `assignment_questions`
--

CREATE TABLE `assignment_questions` (
  `id` int NOT NULL AUTO_INCREMENT,
  `assignment_id` int NOT NULL,
  `question_id` int NOT NULL,
  PRIMARY KEY (`id`),
  KEY `assignment_id` (`assignment_id`),
  KEY `question_id` (`question_id`),
  CONSTRAINT `assignment_questions_ibfk_1` FOREIGN KEY (`assignment_id`) REFERENCES `assignments` (`id`),
  CONSTRAINT `assignment_questions_ibfk_2` FOREIGN KEY (`question_id`) REFERENCES `questions` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=13 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `assignment_questions`
--

INSERT INTO `assignment_questions` VALUES (1,3,16),(2,3,18),(3,3,17),(4,4,17),(5,4,16),(6,4,18),(7,5,18),(8,5,17),(9,5,16),(10,6,20),(11,6,21),(12,6,19);

--
-- Table structure for table `assignments`
--

CREATE TABLE `assignments` (
  `id` int NOT NULL AUTO_INCREMENT,
  `teacher_id` int NOT NULL,
  `student_id` int NOT NULL,
  `grade_id` int NOT NULL,
  `quiz_title` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `description` text COLLATE utf8mb4_unicode_ci,
  `question_count` int DEFAULT '10',
  `due_date` date DEFAULT NULL,
  `is_completed` tinyint(1) DEFAULT '0',
  `assigned_at` timestamp NULL DEFAULT CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  KEY `teacher_id` (`teacher_id`),
  KEY `student_id` (`student_id`),
  KEY `grade_id` (`grade_id`),
  CONSTRAINT `assignments_ibfk_1` FOREIGN KEY (`teacher_id`) REFERENCES `users` (`id`),
  CONSTRAINT `assignments_ibfk_2` FOREIGN KEY (`student_id`) REFERENCES `users` (`id`),
  CONSTRAINT `assignments_ibfk_3` FOREIGN KEY (`grade_id`) REFERENCES `grade_levels` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `assignments`
--

INSERT INTO `assignments` VALUES (1,9,5,1,'Q','',10,'2025-10-29',0,'2025-10-20 03:49:49'),(2,9,6,1,'j','j',10,'2025-10-29',1,'2025-10-20 04:02:55'),(3,9,6,1,'k','k',10,NULL,1,'2025-10-20 10:37:14'),(4,9,6,1,'check','k',10,NULL,1,'2025-10-20 11:43:35'),(5,9,6,1,'k','k',10,NULL,1,'2025-10-20 11:43:53'),(6,9,6,2,'k','l',10,NULL,1,'2025-10-23 03:54:53');

--
-- Table structure for table `attempts`
--

CREATE TABLE `attempts` (
  `id` int NOT NULL AUTO_INCREMENT,
  `user_id` int DEFAULT NULL,
  `question_id` int DEFAULT NULL,
  `user_answer` char(1) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `is_correct` tinyint(1) DEFAULT NULL,
  `attempt_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `attempts`
--


--
-- Table structure for table `grade_levels`
--

CREATE TABLE `grade_levels` (
  `id` int NOT NULL AUTO_INCREMENT,
  `grade_name` varchar(50) COLLATE utf8mb4_unicode_ci NOT NULL,
  `grade_level` int NOT NULL,
  `created_at` timestamp NULL DEFAULT CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=11 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `grade_levels`
--

INSERT INTO `grade_levels` VALUES (1,'Grade 1',1,'2025-10-19 22:54:13'),(2,'Grade 2',2,'2025-10-19 22:54:13'),(3,'Grade 3',3,'2025-10-19 22:54:13'),(4,'Grade 4',4,'2025-10-19 22:54:13'),(5,'Grade 5',5,'2025-10-19 22:54:13'),(6,'Grade 6',6,'2025-10-19 22:54:13'),(7,'Grade 7',7,'2025-10-19 22:54:13'),(8,'Grade 8',8,'2025-10-19 22:54:13'),(9,'Grade 9',9,'2025-10-19 22:54:13'),(10,'Grade 10',10,'2025-10-19 22:54:13');

--
-- Table structure for table `questions`
--

CREATE TABLE `questions` (
  `id` int NOT NULL AUTO_INCREMENT,
  `question` text COLLATE utf8mb4_unicode_ci,
  `option_a` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `option_b` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `option_c` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `option_d` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `correct_option` char(1) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `grade_id` int DEFAULT NULL,
  `uploaded_by` int DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=22 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `questions`
--

INSERT INTO `questions` VALUES (10,'You see that herd of Sheeps? Choose a word to take the place of the underlined word.','sheepes','sheepen','sheep','sheepses','C',NULL,NULL,'2025-10-19 22:54:13'),(11,'All the child rest at naptime. Choose a word to take the place of the underlined word.','childs','childes','children','childrens','C',NULL,NULL,'2025-10-19 22:54:13'),(12,'My friend Luis is five foot tall. Choose a word to take the place of the underlined word.','footes','feets','feet','foots','C',NULL,NULL,'2025-10-19 22:54:13'),(16,'You see that herd of Sheeps? Choose a word to take the place of the underlined word.','sheepes','sheepen','sheep','sheepses','C',1,9,'2025-10-20 04:18:53'),(17,'All the child rest at naptime. Choose a word to take the place of the underlined word.','childs','childes','children','childrens','C',1,9,'2025-10-20 04:18:53'),(18,'My friend Luis is five foot tall. Choose a word to take the place of the underlined word.','footes','feets','feet','foots','C',1,9,'2025-10-20 04:18:53'),(19,'You see that herd of Sheeps? Choose a word to take the place of the underlined word.','sheepes','sheepen','sheep','sheepses','C',2,9,'2025-10-23 03:54:32'),(20,'All the child rest at naptime. Choose a word to take the place of the underlined word.','childs','childes','children','childrens','C',2,9,'2025-10-23 03:54:32'),(21,'My friend Luis is five foot tall. Choose a word to take the place of the underlined word.','footes','feets','feet','foots','C',2,9,'2025-10-23 03:54:32');

--
-- Table structure for table `quiz_questions`
--

CREATE TABLE `quiz_questions` (
  `id` int NOT NULL AUTO_INCREMENT,
  `quiz_result_id` int NOT NULL,
  `question_id` int NOT NULL,
  `question_text` text COLLATE utf8mb4_unicode_ci NOT NULL,
  `options` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL,
  `correct_answer` varchar(10) COLLATE utf8mb4_unicode_ci NOT NULL,
  `user_answer` varchar(10) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `is_correct` tinyint(1) DEFAULT '0',
  `created_at` timestamp NULL DEFAULT CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  KEY `idx_quiz_questions_quiz_result_id` (`quiz_result_id`),
  KEY `idx_quiz_questions_question_id` (`question_id`),
  CONSTRAINT `quiz_questions_ibfk_1` FOREIGN KEY (`quiz_result_id`) REFERENCES `quiz_results` (`id`) ON DELETE CASCADE,
  CONSTRAINT `quiz_questions_chk_1` CHECK (json_valid(`options`))
) ENGINE=InnoDB AUTO_INCREMENT=64 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `quiz_questions`
--

INSERT INTO `quiz_questions` VALUES (1,1,11,'All the child rest at naptime. Choose a word to take the place of the underlined word.','{\"A\":\"childs\",\"B\":\"childes\",\"C\":\"children\",\"D\":\"childrens\"}','C','C',1,'2025-10-19 10:34:37'),(2,1,12,'My friend Luis is five foot tall. Choose a word to take the place of the underlined word.','{\"A\":\"footes\",\"B\":\"feets\",\"C\":\"feet\",\"D\":\"foots\"}','C','C',1,'2025-10-19 10:34:37'),(3,1,10,'You see that herd of Sheeps? Choose a word to take the place of the underlined word.','{\"A\":\"sheepes\",\"B\":\"sheepen\",\"C\":\"sheep\",\"D\":\"sheepses\"}','C','C',1,'2025-10-19 10:34:37'),(4,2,11,'All the child rest at naptime. Choose a word to take the place of the underlined word.','{\"A\":\"childs\",\"B\":\"childes\",\"C\":\"children\",\"D\":\"childrens\"}','C','C',1,'2025-10-19 10:45:34'),(5,2,10,'You see that herd of Sheeps? Choose a word to take the place of the underlined word.','{\"A\":\"sheepes\",\"B\":\"sheepen\",\"C\":\"sheep\",\"D\":\"sheepses\"}','C','C',1,'2025-10-19 10:45:34'),(6,2,12,'My friend Luis is five foot tall. Choose a word to take the place of the underlined word.','{\"A\":\"footes\",\"B\":\"feets\",\"C\":\"feet\",\"D\":\"foots\"}','C','C',1,'2025-10-19 10:45:34'),(7,3,11,'All the child rest at naptime. Choose a word to take the place of the underlined word.','{\"A\":\"childs\",\"B\":\"childes\",\"C\":\"children\",\"D\":\"childrens\"}','C','C',1,'2025-10-19 11:13:46'),(8,3,10,'You see that herd of Sheeps? Choose a word to take the place of the underlined word.','{\"A\":\"sheepes\",\"B\":\"sheepen\",\"C\":\"sheep\",\"D\":\"sheepses\"}','C','D',0,'2025-10-19 11:13:46'),(9,3,12,'My friend Luis is five foot tall. Choose a word to take the place of the underlined word.','{\"A\":\"footes\",\"B\":\"feets\",\"C\":\"feet\",\"D\":\"foots\"}','C','D',0,'2025-10-19 11:13:46'),(10,4,10,'You see that herd of Sheeps? Choose a word to take the place of the underlined word.','{\"A\":\"sheepes\",\"B\":\"sheepen\",\"C\":\"sheep\",\"D\":\"sheepses\"}','C','C',1,'2025-10-19 11:14:23'),(11,4,12,'My friend Luis is five foot tall. Choose a word to take the place of the underlined word.','{\"A\":\"footes\",\"B\":\"feets\",\"C\":\"feet\",\"D\":\"foots\"}','C','D',0,'2025-10-19 11:14:23'),(12,4,11,'All the child rest at naptime. Choose a word to take the place of the underlined word.','{\"A\":\"childs\",\"B\":\"childes\",\"C\":\"children\",\"D\":\"childrens\"}','C','C',1,'2025-10-19 11:14:23'),(13,5,10,'You see that herd of Sheeps? Choose a word to take the place of the underlined word.','{\"A\":\"sheepes\",\"B\":\"sheepen\",\"C\":\"sheep\",\"D\":\"sheepses\"}','C','C',1,'2025-10-19 11:15:51'),(14,5,11,'All the child rest at naptime. Choose a word to take the place of the underlined word.','{\"A\":\"childs\",\"B\":\"childes\",\"C\":\"children\",\"D\":\"childrens\"}','C','C',1,'2025-10-19 11:15:51'),(15,5,12,'My friend Luis is five foot tall. Choose a word to take the place of the underlined word.','{\"A\":\"footes\",\"B\":\"feets\",\"C\":\"feet\",\"D\":\"foots\"}','C','C',1,'2025-10-19 11:15:51'),(16,6,12,'My friend Luis is five foot tall. Choose a word to take the place of the underlined word.','{\"A\":\"footes\",\"B\":\"feets\",\"C\":\"feet\",\"D\":\"foots\"}','C','C',1,'2025-10-19 11:17:44'),(17,6,11,'All the child rest at naptime. Choose a word to take the place of the underlined word.','{\"A\":\"childs\",\"B\":\"childes\",\"C\":\"children\",\"D\":\"childrens\"}','C','C',1,'2025-10-19 11:17:44'),(18,6,10,'You see that herd of Sheeps? Choose a word to take the place of the underlined word.','{\"A\":\"sheepes\",\"B\":\"sheepen\",\"C\":\"sheep\",\"D\":\"sheepses\"}','C','C',1,'2025-10-19 11:17:44'),(19,7,12,'My friend Luis is five foot tall. Choose a word to take the place of the underlined word.','{\"A\":\"footes\",\"B\":\"feets\",\"C\":\"feet\",\"D\":\"foots\"}','C','D',0,'2025-10-19 11:19:41'),(20,7,11,'All the child rest at naptime. Choose a word to take the place of the underlined word.','{\"A\":\"childs\",\"B\":\"childes\",\"C\":\"children\",\"D\":\"childrens\"}','C','C',1,'2025-10-19 11:19:41'),(21,7,10,'You see that herd of Sheeps? Choose a word to take the place of the underlined word.','{\"A\":\"sheepes\",\"B\":\"sheepen\",\"C\":\"sheep\",\"D\":\"sheepses\"}','C','C',1,'2025-10-19 11:19:41'),(22,8,10,'You see that herd of Sheeps? Choose a word to take the place of the underlined word.','{\"A\":\"sheepes\",\"B\":\"sheepen\",\"C\":\"sheep\",\"D\":\"sheepses\"}','C','D',0,'2025-10-19 17:10:13'),(23,8,12,'My friend Luis is five foot tall. Choose a word to take the place of the underlined word.','{\"A\":\"footes\",\"B\":\"feets\",\"C\":\"feet\",\"D\":\"foots\"}','C','C',1,'2025-10-19 17:10:13'),(24,8,11,'All the child rest at naptime. Choose a word to take the place of the underlined word.','{\"A\":\"childs\",\"B\":\"childes\",\"C\":\"children\",\"D\":\"childrens\"}','C','C',1,'2025-10-19 17:10:13'),(25,9,10,'You see that herd of Sheeps? Choose a word to take the place of the underlined word.','{\"A\":\"sheepes\",\"B\":\"sheepen\",\"C\":\"sheep\",\"D\":\"sheepses\"}','C','C',1,'2025-10-19 23:57:48'),(26,9,14,'All the child rest at naptime. Choose a word to take the place of the underlined word.','{\"A\":\"childs\",\"B\":\"childes\",\"C\":\"children\",\"D\":\"childrens\"}','C','C',1,'2025-10-19 23:57:48'),(27,9,15,'My friend Luis is five foot tall. Choose a word to take the place of the underlined word.','{\"A\":\"footes\",\"B\":\"feets\",\"C\":\"feet\",\"D\":\"foots\"}','C','C',1,'2025-10-19 23:57:48'),(28,9,12,'My friend Luis is five foot tall. Choose a word to take the place of the underlined word.','{\"A\":\"footes\",\"B\":\"feets\",\"C\":\"feet\",\"D\":\"foots\"}','C','C',1,'2025-10-19 23:57:48'),(29,9,13,'You see that herd of Sheeps? Choose a word to take the place of the underlined word.','{\"A\":\"sheepes\",\"B\":\"sheepen\",\"C\":\"sheep\",\"D\":\"sheepses\"}','C','C',1,'2025-10-19 23:57:48'),(30,9,11,'All the child rest at naptime. Choose a word to take the place of the underlined word.','{\"A\":\"childs\",\"B\":\"childes\",\"C\":\"children\",\"D\":\"childrens\"}','C','C',1,'2025-10-19 23:57:48'),(31,10,11,'All the child rest at naptime. Choose a word to take the place of the underlined word.','{\"A\":\"childs\",\"B\":\"childes\",\"C\":\"children\",\"D\":\"childrens\"}','C','C',1,'2025-10-20 00:59:10'),(32,10,12,'My friend Luis is five foot tall. Choose a word to take the place of the underlined word.','{\"A\":\"footes\",\"B\":\"feets\",\"C\":\"feet\",\"D\":\"foots\"}','C','C',1,'2025-10-20 00:59:10'),(33,10,10,'You see that herd of Sheeps? Choose a word to take the place of the underlined word.','{\"A\":\"sheepes\",\"B\":\"sheepen\",\"C\":\"sheep\",\"D\":\"sheepses\"}','C','C',1,'2025-10-20 00:59:10'),(34,11,16,'You see that herd of Sheeps? Choose a word to take the place of the underlined word.','{\"A\":\"sheepes\",\"B\":\"sheepen\",\"C\":\"sheep\",\"D\":\"sheepses\"}','C',NULL,0,'2025-10-20 07:24:26'),(35,11,17,'All the child rest at naptime. Choose a word to take the place of the underlined word.','{\"A\":\"childs\",\"B\":\"childes\",\"C\":\"children\",\"D\":\"childrens\"}','C',NULL,0,'2025-10-20 07:24:26'),(36,11,18,'My friend Luis is five foot tall. Choose a word to take the place of the underlined word.','{\"A\":\"footes\",\"B\":\"feets\",\"C\":\"feet\",\"D\":\"foots\"}','C',NULL,0,'2025-10-20 07:24:26'),(37,12,18,'My friend Luis is five foot tall. Choose a word to take the place of the underlined word.','{\"A\":\"footes\",\"B\":\"feets\",\"C\":\"feet\",\"D\":\"foots\"}','C',NULL,0,'2025-10-20 08:40:30'),(38,12,16,'You see that herd of Sheeps? Choose a word to take the place of the underlined word.','{\"A\":\"sheepes\",\"B\":\"sheepen\",\"C\":\"sheep\",\"D\":\"sheepses\"}','C',NULL,0,'2025-10-20 08:40:30'),(39,12,17,'All the child rest at naptime. Choose a word to take the place of the underlined word.','{\"A\":\"childs\",\"B\":\"childes\",\"C\":\"children\",\"D\":\"childrens\"}','C',NULL,0,'2025-10-20 08:40:30'),(40,13,17,'All the child rest at naptime. Choose a word to take the place of the underlined word.','{\"A\":\"childs\",\"B\":\"childes\",\"C\":\"children\",\"D\":\"childrens\"}','C','B',0,'2025-10-20 10:50:51'),(41,13,18,'My friend Luis is five foot tall. Choose a word to take the place of the underlined word.','{\"A\":\"footes\",\"B\":\"feets\",\"C\":\"feet\",\"D\":\"foots\"}','C','C',1,'2025-10-20 10:50:51'),(42,13,16,'You see that herd of Sheeps? Choose a word to take the place of the underlined word.','{\"A\":\"sheepes\",\"B\":\"sheepen\",\"C\":\"sheep\",\"D\":\"sheepses\"}','C','C',1,'2025-10-20 10:50:51'),(43,14,16,'You see that herd of Sheeps? Choose a word to take the place of the underlined word.','{\"A\":\"sheepes\",\"B\":\"sheepen\",\"C\":\"sheep\",\"D\":\"sheepses\"}','C','A',0,'2025-10-20 15:26:29'),(44,14,18,'My friend Luis is five foot tall. Choose a word to take the place of the underlined word.','{\"A\":\"footes\",\"B\":\"feets\",\"C\":\"feet\",\"D\":\"foots\"}','C','C',1,'2025-10-20 15:26:29'),(45,14,17,'All the child rest at naptime. Choose a word to take the place of the underlined word.','{\"A\":\"childs\",\"B\":\"childes\",\"C\":\"children\",\"D\":\"childrens\"}','C','C',1,'2025-10-20 15:26:29'),(46,15,16,'You see that herd of Sheeps? Choose a word to take the place of the underlined word.','{\"A\":\"sheepes\",\"B\":\"sheepen\",\"C\":\"sheep\",\"D\":\"sheepses\"}','C','C',0,'2025-10-23 03:52:36'),(47,15,10,'You see that herd of Sheeps? Choose a word to take the place of the underlined word.','{\"A\":\"sheepes\",\"B\":\"sheepen\",\"C\":\"sheep\",\"D\":\"sheepses\"}','C','A',0,'2025-10-23 03:52:36'),(48,15,18,'My friend Luis is five foot tall. Choose a word to take the place of the underlined word.','{\"A\":\"footes\",\"B\":\"feets\",\"C\":\"feet\",\"D\":\"foots\"}','C',NULL,0,'2025-10-23 03:52:36'),(49,15,11,'All the child rest at naptime. Choose a word to take the place of the underlined word.','{\"A\":\"childs\",\"B\":\"childes\",\"C\":\"children\",\"D\":\"childrens\"}','C','A',0,'2025-10-23 03:52:36'),(50,15,12,'My friend Luis is five foot tall. Choose a word to take the place of the underlined word.','{\"A\":\"footes\",\"B\":\"feets\",\"C\":\"feet\",\"D\":\"foots\"}','C',NULL,0,'2025-10-23 03:52:36'),(51,15,17,'All the child rest at naptime. Choose a word to take the place of the underlined word.','{\"A\":\"childs\",\"B\":\"childes\",\"C\":\"children\",\"D\":\"childrens\"}','C','C',0,'2025-10-23 03:52:36'),(52,16,16,'You see that herd of Sheeps? Choose a word to take the place of the underlined word.','{\"A\":\"sheepes\",\"B\":\"sheepen\",\"C\":\"sheep\",\"D\":\"sheepses\"}','C','C',0,'2025-10-23 03:52:40'),(53,16,10,'You see that herd of Sheeps? Choose a word to take the place of the underlined word.','{\"A\":\"sheepes\",\"B\":\"sheepen\",\"C\":\"sheep\",\"D\":\"sheepses\"}','C','A',0,'2025-10-23 03:52:40'),(54,16,18,'My friend Luis is five foot tall. Choose a word to take the place of the underlined word.','{\"A\":\"footes\",\"B\":\"feets\",\"C\":\"feet\",\"D\":\"foots\"}','C',NULL,0,'2025-10-23 03:52:40'),(55,16,11,'All the child rest at naptime. Choose a word to take the place of the underlined word.','{\"A\":\"childs\",\"B\":\"childes\",\"C\":\"children\",\"D\":\"childrens\"}','C','A',0,'2025-10-23 03:52:40'),(56,16,12,'My friend Luis is five foot tall. Choose a word to take the place of the underlined word.','{\"A\":\"footes\",\"B\":\"feets\",\"C\":\"feet\",\"D\":\"foots\"}','C',NULL,0,'2025-10-23 03:52:40'),(57,16,17,'All the child rest at naptime. Choose a word to take the place of the underlined word.','{\"A\":\"childs\",\"B\":\"childes\",\"C\":\"children\",\"D\":\"childrens\"}','C','C',0,'2025-10-23 03:52:40'),(58,17,21,'My friend Luis is five foot tall. Choose a word to take the place of the underlined word.','{\"A\":\"footes\",\"B\":\"feets\",\"C\":\"feet\",\"D\":\"foots\"}','C',NULL,0,'2025-10-23 03:55:44'),(59,17,19,'You see that herd of Sheeps? Choose a word to take the place of the underlined word.','{\"A\":\"sheepes\",\"B\":\"sheepen\",\"C\":\"sheep\",\"D\":\"sheepses\"}','C','C',0,'2025-10-23 03:55:44'),(60,17,20,'All the child rest at naptime. Choose a word to take the place of the underlined word.','{\"A\":\"childs\",\"B\":\"childes\",\"C\":\"children\",\"D\":\"childrens\"}','C','C',0,'2025-10-23 03:55:44'),(61,18,18,'My friend Luis is five foot tall. Choose a word to take the place of the underlined word.','{\"A\":\"footes\",\"B\":\"feets\",\"C\":\"feet\",\"D\":\"foots\"}','C','C',1,'2025-10-24 17:55:30'),(62,18,17,'All the child rest at naptime. Choose a word to take the place of the underlined word.','{\"A\":\"childs\",\"B\":\"childes\",\"C\":\"children\",\"D\":\"childrens\"}','C','C',1,'2025-10-24 17:55:30'),(63,18,16,'You see that herd of Sheeps? Choose a word to take the place of the underlined word.','{\"A\":\"sheepes\",\"B\":\"sheepen\",\"C\":\"sheep\",\"D\":\"sheepses\"}','C','C',1,'2025-10-24 17:55:30');

--
-- Table structure for table `quiz_results`
--

CREATE TABLE `quiz_results` (
  `id` int NOT NULL AUTO_INCREMENT,
  `user_id` int NOT NULL,
  `score` int NOT NULL,
  `total_questions` int NOT NULL,
  `percentage` decimal(5,2) NOT NULL,
  `quiz_type` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `completed_at` datetime NOT NULL,
  `time_taken` int NOT NULL,
  `created_at` timestamp NULL DEFAULT CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  KEY `idx_quiz_results_user_id` (`user_id`),
  KEY `idx_quiz_results_completed_at` (`completed_at`),
  CONSTRAINT `quiz_results_ibfk_1` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=19 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `quiz_results`
--

INSERT INTO `quiz_results` VALUES (1,6,3,3,100.00,'Quick Quiz','2025-10-19 15:34:37',7,'2025-10-19 10:34:37'),(2,6,3,3,100.00,'Quick Quiz','2025-10-19 15:45:33',63,'2025-10-19 10:45:34'),(3,6,1,3,33.33,'Quick Quiz','2025-10-19 16:13:45',14,'2025-10-19 11:13:46'),(4,6,2,3,66.67,'Quick Quiz','2025-10-19 16:14:23',10,'2025-10-19 11:14:23'),(5,6,3,3,100.00,'Quick Quiz','2025-10-19 16:15:51',4,'2025-10-19 11:15:51'),(6,6,3,3,100.00,'Quick Quiz','2025-10-19 16:17:44',4,'2025-10-19 11:17:44'),(7,6,2,3,66.67,'Quick Quiz','2025-10-19 16:19:40',6,'2025-10-19 11:19:41'),(8,6,2,3,66.67,'Quick Quiz','2025-10-19 10:10:11',36,'2025-10-19 17:10:13'),(9,6,6,6,100.00,'Quick Quiz','2025-10-20 04:57:48',20,'2025-10-19 23:57:48'),(10,6,3,3,100.00,'Quick Quiz','2025-10-20 05:59:10',10,'2025-10-20 00:59:10'),(11,6,1,3,33.33,'Assignment: j','2025-10-20 12:24:25',20,'2025-10-20 07:24:26'),(12,6,1,3,33.33,'Assignment: j','2025-10-20 13:40:30',206,'2025-10-20 08:40:30'),(13,6,2,3,66.67,'Assignment: k','2025-10-20 15:50:50',31,'2025-10-20 10:50:51'),(14,6,2,3,66.67,'Assignment: k','2025-10-20 08:26:27',17,'2025-10-20 15:26:29'),(15,6,2,6,33.33,'Practice Quiz (6 questions)','2025-10-22 23:52:38',22,'2025-10-23 03:52:36'),(16,6,2,6,33.33,'Practice Quiz (6 questions)','2025-10-22 23:52:41',26,'2025-10-23 03:52:40'),(17,6,2,3,66.67,'Assignment: k','2025-10-22 23:55:46',13,'2025-10-23 03:55:44'),(18,6,3,3,100.00,'Assignment: check','2025-10-24 10:55:30',72,'2025-10-24 17:55:30');

--
-- Table structure for table `users`
--

CREATE TABLE `users` (
  `id` int NOT NULL AUTO_INCREMENT,
  `name` varchar(100) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `email` varchar(100) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `password` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `user_type` enum('student','teacher') COLLATE utf8mb4_unicode_ci DEFAULT 'student',
  `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `grade_id` int DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `email` (`email`)
) ENGINE=InnoDB AUTO_INCREMENT=10 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `users`
--

INSERT INTO `users` VALUES (4,'xinsi','xinsi@gmail.com','$2y$10$mYIrAMiK2VjNylA7EzJEje6Mp1452z2L/Jzl2AxOnLwSnOZp7agiO','student','2025-10-18 16:42:26',NULL),(5,'azn2','ex4@gmail.com','$2y$10$ud3r4bTnNU0mwR.Z3SDPuejTIX7SG.SNiOJ6x9Oy6qFxzaljMDwim','student','2025-10-18 17:03:47',NULL),(6,'Shanza Batool','Shanza@gmail.com','$2y$10$U3qJyoi63b3TylL3CWmL3eLFlUJDwOSoC/7y6w.HIQzoXgjJic3l.','student','2025-10-18 17:19:30',NULL),(9,'teacher','teacher@gmail.com','$2y$10$kLgLr9osSW8sCIMh3xbjPeof20nyfNqUQFuA6uswAueeL0BhXsA4W','teacher','2025-10-19 23:07:16',NULL);

--
-- Dumping events for database 'quiz_app'
--

--
-- Dumping routines for database 'quiz_app'
--

--
-- Current Database: `remote_desktop`
--

CREATE DATABASE /*!32312 IF NOT EXISTS*/ `remote_desktop` /*!40100 DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci */ /*!80016 DEFAULT ENCRYPTION='N' */;

USE `remote_desktop`;

--
-- Table structure for table `api_keys`
--

CREATE TABLE `api_keys` (
  `id` int NOT NULL AUTO_INCREMENT,
  `api_key` varchar(64) DEFAULT NULL,
  `device_id` varchar(64) DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  UNIQUE KEY `api_key` (`api_key`),
  KEY `device_id` (`device_id`),
  CONSTRAINT `api_keys_ibfk_1` FOREIGN KEY (`device_id`) REFERENCES `devices` (`device_id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;

--
-- Dumping data for table `api_keys`
--


--
-- Table structure for table `connections`
--

CREATE TABLE `connections` (
  `id` int NOT NULL AUTO_INCREMENT,
  `from_device` varchar(64) DEFAULT NULL,
  `to_device` varchar(64) DEFAULT NULL,
  `offer` text,
  `answer` text,
  `status` enum('pending','connected','failed') DEFAULT 'pending',
  `created_at` timestamp NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_at` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  KEY `idx_from_device` (`from_device`),
  KEY `idx_to_device` (`to_device`),
  KEY `idx_status` (`status`),
  CONSTRAINT `connections_ibfk_1` FOREIGN KEY (`from_device`) REFERENCES `devices` (`device_id`) ON DELETE CASCADE,
  CONSTRAINT `connections_ibfk_2` FOREIGN KEY (`to_device`) REFERENCES `devices` (`device_id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;

--
-- Dumping data for table `connections`
--


--
-- Table structure for table `devices`
--

CREATE TABLE `devices` (
  `device_id` varchar(64) NOT NULL,
  `device_name` varchar(255) DEFAULT NULL,
  `public_ip` varchar(45) DEFAULT NULL,
  `last_seen` timestamp NULL DEFAULT CURRENT_TIMESTAMP,
  `created_at` timestamp NULL DEFAULT CURRENT_TIMESTAMP,
  PRIMARY KEY (`device_id`),
  KEY `idx_last_seen` (`last_seen`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;

--
-- Dumping data for table `devices`
--


--
-- Dumping events for database 'remote_desktop'
--

--
-- Dumping routines for database 'remote_desktop'
--

--
-- Current Database: `six_pos`
--

CREATE DATABASE /*!32312 IF NOT EXISTS*/ `six_pos` /*!40100 DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci */ /*!80016 DEFAULT ENCRYPTION='N' */;

USE `six_pos`;

--
-- Table structure for table `accounts`
--

CREATE TABLE `accounts` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `account` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `description` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `balance` double NOT NULL,
  `account_number` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `total_in` double DEFAULT NULL,
  `total_out` double DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `company_id` bigint DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=9 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `accounts`
--

INSERT INTO `accounts` VALUES (1,'Cash','Default account',0,'1',0,0,'2021-11-28 05:06:59','2021-12-01 08:11:58',NULL),(2,'Payable','td',0,'2',0,0,'2021-11-28 05:07:21','2021-12-01 05:02:22',NULL),(3,'Receivable','Default account',0,'3',0,0,'2021-11-28 05:07:36','2021-12-01 08:11:58',NULL);

--
-- Table structure for table `admin_roles`
--

CREATE TABLE `admin_roles` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `modules` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
  `status` tinyint(1) NOT NULL DEFAULT '1',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `admin_roles`
--

INSERT INTO `admin_roles` VALUES (1,'Master Admin',NULL,1,'2024-02-04 06:48:37','2024-02-04 06:48:37');

--
-- Table structure for table `admins`
--

CREATE TABLE `admins` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `f_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `l_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `email` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `phone` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `password` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `remember_token` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `image` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `company_id` bigint DEFAULT NULL,
  `role_id` bigint DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `admins`
--


--
-- Table structure for table `brands`
--

CREATE TABLE `brands` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `description` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
  `status` smallint unsigned NOT NULL DEFAULT '1' COMMENT '0: Inactive, 1: Active',
  `image` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `company_id` bigint DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `brands`
--

INSERT INTO `brands` VALUES (3,'Test Brand',NULL,1,'2023-10-25-65389205947d0.png','2023-10-25 03:56:53','2023-10-25 03:56:53',NULL);

--
-- Table structure for table `business_settings`
--

CREATE TABLE `business_settings` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `key` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `value` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `company_id` bigint DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=14 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `business_settings`
--

INSERT INTO `business_settings` VALUES (1,'shop_logo','2021-11-10-618b99fd673d2.png',NULL,NULL,NULL),(2,'pagination_limit','12',NULL,NULL,NULL),(3,'currency','BDT',NULL,NULL,NULL),(4,'shop_name','6POS',NULL,NULL,NULL),(5,'shop_address','Dhaka',NULL,NULL,NULL),(6,'shop_phone','0123456789',NULL,NULL,NULL),(7,'shop_email','shop@gmail.com',NULL,NULL,NULL),(8,'footer_text','Foooter text',NULL,NULL,NULL),(9,'country','BD',NULL,NULL,NULL),(10,'stock_limit','10',NULL,NULL,NULL),(11,'time_zone','Asia/Dhaka',NULL,NULL,NULL),(12,'vat_reg_no','0000',NULL,NULL,NULL),(13,'fav_icon',NULL,NULL,NULL,NULL);

--
-- Table structure for table `categories`
--

CREATE TABLE `categories` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `description` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `parent_id` int NOT NULL,
  `position` int NOT NULL,
  `status` tinyint(1) NOT NULL DEFAULT '1',
  `image` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `company_id` bigint DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `categories`
--

INSERT INTO `categories` VALUES (1,'Test Category',NULL,0,0,1,'2023-10-25-653891d1a698a.png','2023-10-25 03:56:01','2023-10-25 03:56:01',NULL),(2,'Test Sub Category',NULL,1,1,1,'def.png','2023-10-25 03:56:25','2023-10-25 03:56:25',NULL);

--
-- Table structure for table `companies`
--

CREATE TABLE `companies` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `company_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `sub_domain_prefix` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `companies`
--


--
-- Table structure for table `counters`
--

CREATE TABLE `counters` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `number` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `description` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
  `status` tinyint NOT NULL DEFAULT '1',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `counters`
--


--
-- Table structure for table `coupons`
--

CREATE TABLE `coupons` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `title` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `coupon_type` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'default',
  `user_limit` int DEFAULT NULL,
  `code` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `start_date` date DEFAULT NULL,
  `expire_date` date DEFAULT NULL,
  `min_purchase` decimal(8,2) NOT NULL DEFAULT '0.00',
  `max_discount` decimal(8,2) NOT NULL DEFAULT '0.00',
  `discount` decimal(8,2) NOT NULL DEFAULT '0.00',
  `discount_type` varchar(15) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'percentage',
  `status` tinyint(1) NOT NULL DEFAULT '1',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `company_id` bigint DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `coupons`
--


--
-- Table structure for table `currencies`
--

CREATE TABLE `currencies` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `country` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `currency_code` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `currency_symbol` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `exchange_rate` decimal(8,2) DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=120 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `currencies`
--

INSERT INTO `currencies` VALUES (1,'US Dollar','USD','$',1.00,NULL,NULL),(2,'Canadian Dollar','CAD','CA$',1.00,NULL,NULL),(3,'Euro','EUR','€',1.00,NULL,NULL),(4,'United Arab Emirates Dirham','AED','د.إ.‏',1.00,NULL,NULL),(5,'Afghan Afghani','AFN','؋',1.00,NULL,NULL),(6,'Albanian Lek','ALL','L',1.00,NULL,NULL),(7,'Armenian Dram','AMD','֏',1.00,NULL,NULL),(8,'Argentine Peso','ARS','$',1.00,NULL,NULL),(9,'Australian Dollar','AUD','$',1.00,NULL,NULL),(10,'Azerbaijani Manat','AZN','₼',1.00,NULL,NULL),(11,'Bosnia-Herzegovina Convertible Mark','BAM','KM',1.00,NULL,NULL),(12,'Bangladeshi Taka','BDT','৳',1.00,NULL,NULL),(13,'Bulgarian Lev','BGN','лв.',1.00,NULL,NULL),(14,'Bahraini Dinar','BHD','د.ب.‏',1.00,NULL,NULL),(15,'Burundian Franc','BIF','FBu',1.00,NULL,NULL),(16,'Brunei Dollar','BND','B$',1.00,NULL,NULL),(17,'Bolivian Boliviano','BOB','Bs',1.00,NULL,NULL),(18,'Brazilian Real','BRL','R$',1.00,NULL,NULL),(19,'Botswanan Pula','BWP','P',1.00,NULL,NULL),(20,'Belarusian Ruble','BYN','Br',1.00,NULL,NULL),(21,'Belize Dollar','BZD','$',1.00,NULL,NULL),(22,'Congolese Franc','CDF','FC',1.00,NULL,NULL),(23,'Swiss Franc','CHF','CHf',1.00,NULL,NULL),(24,'Chilean Peso','CLP','$',1.00,NULL,NULL),(25,'Chinese Yuan','CNY','¥',1.00,NULL,NULL),(26,'Colombian Peso','COP','$',1.00,NULL,NULL),(27,'Costa Rican Colón','CRC','₡',1.00,NULL,NULL),(28,'Cape Verdean Escudo','CVE','$',1.00,NULL,NULL),(29,'Czech Republic Koruna','CZK','Kč',1.00,NULL,NULL),(30,'Djiboutian Franc','DJF','Fdj',1.00,NULL,NULL),(31,'Danish Krone','DKK','Kr.',1.00,NULL,NULL),(32,'Dominican Peso','DOP','RD$',1.00,NULL,NULL),(33,'Algerian Dinar','DZD','د.ج.‏',1.00,NULL,NULL),(34,'Estonian Kroon','EEK','kr',1.00,NULL,NULL),(35,'Egyptian Pound','EGP','E£‏',1.00,NULL,NULL),(36,'Eritrean Nakfa','ERN','Nfk',1.00,NULL,NULL),(37,'Ethiopian Birr','ETB','Br',1.00,NULL,NULL),(38,'British Pound Sterling','GBP','£',1.00,NULL,NULL),(39,'Georgian Lari','GEL','GEL',1.00,NULL,NULL),(40,'Ghanaian Cedi','GHS','GH¢',1.00,NULL,NULL),(41,'Guinean Franc','GNF','FG',1.00,NULL,NULL),(42,'Guatemalan Quetzal','GTQ','Q',1.00,NULL,NULL),(43,'Hong Kong Dollar','HKD','HK$',1.00,NULL,NULL),(44,'Honduran Lempira','HNL','L',1.00,NULL,NULL),(45,'Croatian Kuna','HRK','kn',1.00,NULL,NULL),(46,'Hungarian Forint','HUF','Ft',1.00,NULL,NULL),(47,'Indonesian Rupiah','IDR','Rp',1.00,NULL,NULL),(48,'Israeli New Sheqel','ILS','₪',1.00,NULL,NULL),(49,'Indian Rupee','INR','₹',1.00,NULL,NULL),(50,'Iraqi Dinar','IQD','ع.د',1.00,NULL,NULL),(51,'Iranian Rial','IRR','﷼',1.00,NULL,NULL),(52,'Icelandic Króna','ISK','kr',1.00,NULL,NULL),(53,'Jamaican Dollar','JMD','$',1.00,NULL,NULL),(54,'Jordanian Dinar','JOD','د.ا‏',1.00,NULL,NULL),(55,'Japanese Yen','JPY','¥',1.00,NULL,NULL),(56,'Kenyan Shilling','KES','Ksh',1.00,NULL,NULL),(57,'Cambodian Riel','KHR','៛',1.00,NULL,NULL),(58,'Comorian Franc','KMF','FC',1.00,NULL,NULL),(59,'South Korean Won','KRW','CF',1.00,NULL,NULL),(60,'Kuwaiti Dinar','KWD','د.ك.‏',1.00,NULL,NULL),(61,'Kazakhstani Tenge','KZT','₸.',1.00,NULL,NULL),(62,'Lebanese Pound','LBP','ل.ل.‏',1.00,NULL,NULL),(63,'Sri Lankan Rupee','LKR','Rs',1.00,NULL,NULL),(64,'Lithuanian Litas','LTL','Lt',1.00,NULL,NULL),(65,'Latvian Lats','LVL','Ls',1.00,NULL,NULL),(66,'Libyan Dinar','LYD','د.ل.‏',1.00,NULL,NULL),(67,'Moroccan Dirham','MAD','د.م.‏',1.00,NULL,NULL),(68,'Moldovan Leu','MDL','L',1.00,NULL,NULL),(69,'Malagasy Ariary','MGA','Ar',1.00,NULL,NULL),(70,'Macedonian Denar','MKD','Ден',1.00,NULL,NULL),(71,'Myanma Kyat','MMK','K',1.00,NULL,NULL),(72,'Macanese Pataca','MOP','MOP$',1.00,NULL,NULL),(73,'Mauritian Rupee','MUR','Rs',1.00,NULL,NULL),(74,'Mexican Peso','MXN','$',1.00,NULL,NULL),(75,'Malaysian Ringgit','MYR','RM',1.00,NULL,NULL),(76,'Mozambican Metical','MZN','MT',1.00,NULL,NULL),(77,'Namibian Dollar','NAD','N$',1.00,NULL,NULL),(78,'Nigerian Naira','NGN','₦',1.00,NULL,NULL),(79,'Nicaraguan Córdoba','NIO','C$',1.00,NULL,NULL),(80,'Norwegian Krone','NOK','kr',1.00,NULL,NULL),(81,'Nepalese Rupee','NPR','Re.',1.00,NULL,NULL),(82,'New Zealand Dollar','NZD','$',1.00,NULL,NULL),(83,'Omani Rial','OMR','ر.ع.‏',1.00,NULL,NULL),(84,'Panamanian Balboa','PAB','B/.',1.00,NULL,NULL),(85,'Peruvian Nuevo Sol','PEN','S/',1.00,NULL,NULL),(86,'Philippine Peso','PHP','₱',1.00,NULL,NULL),(87,'Pakistani Rupee','PKR','Rs',1.00,NULL,NULL),(88,'Polish Zloty','PLN','zł',1.00,NULL,NULL),(89,'Paraguayan Guarani','PYG','₲',1.00,NULL,NULL),(90,'Qatari Rial','QAR','ر.ق.‏',1.00,NULL,NULL),(91,'Romanian Leu','RON','lei',1.00,NULL,NULL),(92,'Serbian Dinar','RSD','din.',1.00,NULL,NULL),(93,'Russian Ruble','RUB','₽.',1.00,NULL,NULL),(94,'Rwandan Franc','RWF','FRw',1.00,NULL,NULL),(95,'Saudi Riyal','SAR','ر.س.‏',1.00,NULL,NULL),(96,'Sudanese Pound','SDG','ج.س.',1.00,NULL,NULL),(97,'Swedish Krona','SEK','kr',1.00,NULL,NULL),(98,'Singapore Dollar','SGD','$',1.00,NULL,NULL),(99,'Somali Shilling','SOS','Sh.so.',1.00,NULL,NULL),(100,'Syrian Pound','SYP','LS‏',1.00,NULL,NULL),(101,'Thai Baht','THB','฿',1.00,NULL,NULL),(102,'Tunisian Dinar','TND','د.ت‏',1.00,NULL,NULL),(103,'Tongan Paʻanga','TOP','T$',1.00,NULL,NULL),(104,'Turkish Lira','TRY','₺',1.00,NULL,NULL),(105,'Trinidad and Tobago Dollar','TTD','$',1.00,NULL,NULL),(106,'New Taiwan Dollar','TWD','NT$',1.00,NULL,NULL),(107,'Tanzanian Shilling','TZS','TSh',1.00,NULL,NULL),(108,'Ukrainian Hryvnia','UAH','₴',1.00,NULL,NULL),(109,'Ugandan Shilling','UGX','USh',1.00,NULL,NULL),(110,'Uruguayan Peso','UYU','$',1.00,NULL,NULL),(111,'Uzbekistan Som','UZS','so\'m',1.00,NULL,NULL),(112,'Venezuelan Bolívar','VEF','Bs.F.',1.00,NULL,NULL),(113,'Vietnamese Dong','VND','₫',1.00,NULL,NULL),(114,'CFA Franc BEAC','XAF','FCFA',1.00,NULL,NULL),(115,'CFA Franc BCEAO','XOF','CFA',1.00,NULL,NULL),(116,'Yemeni Rial','YER','﷼‏',1.00,NULL,NULL),(117,'South African Rand','ZAR','R',1.00,NULL,NULL),(118,'Zambian Kwacha','ZMK','ZK',1.00,NULL,NULL),(119,'Zimbabwean Dollar','ZWL','Z$',1.00,NULL,NULL);

--
-- Table structure for table `customers`
--

CREATE TABLE `customers` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `mobile` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `email` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `image` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `state` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `city` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `zip_code` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `address` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `balance` double DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `company_id` bigint DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `customers`
--

INSERT INTO `customers` VALUES (0,'Walk-In Customer','1',NULL,'def.png',NULL,NULL,NULL,NULL,0,'2021-11-28 05:37:48','2021-11-28 05:37:48',NULL);

--
-- Table structure for table `failed_jobs`
--

CREATE TABLE `failed_jobs` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `uuid` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `connection` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `queue` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `payload` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `exception` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `failed_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  UNIQUE KEY `failed_jobs_uuid_unique` (`uuid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `failed_jobs`
--


--
-- Table structure for table `migrations`
--

CREATE TABLE `migrations` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `migration` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `batch` int NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=60 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `migrations`
--

INSERT INTO `migrations` VALUES (1,'2014_10_12_000000_create_users_table',1),(2,'2014_10_12_100000_create_password_resets_table',1),(3,'2019_08_19_000000_create_failed_jobs_table',1),(4,'2019_12_14_000001_create_personal_access_tokens_table',1),(5,'2021_11_02_095022_create_business_settings_table',1),(6,'2021_11_02_114801_create_admins_table',1),(7,'2021_11_03_044923_create_categories_table',1),(8,'2021_11_03_090927_create_brands_table',1),(9,'2021_11_03_101237_create_products_table',1),(10,'2021_11_06_025604_create_currencies_table',1),(11,'2021_11_06_031804_create_orders_table',1),(12,'2021_11_06_084528_create_order_details_table',1),(13,'2021_11_08_094042_create_customers_table',1),(15,'2021_11_11_051704_create_coupons_table',1),(16,'2021_11_13_100539_create_units_table',1),(17,'2021_11_17_034203_create_accounts_table',1),(20,'2021_11_17_083502_create_transections_table',2),(21,'2021_11_09_064445_create_suppliers_table',3),(22,'2021_06_17_054551_create_soft_credentials_table',4),(23,'2021_12_01_141901_add_phone_col_admin',4),(24,'2021_12_02_092539_add_image_to_admin_tables',4),(25,'2016_06_01_000001_create_oauth_auth_codes_table',5),(26,'2016_06_01_000002_create_oauth_access_tokens_table',5),(27,'2016_06_01_000003_create_oauth_refresh_tokens_table',5),(28,'2016_06_01_000004_create_oauth_clients_table',5),(29,'2016_06_01_000005_create_oauth_personal_access_clients_table',5),(30,'2022_02_06_115834_create_companies_table',5),(31,'2022_02_06_121739_add_company_id_col_admin',5),(32,'2022_02_06_150041_add_company_id_category',5),(33,'2022_02_06_151731_add_company_id_brand',5),(34,'2022_02_06_152243_add_company_id_accounts',5),(35,'2022_02_06_152301_add_company_id_coupon',5),(36,'2022_02_06_152323_add_company_id_users',5),(37,'2022_02_06_152357_add_company_id_orders',5),(38,'2022_02_06_152412_add_company_id_order_details',5),(39,'2022_02_06_152429_add_company_id_products',5),(40,'2022_02_06_152453_add_company_id_suppliers',5),(41,'2022_02_06_152515_add_company_id_transactions',5),(42,'2022_02_06_152943_add_company_id_units',5),(43,'2022_02_06_154752_add_company_id_customers',5),(44,'2022_02_06_160446_add_company_id_business_settings',5),(45,'2022_06_19_194943_rename_columns_to_coupons_table',5),(46,'2024_01_24_175057_create_admin_roles_table',6),(47,'2024_01_24_183027_add_to_col_admin_table',6),(48,'2024_09_24_132001_create_counters_table',7),(49,'2024_09_24_161729_add_counter_id_in_orders_table',7),(50,'2025_01_27_171536_add_order_status_to_orders_table',8),(51,'2025_01_30_164219_create_refunds_table',8),(52,'2025_06_24_101316_add_description_in_categories_table',9),(53,'2025_07_03_114849_add_description_reorder_level_status_available_time_started_at_available_time_ended_at_to_products_table',9),(54,'2025_07_03_115731_add_description_status_to_brands_table',9),(55,'2025_07_06_162913_add_status_to_units_table',9),(56,'2025_07_09_154520_make_image_column_nullable_in_categories_table',9),(57,'2025_07_09_161537_make_image_column_nullable_in_brands_table',9),(58,'2025_07_14_102519_add_admin_payment_method_customer_payout_method_other_payment_details_to_refunds_table',9),(59,'2025_07_23_133254_rename_walking_customer_to_walk_in_customer_in_customers_table',9);

--
-- Table structure for table `oauth_access_tokens`
--

CREATE TABLE `oauth_access_tokens` (
  `id` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `user_id` bigint unsigned DEFAULT NULL,
  `client_id` bigint unsigned NOT NULL,
  `name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `scopes` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
  `revoked` tinyint(1) NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `expires_at` datetime DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `oauth_access_tokens_user_id_index` (`user_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `oauth_access_tokens`
--


--
-- Table structure for table `oauth_auth_codes`
--

CREATE TABLE `oauth_auth_codes` (
  `id` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `user_id` bigint unsigned NOT NULL,
  `client_id` bigint unsigned NOT NULL,
  `scopes` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
  `revoked` tinyint(1) NOT NULL,
  `expires_at` datetime DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `oauth_auth_codes_user_id_index` (`user_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `oauth_auth_codes`
--


--
-- Table structure for table `oauth_clients`
--

CREATE TABLE `oauth_clients` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `user_id` bigint unsigned DEFAULT NULL,
  `name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `secret` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `provider` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `redirect` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `personal_access_client` tinyint(1) NOT NULL,
  `password_client` tinyint(1) NOT NULL,
  `revoked` tinyint(1) NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `oauth_clients_user_id_index` (`user_id`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `oauth_clients`
--

INSERT INTO `oauth_clients` VALUES (1,NULL,'Laravel Personal Access Client','pXnxAxPSKhx4ovCCoO44x3oKqy0opH0N7mhLApV4',NULL,'http://localhost',1,0,0,'2022-07-27 12:47:21','2022-07-27 12:47:21'),(2,NULL,'Laravel Password Grant Client','yuCn4ks9guHGCG2ZBOBa5Y7jPloMveS07BV9JKpN','users','http://localhost',0,1,0,'2022-07-27 12:47:21','2022-07-27 12:47:21');

--
-- Table structure for table `oauth_personal_access_clients`
--

CREATE TABLE `oauth_personal_access_clients` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `client_id` bigint unsigned NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `oauth_personal_access_clients`
--

INSERT INTO `oauth_personal_access_clients` VALUES (1,1,'2022-07-27 12:47:21','2022-07-27 12:47:21');

--
-- Table structure for table `oauth_refresh_tokens`
--

CREATE TABLE `oauth_refresh_tokens` (
  `id` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `access_token_id` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `revoked` tinyint(1) NOT NULL,
  `expires_at` datetime DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `oauth_refresh_tokens_access_token_id_index` (`access_token_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `oauth_refresh_tokens`
--


--
-- Table structure for table `order_details`
--

CREATE TABLE `order_details` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `product_id` bigint DEFAULT NULL,
  `order_id` bigint DEFAULT NULL,
  `price` double NOT NULL DEFAULT '0',
  `product_details` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
  `discount_on_product` double DEFAULT NULL,
  `discount_type` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'amount',
  `quantity` int NOT NULL DEFAULT '1',
  `tax_amount` double NOT NULL DEFAULT '1',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `company_id` bigint DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `order_details`
--


--
-- Table structure for table `orders`
--

CREATE TABLE `orders` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `user_id` bigint unsigned DEFAULT NULL,
  `order_amount` double NOT NULL DEFAULT '0',
  `total_tax` double NOT NULL,
  `collected_cash` double DEFAULT NULL,
  `extra_discount` double DEFAULT NULL,
  `coupon_code` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `coupon_discount_amount` double NOT NULL DEFAULT '0',
  `coupon_discount_title` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `payment_id` bigint unsigned DEFAULT NULL,
  `transaction_reference` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `company_id` bigint DEFAULT NULL,
  `counter_id` bigint DEFAULT NULL,
  `card_number` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `comment` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `email_or_phone` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `order_status` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'completed',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `orders`
--


--
-- Table structure for table `password_resets`
--

CREATE TABLE `password_resets` (
  `email` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `token` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  KEY `password_resets_email_index` (`email`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `password_resets`
--


--
-- Table structure for table `personal_access_tokens`
--

CREATE TABLE `personal_access_tokens` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `tokenable_type` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `tokenable_id` bigint unsigned NOT NULL,
  `name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `token` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `abilities` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
  `last_used_at` timestamp NULL DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `personal_access_tokens_token_unique` (`token`),
  KEY `personal_access_tokens_tokenable_type_tokenable_id_index` (`tokenable_type`,`tokenable_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `personal_access_tokens`
--


--
-- Table structure for table `products`
--

CREATE TABLE `products` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `description` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
  `product_code` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `unit_type` int unsigned DEFAULT NULL,
  `unit_value` double(8,2) DEFAULT NULL,
  `brand` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `category_ids` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `purchase_price` double DEFAULT NULL,
  `selling_price` double DEFAULT NULL,
  `discount_type` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `discount` double(8,2) DEFAULT NULL,
  `tax` double(8,2) DEFAULT NULL,
  `quantity` bigint DEFAULT NULL,
  `reorder_level` smallint unsigned NOT NULL DEFAULT '1',
  `status` smallint unsigned NOT NULL DEFAULT '1' COMMENT '0: Inactive, 1: Active',
  `image` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `order_count` int unsigned DEFAULT NULL,
  `supplier_id` int unsigned DEFAULT NULL,
  `available_time_started_at` time DEFAULT NULL,
  `available_time_ended_at` time DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `company_id` bigint DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `products`
--

INSERT INTO `products` VALUES (1,'Test Product',NULL,'74982',1,1.00,'3','[{\"id\":\"1\",\"position\":1},{\"id\":\"2\",\"position\":2}]',70,100,'percent',0.00,0.00,80,1,1,'2023-10-25-65389342b5f12.png',0,1,NULL,NULL,'2023-10-25 04:02:10','2023-10-25 04:02:24',NULL);

--
-- Table structure for table `refunds`
--

CREATE TABLE `refunds` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `order_id` bigint unsigned NOT NULL,
  `refund_amount` double NOT NULL DEFAULT '0',
  `refund_reason` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `admin_payment_method_id` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `admin_payment_method_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `customer_payout_method_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `other_payment_details` json DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `refunds`
--


--
-- Table structure for table `soft_credentials`
--

CREATE TABLE `soft_credentials` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `key` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `value` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `soft_credentials`
--


--
-- Table structure for table `suppliers`
--

CREATE TABLE `suppliers` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `mobile` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `email` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `image` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `state` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `city` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `zip_code` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `address` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `due_amount` double DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `company_id` bigint DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `suppliers`
--

INSERT INTO `suppliers` VALUES (1,'Test Supplier','8801122334455','supplier@supplier.com','2023-10-25-653892e145e47.png','Dhaka','Dhaka','1000','Dhaka, Bangladesh',NULL,'2023-10-25 04:00:33','2023-10-25 04:00:33',NULL);

--
-- Table structure for table `transections`
--

CREATE TABLE `transections` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `tran_type` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `account_id` bigint unsigned DEFAULT NULL,
  `amount` double DEFAULT NULL,
  `description` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `debit` tinyint(1) DEFAULT NULL,
  `credit` tinyint(1) DEFAULT NULL,
  `balance` double DEFAULT NULL,
  `date` date DEFAULT NULL,
  `customer_id` int unsigned DEFAULT NULL,
  `supplier_id` int unsigned DEFAULT NULL,
  `order_id` int unsigned DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `company_id` bigint DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `transections`
--


--
-- Table structure for table `units`
--

CREATE TABLE `units` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `unit_type` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `status` smallint unsigned NOT NULL DEFAULT '1' COMMENT '0: Inactive, 1: Active',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `company_id` bigint DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `units`
--

INSERT INTO `units` VALUES (1,'kg',1,'2021-11-28 05:34:53','2021-11-28 05:34:53',NULL),(2,'Ltr',1,'2021-11-28 05:35:05','2021-11-28 05:35:05',NULL),(3,'Pc',1,'2021-11-28 05:35:14','2021-11-28 05:35:14',NULL);

--
-- Table structure for table `users`
--

CREATE TABLE `users` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `email` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `email_verified_at` timestamp NULL DEFAULT NULL,
  `password` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `remember_token` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `company_id` bigint DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `users_email_unique` (`email`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `users`
--


--
-- Dumping events for database 'six_pos'
--

--
-- Dumping routines for database 'six_pos'
--


