text: -- phpMyAdmin SQL Dump
  -- version 5.1.1
  -- https://www.phpmyadmin.net/
  --
  -- Host: 127.0.0.1:3306
  -- Generation Time: Dec 23, 2021 at 08:56 PM
  -- Server version: 5.7.31
  -- PHP Version: 7.4.9
  
  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 */;
  
  --
  -- Database: `aurora-laminas`
  --
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `album`
  --
  
  DROP TABLE IF EXISTS `album`;
  CREATE TABLE IF NOT EXISTS `album` (
    `id` int(11) NOT NULL AUTO_INCREMENT,
    `artist` varchar(100) NOT NULL,
    `title` varchar(100) NOT NULL,
    PRIMARY KEY (`id`)
  ) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=utf8;
  
  --
  -- Dumping data for table `album`
  --
  
  INSERT INTO `album` (`id`, `artist`, `title`) VALUES
  (1, 'Hank Williams Jr.', 'Lone Wolf edit'),
  (2, 'Alan Jackson', 'Chatahoocie'),
  (3, 'Eminemmmmm', 'Love the way you lie'),
  (4, 'random artist', 'test title'),
  (5, 'home page artist', 'add from home page'),
  (6, 'test artist two', 'test two');
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `log`
  --
  
  DROP TABLE IF EXISTS `log`;
  CREATE TABLE IF NOT EXISTS `log` (
    `logId` int(11) NOT NULL AUTO_INCREMENT,
    `extra_userId` int(11) DEFAULT NULL,
    `extra_userName` varchar(255) DEFAULT NULL,
    `extra_role` tinytext,
    `extra_firstName` tinytext,
    `extra_lastName` tinytext,
    `priorityName` varchar(20) NOT NULL,
    `message` longtext NOT NULL,
    `timeStamp` varchar(255) NOT NULL,
    `priority` int(1) NOT NULL,
    `extra_referenceId` tinytext,
    `extra_errno` tinytext,
    `extra_file` text,
    `extra_line` text,
    `extra_trace` text,
    `fileId` int(11) NOT NULL DEFAULT '0',
    PRIMARY KEY (`logId`),
    KEY `userId` (`extra_userId`)
  ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `project`
  --
  
  DROP TABLE IF EXISTS `project`;
  CREATE TABLE IF NOT EXISTS `project` (
    `id` int(11) NOT NULL AUTO_INCREMENT,
    `userId` int(11) NOT NULL,
    `companyName` varchar(255) NOT NULL,
    `pageId` int(11) NOT NULL,
    `active` tinyint(4) NOT NULL DEFAULT '0',
    PRIMARY KEY (`id`)
  ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8;
  
  --
  -- Dumping data for table `project`
  --
  
  INSERT INTO `project` (`id`, `userId`, `companyName`, `pageId`, `active`) VALUES
  (1, 2, 'Webinertia', 1, 1);
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `project_files`
  --
  
  DROP TABLE IF EXISTS `project_files`;
  CREATE TABLE IF NOT EXISTS `project_files` (
    `id` int(11) NOT NULL AUTO_INCREMENT,
    `projectId` int(11) NOT NULL,
    `filePath` mediumtext NOT NULL,
    `fileName` varchar(255) NOT NULL,
    PRIMARY KEY (`id`),
    KEY `projectId` (`projectId`)
  ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `project_images`
  --
  
  DROP TABLE IF EXISTS `project_images`;
  CREATE TABLE IF NOT EXISTS `project_images` (
    `id` int(11) NOT NULL AUTO_INCREMENT,
    `projectId` int(11) NOT NULL,
    `imgPath` mediumtext NOT NULL,
    `fileName` varchar(255) NOT NULL,
    PRIMARY KEY (`id`),
    KEY `projectId` (`projectId`)
  ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `settings`
  --
  
  DROP TABLE IF EXISTS `settings`;
  CREATE TABLE IF NOT EXISTS `settings` (
    `id` int(11) NOT NULL AUTO_INCREMENT,
    `variable` varchar(255) NOT NULL,
    `value` varchar(255) NOT NULL,
    `settingType` tinytext NOT NULL,
    `label` tinytext NOT NULL,
    PRIMARY KEY (`id`),
    KEY `variable` (`variable`,`value`)
  ) ENGINE=InnoDB AUTO_INCREMENT=29 DEFAULT CHARSET=utf8;
  
  --
  -- Dumping data for table `settings`
  --
  
  INSERT INTO `settings` (`id`, `variable`, `value`, `settingType`, `label`) VALUES
  (1, 'allowedTags', '<h1>,<h2>,<h3>,<h4>,<h5>,<h6>,<hr>', 'text', 'Allowed Tags'),
  (2, 'enableCaptcha', '0', 'Checkbox', 'Enable Captcha Support'),
  (3, 'recaptchaPrivateKey', '6Lewcs0SAAAAAGfBkJsG1mxf-yGFUjq9JgglSwRL', 'text', 'Recaptcha Private Key'),
  (4, 'recaptchaPrivateKey', '6Lewcs0SAAAAAGfBkJsG1mxf-yGFUjq9JgglSwRL', 'text', 'Recaptcha Public Key'),
  (5, 'seoKeyWords', 'Aurora CMS, Webinertia.net, Php, MySQL', 'text', 'SEO Key Words'),
  (6, 'appName', 'Aurora CMS', 'Text', 'Application Name'),
  (7, 'smtpSenderAddress', 'devel@webinertia.net', 'Text', 'SMTP Sender Email'),
  (8, 'smtpSenderPasswd', '**bffbGfbd88**', 'Text', 'SMTP Sender Password'),
  (9, 'appContactEmail', 'jsmith@dirextion.com', 'Text', 'Website Contact Email'),
  (10, 'enableMobileSupport', '1', 'CheckBox', 'Enable Mobile App support'),
  (11, 'seoDescription', 'Aurora Content Management System', 'text', 'SEO Description'),
  (12, 'facebookAppId', '431812843521907', 'Text', 'Facebook App ID'),
  (13, 'faceBookSecretKey', 'd86702c59bd48f3a76bc57d923cd237e', 'Text', 'Facebook App Secret Key'),
  (14, 'enableFacebookPageLink', '1', 'CheckBox', 'Enable Facebook Page Link'),
  (15, 'enableFacebookOg', '0', 'Checkbox', 'Enable Facebook Open Graph Support'),
  (16, 'sessionLength', '86400', 'Text', 'Session Length (default is 1 day)'),
  (17, 'enableOnlineList', '1', 'Checkbox', 'Enable Online List'),
  (18, 'enableLogging', '1', 'Checkbox', 'Enable Logging'),
  (19, 'enableHomeTab', '1', 'Checkbox', 'Enable Home Menu Tab'),
  (20, 'enableLinkedLogo', '1', 'Checkbox', 'Enable Linked Logo'),
  (21, 'disableLogin', '0', 'checkbox', 'Disable User Login'),
  (22, 'disableRegistration', '0', 'checkbox', 'Disable Registration'),
  (23, 'timeFormat', 'm-j-Y g:i:s', 'text', 'Time Format (Month:Day:Year:Hr:Min:sec)'),
  (24, 'timeZone', 'America/Chicago', 'text', 'Time Zone'),
  (25, 'copyRightText', 'Aurora Content Management Test', 'text', 'Site Copyright Text'),
  (26, 'copyRightLink', 'http://webinertia.net/aurora', 'text', 'Copyright Link (If any)'),
  (27, 'footerText', 'Developed by Webinertia Data Systems', 'text', 'Footer Text (Next to copyright)'),
  (28, 'firebugDebug', '1', 'checkbox', 'Enable Firebug Debug Logger?');
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `user`
  --
  
  DROP TABLE IF EXISTS `user`;
  CREATE TABLE IF NOT EXISTS `user` (
    `id` int(11) NOT NULL AUTO_INCREMENT,
    `userName` varchar(100) NOT NULL,
    `email` varchar(320) NOT NULL,
    `password` varchar(255) NOT NULL,
    `role` varchar(255) NOT NULL DEFAULT 'user',
    `companyName` varchar(255) DEFAULT NULL,
    `regDate` tinytext,
    `active` tinyint(1) NOT NULL DEFAULT '0',
    `verified` tinyint(1) NOT NULL DEFAULT '0',
    `regHash` varchar(255) DEFAULT NULL,
    `resetHash` varchar(255) DEFAULT NULL,
    PRIMARY KEY (`id`)
  ) ENGINE=InnoDB AUTO_INCREMENT=28 DEFAULT CHARSET=utf8 COMMENT='will join user_profile table on id';
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `user_profile`
  --
  
  DROP TABLE IF EXISTS `user_profile`;
  CREATE TABLE IF NOT EXISTS `user_profile` (
    `id` int(11) NOT NULL AUTO_INCREMENT,
    `userId` int(11) NOT NULL,
    `firstName` varchar(255) NOT NULL,
    `lastName` varchar(255) NOT NULL,
    `avatarPath` mediumtext NOT NULL,
    `age` int(11) NOT NULL,
    `birthday` varchar(10) NOT NULL,
    `gender` varchar(6) NOT NULL,
    `race` varchar(255) NOT NULL,
    `bio` text NOT NULL,
    PRIMARY KEY (`id`),
    KEY `userId` (`userId`)
  ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8 COMMENT='dependent upon users table relational key is userId';
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `user_roles`
  --
  
  DROP TABLE IF EXISTS `user_roles`;
  CREATE TABLE IF NOT EXISTS `user_roles` (
    `id` int(11) NOT NULL AUTO_INCREMENT,
    `role` tinytext NOT NULL,
    `inheritsFrom` tinytext,
    `label` tinytext,
    PRIMARY KEY (`id`)
  ) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8;
  
  --
  -- Dumping data for table `user_roles`
  --
  
  INSERT INTO `user_roles` (`id`, `role`, `inheritsFrom`, `label`) VALUES
  (1, 'user', 'guest', 'Standard User'),
  (2, 'moderator', 'user', 'Moderator'),
  (3, 'admin', 'moderator', 'Administrator');
  
  --
  -- Constraints for dumped tables
  --
  
  --
  -- Constraints for table `log`
  --
  ALTER TABLE `log`
    ADD CONSTRAINT `log_ibfk_1` FOREIGN KEY (`extra_userId`) REFERENCES `user` (`id`) ON DELETE CASCADE ON UPDATE NO ACTION;
  
  --
  -- Constraints for table `project_files`
  --
  ALTER TABLE `project_files`
    ADD CONSTRAINT `project_files_ibfk_1` FOREIGN KEY (`projectId`) REFERENCES `project` (`id`) ON DELETE CASCADE ON UPDATE NO ACTION;
  
  --
  -- Constraints for table `project_images`
  --
  ALTER TABLE `project_images`
    ADD CONSTRAINT `project_images_ibfk_1` FOREIGN KEY (`projectId`) REFERENCES `project` (`id`) ON DELETE CASCADE ON UPDATE NO ACTION;
  
  --
  -- Constraints for table `user_profile`
  --
  ALTER TABLE `user_profile`
    ADD CONSTRAINT `user_profile_ibfk_1` FOREIGN KEY (`userId`) REFERENCES `user` (`id`) ON DELETE CASCADE ON UPDATE NO ACTION;
  COMMIT;
  
  /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
  /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
  /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
  