|
|
@@ -1,5 +1,5 @@ |
|
|
|
-- MySQL Script generated by MySQL Workbench |
|
|
|
-- Mon 21 May 2018 04:05:27 PM MDT |
|
|
|
-- Model: New Model Version: 1.0 |
|
|
|
-- MySQL Workbench Forward Engineering |
|
|
|
|
|
|
@@ -51,6 +51,7 @@ CREATE TABLE IF NOT EXISTS `accounthub`.`accounts` ( |
|
|
|
`realname` VARCHAR(255) NOT NULL, |
|
|
|
`email` VARCHAR(255) NULL DEFAULT 'NOEMAIL@EXAMPLE.COM', |
|
|
|
`authsecret` VARCHAR(100) NULL, |
|
|
|
`pin` VARCHAR(10) NULL, |
|
|
|
`phone1` VARCHAR(45) NOT NULL, |
|
|
|
`phone2` VARCHAR(45) NOT NULL, |
|
|
|
`acctstatus` INT NOT NULL DEFAULT 0, |
|
|
@@ -252,7 +253,8 @@ ENGINE = InnoDB; |
|
|
|
CREATE TABLE IF NOT EXISTS `accounthub`.`mobile_codes` ( |
|
|
|
`codeid` INT NOT NULL AUTO_INCREMENT, |
|
|
|
`uid` INT NOT NULL, |
|
|
|
`code` VARCHAR(45) NULL, |
|
|
|
`code` VARCHAR(45) NOT NULL DEFAULT '', |
|
|
|
`description` VARCHAR(255) NOT NULL DEFAULT '', |
|
|
|
PRIMARY KEY (`codeid`), |
|
|
|
UNIQUE INDEX `codeid_UNIQUE` (`codeid` ASC), |
|
|
|
INDEX `fk_mobile_codes_accounts1_idx` (`uid` ASC), |
|
|
@@ -366,6 +368,11 @@ INSERT INTO `accounthub`.`permissions` (`permid`, `permcode`, `perminfo`) VALUES |
|
|
|
INSERT INTO `accounthub`.`permissions` (`permid`, `permcode`, `perminfo`) VALUES (301, 'QWIKCLOCK_MANAGE', 'Edit punches and other data for managed users'); |
|
|
|
INSERT INTO `accounthub`.`permissions` (`permid`, `permcode`, `perminfo`) VALUES (302, 'QWIKCLOCK_EDITSELF', 'Edit own punches and other data'); |
|
|
|
INSERT INTO `accounthub`.`permissions` (`permid`, `permcode`, `perminfo`) VALUES (303, 'QWIKCLOCK_ADMIN', 'Add and edit shifts and other data for all users'); |
|
|
|
INSERT INTO `accounthub`.`permissions` (`permid`, `permcode`, `perminfo`) VALUES (400, 'SITEWRITER', 'Manage and edit websites, messages, and analytics'); |
|
|
|
INSERT INTO `accounthub`.`permissions` (`permid`, `permcode`, `perminfo`) VALUES (401, 'SITEWRITER_CONTACT', 'Manage messages sent via website contact forms'); |
|
|
|
INSERT INTO `accounthub`.`permissions` (`permid`, `permcode`, `perminfo`) VALUES (402, 'SITEWRITER_ANALYTICS', 'View website analytics'); |
|
|
|
INSERT INTO `accounthub`.`permissions` (`permid`, `permcode`, `perminfo`) VALUES (403, 'SITEWRITER_EDIT', 'Edit website content'); |
|
|
|
INSERT INTO `accounthub`.`permissions` (`permid`, `permcode`, `perminfo`) VALUES (404, 'SITEWRITER_FILES', 'Manage and upload files'); |
|
|
|
|
|
|
|
COMMIT; |
|
|
|
|