Download as TXT, PDF, TXT or read online from Scribd
Download as txt, pdf, or txt
You are on page 1of 10
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
START TRANSACTION; SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; /*!40101 SET NAMES utf8mb4 */;
CREATE TABLE `acclogs` (
`id` int NOT NULL, `username` varchar(65) DEFAULT NULL, `date` varchar(10) NOT NULL, `ip` varchar(45) NOT NULL, `useragent` varchar(400) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_general_ci;
CREATE TABLE `accounts` (
`username` varchar(65) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL, `email` varchar(40) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL, `password` varchar(60) CHARACTER SET utf8 COLLATE utf8_unicode_ci4353OT NULL, `ownerid` varchar(65) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL, `role` varchar(65) CHARACTER SE T utf8 COLLATE utf8_unicode_ci NOT NULL, `app` varchar(65) CHARACTER SET utf8 COLL354ATE utf8_unicode_ci DEFAULT NULL, `owner` varchar(49) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL, `banned` varchar(99) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL, `locked` int NOT NULL DEFAULT '0', `warning` varchar(999) CHARACTER SET utf8 COLLA f8_unicode_ci DEFAULT NULL, `admin` int NOT NULL DEFAULT '0', `img` varchar(200) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL DEFAULT 'https://cdn.keyauth.cc/assets/img/favicon.png', `balance` varchar(49) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL, `keylevels` varchar(49) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL DEFAULT 'N/A', `expires` varchar(49) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL, `registrationip` varchar(4 9) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL, `lastip` varchar(49) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL, `region` varchar(99) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL, `asNum` varchar(20) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL, `twofactor` int NOT NULL DEFAULT '0', `googleAuthCode` varchar(59) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL, `darkmode` int NOT NULL DEFAULT '0', `acclogs` int NOT NULL DEFAULT '1',535235 `emailVerify` int NOT NULL DEFAULT '1', `permissions` bit(64) NOT NULL DEFAULT b'11111111111', `securityKey` int NOT NULL DEFAULT '0', `staff` int DEFAULT '0', `connection` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
CREATE TABLE `apps` (
`id` int NOT NULL, `owner` varchar(65) NOT NULL, `name` varchar(40) NOT NULL, `secret` varchar(64) NOT NULL, `ownerid` varchar(39) NOT NULL, `enabled` int NOT NULL, `banned` int NOT NULL DEFAULT '0', `paused` int NOT NULL DEFAULT '0', `hwidcheck` int NOT NULL, `vpnblock` int NOT NULL DEFAULT '0', `sellerkey` varchar(32) NOT NULL, `ver` varchar(5) NOT NULL DEFAULT '1.0', `download` varchar(120) DEFAULT NULL, `hash` varchar(2000) DEFAULT NULL, `webhook` varchar(130) DEFAULT NULL, `auditLogWebhook` varchar(130) DEFAULT NULL, `resellerstore` varchar(69) DEFAULT NULL, `appdisabled` varchar(100) NOT NULL DEFAULT 'This application is disabled', `usernametaken` varchar(100) NOT NULL DEFAULT 'Username already taken, choose a different one', `keynotfound` varchar(100) NOT NULL DEFAULT 'Invalid license key', `keyused` varchar(100) NOT NULL DEFAULT 'License key has already been used', `nosublevel` varchar(100) DEFAULT 'There is no subscription created for your key level. Contact application developer.', `usernamenotfound` varchar(100) NOT NULL DEFAULT 'Invalid username', `passmismatch` varchar(100) NOT NULL DEFAULT 'Password does not match.', `hwidmismatch` varchar(100) NOT NULL DEFAULT 'HWID doesn''t match. Ask for a HWID reset', `noactivesubs` varchar(100) NOT NULL DEFAULT 'No active subscription(s) found', `hwidblacked` varchar(100) NOT NULL DEFAULT 'You''ve been blacklisted from our application', `pausedsub` varchar(100) NOT NULL DEFAULT 'Your subscription is paused and can''t be used right now', `vpnblocked` varchar(100) NOT NULL DEFAULT 'VPNs are blocked on this application', `keybanned` varchar(100) NOT NULL DEFAULT 'Your license is banned', `userbanned` varchar(100) NOT NULL DEFAULT 'The user is banned', `sessionunauthed` varchar(100) NOT NULL DEFAULT 'Session is not validated', `hashcheckfail` varchar(100) NOT NULL DEFAULT 'This program hash does not match, make sure you''re using latest version', `loggedInMsg` varchar(99) NOT NULL DEFAULT 'Logged in!', `pausedApp` varchar(99) NOT NULL DEFAULT 'Application is currently paused, please wait for the developer to say otherwise.', `unTooShort` varchar(99) NOT NULL DEFAULT 'Username too short, try longer one.', `pwLeaked` varchar(99) NOT NULL DEFAULT 'This password has been leaked in a data breach (not from us), please use a different one.', `chatHitDelay` varchar(99) NOT NULL DEFAULT 'Chat slower, you''ve hit the delay limit', `sellixsecret` varchar(32) DEFAULT NULL, `sellixdayproduct` varchar(13) DEFAULT NULL, `sellixweekproduct` varchar(13) DEFAULT NULL, `sellixmonthproduct` varchar(13) DEFAULT NULL, `sellixlifetimeproduct` varchar(13) DEFAULT NULL, `shoppysecret` varchar(16) DEFAULT NULL, `shoppydayproduct` varchar(7) DEFAULT NULL, `shoppyweekproduct` varchar(7) DEFAULT NULL, `shoppymonthproduct` varchar(7) DEFAULT NULL, `shoppylifetimeproduct` varchar(7) DEFAULT NULL, `sellappsecret` varchar(64) DEFAULT NULL, `sellappdayproduct` varchar(199) DEFAULT NULL, `sellappweekproduct` varchar(199) DEFAULT NULL, `sellappmonthproduct` varchar(199) DEFAULT NULL, `sellapplifetimeproduct` varchar(199) DEFAULT NULL, `cooldown` int NOT NULL DEFAULT '604800', `panelstatus` int NOT NULL DEFAULT '1', `session` int NOT NULL DEFAULT '21600', `hashcheck` int NOT NULL DEFAULT '0', `webdownload` varchar(120) DEFAULT NULL, `customDomain` varchar(253) DEFAULT NULL, `format` varchar(99) NOT NULL DEFAULT '******-******-******-******-******- ******', `amount` int DEFAULT NULL, `lvl` int DEFAULT NULL, `note` varchar(69) DEFAULT NULL, `duration` int DEFAULT NULL, `unit` int DEFAULT NULL, `killOtherSessions` int NOT NULL DEFAULT '0', `cooldownUnit` int NOT NULL DEFAULT '86400', `sessionUnit` int NOT NULL DEFAULT '3600', `minUsernameLength` int NOT NULL DEFAULT '1', `blockLeakedPasswords` int NOT NULL DEFAULT '0', `forceEncryption` int NOT NULL DEFAULT '0', `customDomainAPI` varchar(253) DEFAULT NULL, `customerPanelIcon` varchar(200) NOT NULL DEFAULT 'https://cdn.keyauth.cc/front/assets/img/favicon.png', `forceHwid` int DEFAULT '1', `minHwid` int DEFAULT '20', `sellerLogs` int DEFAULT '0', `sellerApiWhitelist` varchar(49) DEFAULT NULL, `tokensystem` int NOT NULL DEFAULT '0', `tokeninvalid` varchar(99) NOT NULL DEFAULT 'Token Invalid' ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_general_ci;
CREATE TABLE `auditLog` (
`id` int NOT NULL, `user` varchar(65) NOT NULL, `event` varchar(999) NOT NULL, `time` int NOT NULL, `app` varchar(64) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_general_ci;
`id` int NOT NULL, `text` varchar(99) NOT NULL, `value` varchar(99) NOT NULL, `app` varchar(64) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_general_ci;
CREATE TABLE `chatmsgs` (
`id` int NOT NULL, `author` varchar(70) NOT NULL, `message` varchar(2000) NOT NULL, `timestamp` int NOT NULL, `channel` varchar(50) NOT NULL, `app` varchar(64) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_general_ci;
CREATE TABLE `chatmutes` (
`id` int NOT NULL, `user` varchar(70) NOT NULL, `time` int NOT NULL, `app` varchar(64) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_general_ci;
CREATE TABLE `chats` (
`id` int NOT NULL, `name` varchar(50) NOT NULL, `delay` int NOT NULL, `app` varchar(64) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_general_ci;
CREATE TABLE `emailverify` (
`id` int NOT NULL, `secret` varchar(32) NOT NULL, `email` varchar(40) NOT NULL, `time` int NOT NULL, `region` varchar(99) DEFAULT NULL, `asNum` varchar(20) DEFAULT NULL, `newEmail` varchar(40) DEFAULT NULL, `newUsername` varchar(99) DEFAULT NULL, `oldUsername` varchar(99) DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_general_ci;
CREATE TABLE `files` (
`pk` int NOT NULL, `name` varchar(49) NOT NULL, `id` varchar(49) NOT NULL, `url` varchar(2048) DEFAULT NULL, `size` varchar(49) NOT NULL, `uploaddate` varchar(49) NOT NULL, `app` varchar(64) NOT NULL, `authed` int NOT NULL DEFAULT '1' ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_general_ci;
CREATE TABLE `keys` (
`id` int NOT NULL, `key` varchar(70) NOT NULL, `note` varchar(69) DEFAULT NULL, `expires` varchar(49) NOT NULL, `status` varchar(49) NOT NULL, `level` varchar(12) NOT NULL DEFAULT '', `genby` varchar(65) DEFAULT NULL, `gendate` varchar(49) NOT NULL, `usedon` int DEFAULT NULL, `usedby` varchar(70) DEFAULT NULL, `app` varchar(64) NOT NULL, `banned` varchar(99) DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_general_ci;
CREATE TABLE `logs` (
`id` int NOT NULL, `logdate` varchar(49) NOT NULL, `logdata` varchar(275) NOT NULL, `credential` varchar(70) DEFAULT NULL, `pcuser` varchar(32) DEFAULT NULL, `logapp` varchar(64) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_general_ci;
CREATE TABLE `orders` (
`id` int NOT NULL, `orderID` varchar(36) NOT NULL, `username` varchar(65) NOT NULL, `date` int DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_general_ci;
CREATE TABLE `resets` (
`id` int NOT NULL, `secret` char(32) NOT NULL, `email` varchar(40) NOT NULL, `time` int NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_general_ci;
CREATE TABLE `resetUsers` (
`id` int NOT NULL, `secret` varchar(32) NOT NULL, `email` varchar(40) NOT NULL, `username` varchar(70) NOT NULL, `app` varchar(64) NOT NULL, `time` int NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_general_ci;
`id` int NOT NULL, `ip` varchar(45) NOT NULL, `path` varchar(999) NOT NULL, `date` int NOT NULL, `app` varchar(64) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_general_ci;
CREATE TABLE `sessions` (
`id` varchar(10) NOT NULL, `credential` varchar(70) DEFAULT NULL, `app` varchar(64) NOT NULL, `expiry` int NOT NULL, `created_at` int DEFAULT NULL, `enckey` varchar(100) DEFAULT NULL, `validated` int NOT NULL DEFAULT '0', `ip` varchar(45) DEFAULT NULL, `pk` int NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_general_ci;
CREATE TABLE `subs` (
`id` int NOT NULL, `user` varchar(70) NOT NULL, `subscription` varchar(49) NOT NULL, `expiry` varchar(49) NOT NULL, `app` varchar(64) NOT NULL, `key` varchar(70) DEFAULT NULL, `paused` int NOT NULL DEFAULT '0' ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_general_ci;
CREATE TABLE `subscriptions` (
`id` int NOT NULL, `name` varchar(49) NOT NULL, `level` varchar(12) NOT NULL, `app` varchar(64) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_general_ci;
CREATE TABLE `support` (
`id` int NOT NULL, `username` varchar(65) NOT NULL, `time` int NOT NULL, `message` varchar(200) DEFAULT NULL, `staff` int NOT NULL DEFAULT '0', `ownerid` varchar(65) DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_general_ci;
CREATE TABLE `tokens` (
`id` int NOT NULL, `app` varchar(255) NOT NULL, `token` varchar(32) NOT NULL, `assigned` varchar(255) NOT NULL, `banned` int NOT NULL DEFAULT '0', `reason` varchar(255) NOT NULL DEFAULT 'Token is banned', `hash` varchar(255) DEFAULT NULL, `type` varchar(255) NOT NULL, `status` varchar(255) NOT NULL DEFAULT 'Not Used' ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_general_ci;
CREATE TABLE `users` (
`id` int NOT NULL, `username` varchar(70) NOT NULL, `email` varchar(40) DEFAULT NULL, `password` varchar(60) DEFAULT NULL, `hwid` varchar(2000) DEFAULT NULL, `app` varchar(64) NOT NULL, `owner` varchar(65) DEFAULT NULL, `createdate` int DEFAULT NULL, `lastlogin` int DEFAULT NULL, `banned` varchar(99) DEFAULT NULL, `ip` varchar(49) DEFAULT NULL, `cooldown` int DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_general_ci;
CREATE TABLE `uservars` (
`id` int NOT NULL, `name` varchar(99) NOT NULL, `data` varchar(500) NOT NULL, `user` varchar(70) NOT NULL, `app` varchar(64) NOT NULL, `readOnly` int NOT NULL DEFAULT '0' ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_general_ci;
CREATE TABLE `vars` (
`id` int NOT NULL, `varid` varchar(49) NOT NULL, `msg` varchar(1000) NOT NULL, `app` varchar(64) NOT NULL, `authed` int NOT NULL DEFAULT '1' ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_general_ci;
CREATE TABLE `webhooks` (
`id` int NOT NULL, `webid` varchar(10) NOT NULL, `baselink` varchar(200) NOT NULL, `useragent` varchar(49) NOT NULL DEFAULT 'KeyAuth', `app` varchar(64) NOT NULL, `authed` int NOT NULL DEFAULT '1' ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_general_ci;
CREATE TABLE `whitelist` (
`id` int NOT NULL, `ip` varchar(49) NOT NULL, `app` varchar(64) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_general_ci;