%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /home/opti/workflow/
Upload File :
Create Path :
Current File : /home/opti/workflow/EZone.sql

-- phpMyAdmin SQL Dump
-- version 4.5.4.1deb2ubuntu2.1
-- http://www.phpmyadmin.net
--
-- Host: localhost:3306
-- Generation Time: Feb 25, 2019 at 05:54 PM
-- Server version: 10.0.38-MariaDB-0ubuntu0.16.04.1
-- PHP Version: 7.3.2-3+ubuntu16.04.1+deb.sury.org+1

SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
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: `EZone`
--

-- --------------------------------------------------------

--
-- Table structure for table `BillingAccounts`
--

CREATE TABLE `BillingAccounts` (
  `id` int(11) NOT NULL,
  `accountLimit` decimal(10,0) DEFAULT NULL,
  `description` text,
  `invoiceId` int(11) DEFAULT NULL,
  `contactId` int(11) DEFAULT NULL,
  `paymentApplication` int(11) DEFAULT NULL,
  `createdAt` datetime NOT NULL,
  `updatedAt` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

-- --------------------------------------------------------

--
-- Table structure for table `branches`
--

CREATE TABLE `branches` (
  `id` int(11) NOT NULL,
  `branch_name` varchar(255) DEFAULT NULL,
  `branch_description` varchar(255) DEFAULT NULL,
  `region_id` int(11) DEFAULT NULL,
  `companyId` int(11) DEFAULT NULL,
  `added_by_id` int(11) DEFAULT NULL,
  `updated_by_id` int(11) DEFAULT NULL,
  `deleted_at` datetime DEFAULT NULL,
  `deleted_by_id` int(11) DEFAULT NULL,
  `createdAt` datetime NOT NULL,
  `updatedAt` datetime NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- --------------------------------------------------------

--
-- Table structure for table `Branches`
--

CREATE TABLE `Branches` (
  `id` int(11) NOT NULL,
  `name` varchar(255) DEFAULT NULL,
  `description` varchar(255) DEFAULT NULL,
  `regionId` int(255) DEFAULT NULL,
  `companyId` int(11) DEFAULT NULL,
  `added_by_id` int(11) DEFAULT NULL,
  `updated_by_id` int(11) DEFAULT NULL,
  `deletedAt` datetime DEFAULT NULL,
  `deletedById` int(11) DEFAULT NULL,
  `createdAt` datetime NOT NULL,
  `updatedAt` datetime NOT NULL,
  `orgId` int(11) NOT NULL,
  `email` varchar(255) NOT NULL,
  `headId` int(255) NOT NULL,
  `assistantId` int(255) NOT NULL,
  `addedById` int(255) NOT NULL,
  `updatedById` int(255) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

--
-- Dumping data for table `Branches`
--

INSERT INTO `Branches` (`id`, `name`, `description`, `regionId`, `companyId`, `added_by_id`, `updated_by_id`, `deletedAt`, `deletedById`, `createdAt`, `updatedAt`, `orgId`, `email`, `headId`, `assistantId`, `addedById`, `updatedById`) VALUES
(1, 'Marina', 'At Marina', 1, 2, 4, 4, NULL, NULL, '2014-04-04 00:00:00', '2014-04-04 00:00:00', 2, 'test@test.com', 4, 1, 4, 4);

-- --------------------------------------------------------

--
-- Table structure for table `BusinessStructures`
--

CREATE TABLE `BusinessStructures` (
  `id` int(11) NOT NULL,
  `orgId` int(11) DEFAULT NULL,
  `name` varchar(255) DEFAULT NULL,
  `orgStructureId` int(11) DEFAULT NULL,
  `createdAt` datetime NOT NULL,
  `updatedAt` datetime NOT NULL,
  `email` varchar(255) NOT NULL,
  `head` int(11) NOT NULL,
  `assistant` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

--
-- Dumping data for table `BusinessStructures`
--

INSERT INTO `BusinessStructures` (`id`, `orgId`, `name`, `orgStructureId`, `createdAt`, `updatedAt`, `email`, `head`, `assistant`) VALUES
(1, 2, 'Group', 0, '2019-02-21 08:48:40', '2019-02-21 09:42:22', 'est@test.com', 0, 0),
(3, 2, 'Test', 0, '2019-02-21 12:36:44', '2019-02-21 12:36:53', 'test@test.com', 0, 0),
(4, 2, 'Department', 0, '2019-02-21 12:57:32', '2019-02-21 12:57:32', 'test@test.com', 0, 0);

-- --------------------------------------------------------

--
-- Table structure for table `company`
--

CREATE TABLE `company` (
  `id` int(11) NOT NULL,
  `name` varchar(255) DEFAULT NULL,
  `description` varchar(255) DEFAULT NULL,
  `address` varchar(255) DEFAULT NULL,
  `createdAt` datetime NOT NULL,
  `updatedAt` datetime NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

--
-- Dumping data for table `company`
--

INSERT INTO `company` (`id`, `name`, `description`, `address`, `createdAt`, `updatedAt`) VALUES
(1, 'Optisoft', 'undefined', 'Marina', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(2, 'Optisoft', 'undefined', 'Marina', '0000-00-00 00:00:00', '0000-00-00 00:00:00');

-- --------------------------------------------------------

--
-- Table structure for table `CompanyStructures`
--

CREATE TABLE `CompanyStructures` (
  `id` int(11) NOT NULL,
  `orgId` int(11) DEFAULT NULL,
  `orgStructureId` int(11) DEFAULT NULL,
  `parentStructureId` int(11) DEFAULT NULL,
  `name` varchar(255) DEFAULT NULL,
  `email` varchar(255) DEFAULT NULL,
  `headId` int(11) DEFAULT NULL,
  `assistantId` int(11) DEFAULT NULL,
  `createdBy` int(11) DEFAULT NULL,
  `UpdatedBy` int(11) DEFAULT NULL,
  `deletedAt` datetime DEFAULT NULL,
  `deletedBy` int(11) DEFAULT NULL,
  `createdAt` datetime NOT NULL,
  `updatedAt` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

-- --------------------------------------------------------

--
-- Table structure for table `Contacts`
--

CREATE TABLE `Contacts` (
  `id` int(11) NOT NULL,
  `contactType` int(11) DEFAULT NULL,
  `contactId` int(11) DEFAULT NULL,
  `orgId` int(11) DEFAULT NULL,
  `description` text,
  `partyRole` int(11) DEFAULT NULL,
  `createdAt` datetime NOT NULL,
  `updatedAt` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

-- --------------------------------------------------------

--
-- Table structure for table `departments`
--

CREATE TABLE `departments` (
  `id` int(11) NOT NULL,
  `department_name` varchar(255) DEFAULT NULL,
  `department_description` varchar(255) DEFAULT NULL,
  `companyId` int(11) DEFAULT NULL,
  `added_by_id` int(11) DEFAULT NULL,
  `updated_by_id` int(11) DEFAULT NULL,
  `deleted_at` datetime DEFAULT NULL,
  `deleted_by_id` int(11) DEFAULT NULL,
  `createdAt` datetime NOT NULL,
  `updatedAt` datetime NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- --------------------------------------------------------

--
-- Table structure for table `Departments`
--

CREATE TABLE `Departments` (
  `id` int(11) NOT NULL,
  `department_name` varchar(255) DEFAULT NULL,
  `department_description` varchar(255) DEFAULT NULL,
  `companyId` int(11) DEFAULT NULL,
  `added_by_id` int(11) DEFAULT NULL,
  `updated_by_id` int(11) DEFAULT NULL,
  `deleted_at` datetime DEFAULT NULL,
  `deleted_by_id` int(11) DEFAULT NULL,
  `createdAt` datetime NOT NULL,
  `updatedAt` datetime NOT NULL,
  `orgId` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

--
-- Dumping data for table `Departments`
--

INSERT INTO `Departments` (`id`, `department_name`, `department_description`, `companyId`, `added_by_id`, `updated_by_id`, `deleted_at`, `deleted_by_id`, `createdAt`, `updatedAt`, `orgId`) VALUES
(1, 'Accounting', 'Decsbdj', 1, 1, 1, NULL, 2014, '2014-04-04 00:00:00', '2014-04-04 00:00:00', 2);

-- --------------------------------------------------------

--
-- Table structure for table `Grades`
--

CREATE TABLE `Grades` (
  `id` int(11) NOT NULL,
  `title` varchar(255) DEFAULT NULL,
  `orgId` int(11) DEFAULT NULL,
  `createdAt` datetime NOT NULL,
  `updatedAt` datetime NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

--
-- Dumping data for table `Grades`
--

INSERT INTO `Grades` (`id`, `title`, `orgId`, `createdAt`, `updatedAt`) VALUES
(1, 'Head', 2, '2014-02-04 00:00:00', '2014-04-04 00:00:00');

-- --------------------------------------------------------

--
-- Table structure for table `Groups`
--

CREATE TABLE `Groups` (
  `id` int(11) NOT NULL,
  `name` varchar(255) DEFAULT NULL,
  `nameLocal` varchar(255) DEFAULT NULL,
  `offsiteName` varchar(255) DEFAULT NULL,
  `address` text,
  `logoUrl` varchar(255) DEFAULT NULL,
  `comment` text,
  `createdAt` datetime NOT NULL,
  `updatedAt` datetime NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

-- --------------------------------------------------------

--
-- Table structure for table `InvoiceHistories`
--

CREATE TABLE `InvoiceHistories` (
  `id` int(11) NOT NULL,
  `invoiceId` int(11) DEFAULT NULL,
  `orgId` int(11) DEFAULT NULL,
  `statusId` int(11) DEFAULT NULL,
  `madeBy` int(11) DEFAULT NULL,
  `createdAt` datetime NOT NULL,
  `updatedAt` datetime NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

-- --------------------------------------------------------

--
-- Table structure for table `Invoices`
--

CREATE TABLE `Invoices` (
  `id` int(11) NOT NULL,
  `invoiceTypeId` int(11) DEFAULT NULL,
  `partyToId` int(11) DEFAULT NULL,
  `partyFromId` int(11) DEFAULT NULL,
  `roleTypeId` int(11) DEFAULT NULL,
  `statusId` int(11) DEFAULT NULL,
  `billingAccountId` int(11) DEFAULT NULL,
  `invoiceDate` datetime DEFAULT NULL,
  `dueDate` datetime DEFAULT NULL,
  `paidDate` datetime DEFAULT NULL,
  `invoiceMessage` varchar(255) DEFAULT NULL,
  `referenceNumber` varchar(255) DEFAULT NULL,
  `description` text,
  `currencyId` int(11) DEFAULT NULL,
  `paymentApplication` int(11) DEFAULT NULL,
  `createdAt` datetime NOT NULL,
  `updatedAt` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

-- --------------------------------------------------------

--
-- Table structure for table `InvoiceStatuses`
--

CREATE TABLE `InvoiceStatuses` (
  `id` int(11) NOT NULL,
  `title` varchar(255) DEFAULT NULL,
  `createdAt` datetime NOT NULL,
  `updatedAt` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

-- --------------------------------------------------------

--
-- Table structure for table `InvoiceTypes`
--

CREATE TABLE `InvoiceTypes` (
  `id` int(11) NOT NULL,
  `title` varchar(255) DEFAULT NULL,
  `description` text,
  `createdAt` datetime NOT NULL,
  `updatedAt` datetime NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

-- --------------------------------------------------------

--
-- Table structure for table `Items`
--

CREATE TABLE `Items` (
  `id` int(11) NOT NULL,
  `orgId` int(11) DEFAULT NULL,
  `name` varchar(255) DEFAULT NULL,
  `pieces` int(11) DEFAULT NULL,
  `createdAt` datetime NOT NULL,
  `updatedAt` datetime NOT NULL,
  `description` varchar(255) NOT NULL,
  `referenceNo` varchar(255) NOT NULL,
  `image` varchar(255) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

--
-- Dumping data for table `Items`
--

INSERT INTO `Items` (`id`, `orgId`, `name`, `pieces`, `createdAt`, `updatedAt`, `description`, `referenceNo`, `image`) VALUES
(4, 1, 'Shoe', 100, '2019-02-19 22:27:45', '2019-02-19 22:27:45', '', '', ''),
(5, 1, 'Food', 5, '2019-02-20 09:23:05', '2019-02-20 09:23:05', '', '', ''),
(9, 2, 'Factor', 10, '2019-02-22 03:42:51', '2019-02-22 03:42:51', '', 'COC41456602', '1550806971_9229.png');

-- --------------------------------------------------------

--
-- Table structure for table `Modules`
--

CREATE TABLE `Modules` (
  `id` int(11) NOT NULL,
  `companyId` int(11) DEFAULT NULL,
  `name` varchar(255) DEFAULT NULL,
  `createdBy` int(11) DEFAULT NULL,
  `createdAt` datetime NOT NULL,
  `updatedAt` datetime NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

-- --------------------------------------------------------

--
-- Table structure for table `MovedItems`
--

CREATE TABLE `MovedItems` (
  `id` int(11) NOT NULL,
  `orgId` int(11) DEFAULT NULL,
  `name` varchar(255) DEFAULT NULL,
  `peices` int(11) DEFAULT NULL,
  `ownerTypeId` int(11) DEFAULT NULL,
  `ownerId` int(11) DEFAULT NULL,
  `createdAt` datetime NOT NULL,
  `updatedAt` datetime NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

-- --------------------------------------------------------

--
-- Table structure for table `notifications`
--

CREATE TABLE `notifications` (
  `id` int(11) NOT NULL,
  `sender_id` int(11) DEFAULT NULL,
  `receiver_id` int(11) DEFAULT NULL,
  `notification_type` varchar(150) DEFAULT NULL,
  `notifiable_id` int(11) DEFAULT NULL,
  `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `notifications`
--

INSERT INTO `notifications` (`id`, `sender_id`, `receiver_id`, `notification_type`, `notifiable_id`, `created_at`, `updated_at`) VALUES
(1, 1, 1, 'processname_leave_application', 1, '2019-02-13 10:09:49', '2019-02-13 10:09:49'),
(2, 1, 1, 'processname_cash_request', 1, '2019-02-15 09:29:39', '2019-02-15 09:29:39'),
(3, 1, 1, 'processname_cash_request', 2, '2019-02-15 09:31:17', '2019-02-15 09:31:17');

-- --------------------------------------------------------

--
-- Table structure for table `Notifications`
--

CREATE TABLE `Notifications` (
  `id` int(11) NOT NULL,
  `senderId` int(11) DEFAULT NULL,
  `receiverId` int(11) DEFAULT NULL,
  `type` varchar(255) DEFAULT NULL,
  `notifiableId` int(11) DEFAULT NULL,
  `seen` int(11) DEFAULT '0',
  `message` varchar(255) DEFAULT NULL,
  `url` varchar(255) DEFAULT NULL,
  `createdAt` datetime NOT NULL,
  `updatedAt` datetime NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

-- --------------------------------------------------------

--
-- Table structure for table `OrganisationStructures`
--

CREATE TABLE `OrganisationStructures` (
  `id` int(11) NOT NULL,
  `structureId` int(11) DEFAULT NULL,
  `orgId` int(11) DEFAULT NULL,
  `parentId` int(11) DEFAULT NULL,
  `createdAt` datetime NOT NULL,
  `updatedAt` datetime NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

--
-- Dumping data for table `OrganisationStructures`
--

INSERT INTO `OrganisationStructures` (`id`, `structureId`, `orgId`, `parentId`, `createdAt`, `updatedAt`) VALUES
(1, 2, 2, 0, '2019-02-21 11:04:42', '2019-02-21 11:04:42'),
(2, 3, 2, 2, '2019-02-21 11:04:42', '2019-02-21 11:04:42');

-- --------------------------------------------------------

--
-- Table structure for table `Organizations`
--

CREATE TABLE `Organizations` (
  `id` int(11) NOT NULL,
  `name` varchar(255) DEFAULT NULL,
  `description` varchar(255) DEFAULT NULL,
  `address` varchar(255) DEFAULT NULL,
  `city` varchar(255) DEFAULT NULL,
  `state` varchar(255) DEFAULT NULL,
  `country` varchar(255) DEFAULT NULL,
  `postalCode` varchar(255) DEFAULT NULL,
  `email` varchar(255) DEFAULT NULL,
  `phone` varchar(255) DEFAULT NULL,
  `createdAt` datetime NOT NULL,
  `updatedAt` datetime NOT NULL,
  `createdBy` int(11) NOT NULL,
  `updatedBy` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

--
-- Dumping data for table `Organizations`
--

INSERT INTO `Organizations` (`id`, `name`, `description`, `address`, `city`, `state`, `country`, `postalCode`, `email`, `phone`, `createdAt`, `updatedAt`, `createdBy`, `updatedBy`) VALUES
(2, 'Coca-cola', 'alkafjbfan', 'Somwhere', 'Eko', 'Lagos State', 'Nigeria', NULL, 'est@test.com', '08158384755', '2019-02-20 13:45:45', '2019-02-21 01:15:58', 1, 1),
(4, 'Food', 'akjbf', 'aljbovl', 'Eko', 'Lagos State', 'Nigeria', NULL, 'food@test.com', 'agaewgawrg', '2019-02-20 15:34:37', '2019-02-20 15:34:37', 1, 0);

-- --------------------------------------------------------

--
-- Table structure for table `PaymentHistories`
--

CREATE TABLE `PaymentHistories` (
  `id` int(11) NOT NULL,
  `paymentId` int(11) DEFAULT NULL,
  `orgId` int(11) DEFAULT NULL,
  `statusId` int(11) DEFAULT NULL,
  `madeBy` int(11) DEFAULT NULL,
  `createdAt` datetime NOT NULL,
  `updatedAt` datetime NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

-- --------------------------------------------------------

--
-- Table structure for table `PaymentMethods`
--

CREATE TABLE `PaymentMethods` (
  `id` int(11) NOT NULL,
  `title` varchar(255) DEFAULT NULL,
  `code` varchar(255) DEFAULT NULL,
  `description` text,
  `createdAt` datetime NOT NULL,
  `updatedAt` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

-- --------------------------------------------------------

--
-- Table structure for table `Payments`
--

CREATE TABLE `Payments` (
  `id` int(11) NOT NULL,
  `paymentTypeId` int(11) DEFAULT NULL,
  `orgId` int(11) DEFAULT NULL,
  `partyFromId` int(11) DEFAULT NULL,
  `partyToId` int(11) DEFAULT NULL,
  `paymentReference` varchar(255) DEFAULT NULL,
  `paymentMethodId` int(11) DEFAULT NULL,
  `PaymentMethodTypeId` int(11) DEFAULT NULL,
  `effectiveDate` datetime DEFAULT NULL,
  `paymentRefNum` varchar(255) DEFAULT NULL,
  `amount` decimal(10,0) DEFAULT NULL,
  `currencyId` int(11) DEFAULT NULL,
  `comment` text,
  `createdAt` datetime NOT NULL,
  `updatedAt` datetime NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

-- --------------------------------------------------------

--
-- Table structure for table `PaymentStatuses`
--

CREATE TABLE `PaymentStatuses` (
  `id` int(11) NOT NULL,
  `title` varchar(255) DEFAULT NULL,
  `createdAt` datetime NOT NULL,
  `updatedAt` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

-- --------------------------------------------------------

--
-- Table structure for table `PaymentTypes`
--

CREATE TABLE `PaymentTypes` (
  `id` int(11) NOT NULL,
  `title` varchar(255) DEFAULT NULL,
  `description` varchar(255) DEFAULT NULL,
  `createdAt` datetime NOT NULL,
  `updatedAt` datetime NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

-- --------------------------------------------------------

--
-- Table structure for table `people`
--

CREATE TABLE `people` (
  `id` int(11) NOT NULL,
  `saluataion` varchar(255) DEFAULT NULL,
  `firstname` varchar(255) DEFAULT NULL,
  `lastname` varchar(255) DEFAULT NULL,
  `middlename` varchar(255) NOT NULL,
  `gender` int(11) DEFAULT NULL,
  `suffix` varchar(255) DEFAULT NULL,
  `birthday` datetime DEFAULT NULL,
  `maritalStatus` int(11) DEFAULT NULL,
  `createdAt` datetime NOT NULL,
  `updatedAt` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

-- --------------------------------------------------------

--
-- Table structure for table `regions`
--

CREATE TABLE `regions` (
  `id` int(11) NOT NULL,
  `region_name` varchar(255) DEFAULT NULL,
  `region_description` varchar(255) DEFAULT NULL,
  `companyId` int(11) DEFAULT NULL,
  `added_by_id` int(11) DEFAULT NULL,
  `updated_by_id` int(11) DEFAULT NULL,
  `deleted_at` datetime DEFAULT NULL,
  `deleted_by_id` int(11) DEFAULT NULL,
  `createdAt` datetime NOT NULL,
  `updatedAt` datetime NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- --------------------------------------------------------

--
-- Table structure for table `Regions`
--

CREATE TABLE `Regions` (
  `id` int(11) NOT NULL,
  `name` varchar(255) DEFAULT NULL,
  `description` varchar(255) DEFAULT NULL,
  `companyId` int(11) DEFAULT NULL,
  `addedById` int(11) DEFAULT NULL,
  `updatedById` int(11) DEFAULT NULL,
  `deletedAt` datetime DEFAULT NULL,
  `deletedById` int(11) DEFAULT NULL,
  `createdAt` datetime NOT NULL,
  `updatedAt` datetime NOT NULL,
  `orgId` int(255) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

--
-- Dumping data for table `Regions`
--

INSERT INTO `Regions` (`id`, `name`, `description`, `companyId`, `addedById`, `updatedById`, `deletedAt`, `deletedById`, `createdAt`, `updatedAt`, `orgId`) VALUES
(1, 'Lagos', 'Desjbafsjbfd', 1, 4, 4, NULL, NULL, '2014-04-04 00:00:00', '2014-04-04 00:00:00', 2);

-- --------------------------------------------------------

--
-- Table structure for table `RequestHistories`
--

CREATE TABLE `RequestHistories` (
  `id` int(11) NOT NULL,
  `requestId` int(11) DEFAULT NULL,
  `updatedBy` int(11) DEFAULT NULL,
  `status` varchar(255) DEFAULT NULL,
  `message` varchar(255) DEFAULT NULL,
  `createdAt` datetime NOT NULL,
  `updatedAt` datetime NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

-- --------------------------------------------------------

--
-- Table structure for table `Requests`
--

CREATE TABLE `Requests` (
  `id` int(11) NOT NULL,
  `uuid` char(36) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL,
  `serviceType` varchar(255) DEFAULT NULL,
  `description` varchar(255) DEFAULT NULL,
  `supervisorComment` varchar(255) DEFAULT NULL,
  `workflowId` int(11) DEFAULT NULL,
  `owner` int(11) DEFAULT NULL,
  `targetedStructure` int(11) DEFAULT NULL,
  `nextOfficer` int(11) DEFAULT NULL,
  `previousOfficer` int(11) DEFAULT NULL,
  `createdAt` datetime NOT NULL,
  `updatedAt` datetime NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

-- --------------------------------------------------------

--
-- Table structure for table `roles`
--

CREATE TABLE `roles` (
  `id` int(11) NOT NULL,
  `role_name` varchar(255) DEFAULT NULL,
  `companyId` int(11) DEFAULT NULL,
  `role_description` varchar(255) DEFAULT NULL,
  `added_by_id` int(11) DEFAULT NULL,
  `updated_by_id` int(11) DEFAULT NULL,
  `createdAt` datetime NOT NULL,
  `updatedAt` datetime NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- --------------------------------------------------------

--
-- Table structure for table `Roles`
--

CREATE TABLE `Roles` (
  `id` int(11) NOT NULL,
  `name` varchar(255) DEFAULT NULL,
  `orgId` int(11) DEFAULT NULL,
  `description` varchar(255) DEFAULT NULL,
  `createdBy` int(11) DEFAULT NULL,
  `updatedBy` int(11) DEFAULT NULL,
  `createdAt` datetime NOT NULL,
  `updatedAt` datetime NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

--
-- Dumping data for table `Roles`
--

INSERT INTO `Roles` (`id`, `name`, `orgId`, `description`, `createdBy`, `updatedBy`, `createdAt`, `updatedAt`) VALUES
(1, 'Admin', 1, 'test', 1, NULL, '2019-02-21 12:48:22', '2019-02-21 12:48:22'),
(2, 'Staff', 2, 'staff', 4, NULL, '2019-02-25 05:34:01', '2019-02-25 05:34:01');

-- --------------------------------------------------------

--
-- Table structure for table `rolesrights`
--

CREATE TABLE `rolesrights` (
  `id` int(11) NOT NULL,
  `can_create` tinyint(1) DEFAULT NULL,
  `can_edit` tinyint(1) DEFAULT NULL,
  `can_override` tinyint(1) DEFAULT NULL,
  `can_view` tinyint(1) DEFAULT NULL,
  `can_delete` tinyint(1) DEFAULT NULL,
  `companyId` int(11) DEFAULT NULL,
  `module_id` int(11) DEFAULT NULL,
  `role_id` int(11) DEFAULT NULL,
  `added_by_id` int(11) DEFAULT NULL,
  `updated_by_id` int(11) DEFAULT NULL,
  `createdAt` datetime NOT NULL,
  `updatedAt` datetime NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- --------------------------------------------------------

--
-- Table structure for table `RolesRights`
--

CREATE TABLE `RolesRights` (
  `id` int(11) NOT NULL,
  `can_create` tinyint(1) DEFAULT NULL,
  `can_edit` tinyint(1) DEFAULT NULL,
  `can_override` tinyint(1) DEFAULT NULL,
  `can_view` tinyint(1) DEFAULT NULL,
  `can_delete` tinyint(1) DEFAULT NULL,
  `companyId` int(11) DEFAULT NULL,
  `module_id` int(11) DEFAULT NULL,
  `role_id` int(11) DEFAULT NULL,
  `added_by_id` int(11) DEFAULT NULL,
  `updated_by_id` int(11) DEFAULT NULL,
  `createdAt` datetime NOT NULL,
  `updatedAt` datetime NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

-- --------------------------------------------------------

--
-- Table structure for table `saved_processes`
--

CREATE TABLE `saved_processes` (
  `id` int(11) NOT NULL,
  `table_name` varchar(250) NOT NULL,
  `companyId` int(5) NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- --------------------------------------------------------

--
-- Table structure for table `SequelizeMeta`
--

CREATE TABLE `SequelizeMeta` (
  `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `SequelizeMeta`
--

INSERT INTO `SequelizeMeta` (`name`) VALUES
('20190215234358-create-roles.js'),
('20190215234400-create-roles-rights.js'),
('20190215234403-create-user-rights.js'),
('20190215234406-create-branches.js'),
('20190215234411-create-department.js'),
('20190215234413-create-units.js'),
('20190215234416-create-company.js'),
('20190215234418-create-users.js'),
('20190215234509-create-regions.js'),
('20190219085217-create-roles.js'),
('20190219085603-create-modules.js'),
('20190219105300-create-payment-type.js'),
('20190219110832-create-structure.js'),
('20190219114757-create-organisation-structure.js'),
('20190219131444-create-payment-method.js'),
('20190219155101-create-payment-status.js'),
('20190219155224-create-item.js'),
('20190219160653-create-moved-item.js'),
('20190219161027-create-billing-account.js'),
('20190219162512-create-invoice.js'),
('20190219162513-create-payment-history.js'),
('20190219162552-create-roles.js'),
('20190219162936-create-invoice-history.js'),
('20190219163954-create-invoice-type.js'),
('20190219165647-create-payment.js'),
('20190220013056-create-module.js'),
('20190220082242-create-contact.js'),
('20190220082600-create-person.js'),
('20190220082909-create-group.js'),
('20190220094107-create-user.js'),
('20190220095713-create-business-structure.js'),
('20190220112542-create-user-role.js'),
('20190220123639-create-organization.js'),
('20190220144300-create-roles-right.js'),
('20190220150649-create-modules.js'),
('20190222012433-create-company-structure.js'),
('20190222023248-create-grade.js'),
('20190222133036-create-user-role.js'),
('20190223214653-create-workflow.js'),
('20190224142736-create-request.js'),
('20190224150200-create-request-history.js'),
('20190224150718-create-notification.js'),
('20190229155101-create-invoice-status.1.js'),
('20190229155101-create-invoice-status.js');

-- --------------------------------------------------------

--
-- Table structure for table `sequelizemeta`
--

CREATE TABLE `sequelizemeta` (
  `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `sequelizemeta`
--

INSERT INTO `sequelizemeta` (`name`) VALUES
('20190215234358-create-roles.js'),
('20190215234400-create-roles-rights.js'),
('20190215234403-create-user-rights.js'),
('20190215234406-create-branches.js'),
('20190215234411-create-department.js'),
('20190215234413-create-units.js'),
('20190215234416-create-company.js'),
('20190215234418-create-users.js'),
('20190215234509-create-regions.js');

-- --------------------------------------------------------

--
-- Table structure for table `Structures`
--

CREATE TABLE `Structures` (
  `id` int(11) NOT NULL,
  `name` varchar(255) DEFAULT NULL,
  `createdAt` datetime NOT NULL,
  `updatedAt` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

--
-- Dumping data for table `Structures`
--

INSERT INTO `Structures` (`id`, `name`, `createdAt`, `updatedAt`) VALUES
(1, 'Branch', '2019-02-20 00:00:00', NULL),
(2, 'Unit', '2019-02-21 11:04:42', '2019-02-21 11:04:42'),
(3, 'Sam', '2019-02-21 11:04:42', '2019-02-21 11:04:42');

-- --------------------------------------------------------

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

CREATE TABLE `units` (
  `id` int(11) NOT NULL,
  `unit_name` varchar(255) DEFAULT NULL,
  `unit_description` varchar(255) DEFAULT NULL,
  `department_id` int(11) DEFAULT NULL,
  `companyId` int(11) DEFAULT NULL,
  `added_by_id` int(11) DEFAULT NULL,
  `updated_by_id` int(11) DEFAULT NULL,
  `deleted_at` datetime DEFAULT NULL,
  `deleted_by_id` int(11) DEFAULT NULL,
  `createdAt` datetime NOT NULL,
  `updatedAt` datetime NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- --------------------------------------------------------

--
-- Table structure for table `Units`
--

CREATE TABLE `Units` (
  `id` int(11) NOT NULL,
  `unit_name` varchar(255) DEFAULT NULL,
  `unit_description` varchar(255) DEFAULT NULL,
  `department_id` int(11) DEFAULT NULL,
  `companyId` int(11) DEFAULT NULL,
  `added_by_id` int(11) DEFAULT NULL,
  `updated_by_id` int(11) DEFAULT NULL,
  `deleted_at` datetime DEFAULT NULL,
  `deleted_by_id` int(11) DEFAULT NULL,
  `createdAt` datetime NOT NULL,
  `updatedAt` datetime NOT NULL,
  `orgId` int(11) NOT NULL,
  `department` varchar(255) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

--
-- Dumping data for table `Units`
--

INSERT INTO `Units` (`id`, `unit_name`, `unit_description`, `department_id`, `companyId`, `added_by_id`, `updated_by_id`, `deleted_at`, `deleted_by_id`, `createdAt`, `updatedAt`, `orgId`, `department`) VALUES
(1, 'Section A', 'Blah Blah', 1, 2, 4, 4, NULL, NULL, '2014-04-04 00:00:00', '2014-04-04 00:00:00', 2, 'null');

-- --------------------------------------------------------

--
-- Table structure for table `userrights`
--

CREATE TABLE `userrights` (
  `id` int(11) NOT NULL,
  `can_create` tinyint(1) DEFAULT NULL,
  `can_edit` tinyint(1) DEFAULT NULL,
  `can_override` tinyint(1) DEFAULT NULL,
  `can_view` tinyint(1) DEFAULT NULL,
  `can_delete` tinyint(1) DEFAULT NULL,
  `companyId` int(11) DEFAULT NULL,
  `user_id` int(11) DEFAULT NULL,
  `added_by_id` int(11) DEFAULT NULL,
  `updated_by_id` int(11) DEFAULT NULL,
  `createdAt` datetime NOT NULL,
  `updatedAt` datetime NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- --------------------------------------------------------

--
-- Table structure for table `UserRights`
--

CREATE TABLE `UserRights` (
  `id` int(11) NOT NULL,
  `can_create` tinyint(1) DEFAULT NULL,
  `can_edit` tinyint(1) DEFAULT NULL,
  `can_override` tinyint(1) DEFAULT NULL,
  `can_view` tinyint(1) DEFAULT NULL,
  `can_delete` tinyint(1) DEFAULT NULL,
  `companyId` int(11) DEFAULT NULL,
  `user_id` int(11) DEFAULT NULL,
  `added_by_id` int(11) DEFAULT NULL,
  `updated_by_id` int(11) DEFAULT NULL,
  `createdAt` datetime NOT NULL,
  `updatedAt` datetime NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

-- --------------------------------------------------------

--
-- Table structure for table `UserRoles`
--

CREATE TABLE `UserRoles` (
  `id` int(11) NOT NULL,
  `userId` int(11) DEFAULT NULL,
  `roleId` int(11) DEFAULT NULL,
  `orgId` int(11) DEFAULT NULL,
  `createdAt` datetime NOT NULL,
  `updatedAt` datetime NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

-- --------------------------------------------------------

--
-- Table structure for table `Users`
--

CREATE TABLE `Users` (
  `id` int(11) NOT NULL,
  `firstName` varchar(255) DEFAULT NULL,
  `lastName` varchar(255) DEFAULT NULL,
  `email` varchar(255) DEFAULT NULL,
  `phone` varchar(255) DEFAULT NULL,
  `password` varchar(255) DEFAULT NULL,
  `branch_id` int(11) DEFAULT NULL,
  `orgId` int(11) DEFAULT NULL,
  `user_role` int(11) DEFAULT NULL,
  `createdAt` datetime NOT NULL,
  `updatedAt` datetime NOT NULL,
  `isAdmin` tinyint(1) NOT NULL DEFAULT '0',
  `isEmployee` tinyint(1) NOT NULL DEFAULT '0',
  `structureId` int(11) NOT NULL,
  `middleName` varchar(255) NOT NULL,
  `roleId` enum('isAdmin','isSuperAdmin','isEmployee','') NOT NULL,
  `image` varchar(255) NOT NULL,
  `dob` date NOT NULL,
  `avatar` varchar(255) NOT NULL,
  `gradeId` int(11) NOT NULL,
  `unitId` int(11) NOT NULL,
  `branchId` int(11) NOT NULL,
  `departmentId` int(11) NOT NULL,
  `regionId` int(255) NOT NULL,
  `gender` enum('male','female','','') NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

--
-- Dumping data for table `Users`
--

INSERT INTO `Users` (`id`, `firstName`, `lastName`, `email`, `phone`, `password`, `branch_id`, `orgId`, `user_role`, `createdAt`, `updatedAt`, `isAdmin`, `isEmployee`, `structureId`, `middleName`, `roleId`, `image`, `dob`, `avatar`, `gradeId`, `unitId`, `branchId`, `departmentId`, `regionId`, `gender`) VALUES
(1, 'Samson', 'Oluokun', 'samson.oluokun@optisoft.ng', '08158384755', '$2b$10$w0vYYBAr24mGRtfdrT56weaCNM9Ju0KXDih544v1zwqXZMtrQIz8C', NULL, 2, 1, '0000-00-00 00:00:00', '2019-02-25 16:03:36', 0, 0, 0, 'Melina', 'isAdmin', '1551110616_4482.', '0000-00-00', '', 0, 0, 0, 0, 0, 'male'),
(3, 'Demo2', 'Admin2', 'food@test.com', NULL, '$2b$10$OKqKUc/No0IUV10//dwgru82E2wT7DMWNPGmrK9uP8VZzByg2VJla', NULL, 4, NULL, '2019-02-20 15:34:37', '2019-02-20 15:34:37', 1, 0, 0, '', 'isAdmin', '', '0000-00-00', '', 0, 0, 0, 0, 0, 'male'),
(4, 'Sam', 'Dan', 'test@test.com', 'OPE67134', '$2b$10$IYgCDn/b7ChuPCUcAGIDCuZk6Paoh05EavrGKHJS/RFHruSxuoHZa', NULL, 2, 1, '0000-00-00 00:00:00', '0000-00-00 00:00:00', 0, 0, 0, '', 'isAdmin', '', '0000-00-00', '', 0, 0, 0, 0, 0, 'male'),
(5, 'Rose', 'Ojuku', 'rose@test.com', NULL, '$2b$10$HfO3wCmAF860cCW2cVqP0eBuErEh5xBQJmrx4iaad7ou6OIJRU.xy', NULL, 2, NULL, '2019-02-22 11:45:41', '2019-02-22 11:45:41', 0, 1, 0, 'Drago', 'isEmployee', '1550835940_9589.png', '2019-02-12', '', 0, 0, 0, 0, 0, 'female');

-- --------------------------------------------------------

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

CREATE TABLE `users` (
  `id` int(11) NOT NULL,
  `firstName` varchar(255) DEFAULT NULL,
  `lastName` varchar(255) DEFAULT NULL,
  `phone` varchar(255) DEFAULT NULL,
  `email` varchar(255) DEFAULT NULL,
  `password` varchar(255) DEFAULT NULL,
  `branch_id` int(11) DEFAULT NULL,
  `orgId` int(11) DEFAULT NULL,
  `user_role` int(11) DEFAULT NULL,
  `createdAt` datetime NOT NULL,
  `updatedAt` datetime NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

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

INSERT INTO `users` (`id`, `firstName`, `lastName`, `phone`, `email`, `password`, `branch_id`, `orgId`, `user_role`, `createdAt`, `updatedAt`) VALUES
(1, 'Samson', 'Oluokun', '08158384755', 'samson.oluokun@optisoft.ng', '$2b$10$2BPwQGlhPHJ3VzGoDXyFmeaSQrKZCwsQYTME.C4uOKt6lKj4GvXdS', NULL, 2, 1, '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(2, 'Afeez', 'Okoro', NULL, 'test@test.com', NULL, NULL, NULL, NULL, '2019-02-20 11:33:26', '2019-02-20 11:33:26'),
(3, 'Rose', 'Mary', '08158384755', 'rose@test.com', NULL, NULL, NULL, NULL, '2019-02-20 11:37:48', '2019-02-20 11:37:48');

-- --------------------------------------------------------

--
-- Table structure for table `Workflows`
--

CREATE TABLE `Workflows` (
  `id` int(11) NOT NULL,
  `uuid` char(36) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL,
  `name` varchar(255) DEFAULT NULL,
  `companyStructureId` int(11) DEFAULT NULL,
  `orgId` int(11) DEFAULT NULL,
  `createdBy` int(11) DEFAULT NULL,
  `updatedBy` int(11) DEFAULT NULL,
  `createdAt` datetime NOT NULL,
  `updatedAt` datetime NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

--
-- Indexes for dumped tables
--

--
-- Indexes for table `BillingAccounts`
--
ALTER TABLE `BillingAccounts`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `branches`
--
ALTER TABLE `branches`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `Branches`
--
ALTER TABLE `Branches`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `BusinessStructures`
--
ALTER TABLE `BusinessStructures`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `company`
--
ALTER TABLE `company`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `CompanyStructures`
--
ALTER TABLE `CompanyStructures`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `Contacts`
--
ALTER TABLE `Contacts`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `departments`
--
ALTER TABLE `departments`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `Departments`
--
ALTER TABLE `Departments`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `Grades`
--
ALTER TABLE `Grades`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `Groups`
--
ALTER TABLE `Groups`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `InvoiceHistories`
--
ALTER TABLE `InvoiceHistories`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `Invoices`
--
ALTER TABLE `Invoices`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `InvoiceStatuses`
--
ALTER TABLE `InvoiceStatuses`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `InvoiceTypes`
--
ALTER TABLE `InvoiceTypes`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `Items`
--
ALTER TABLE `Items`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `Modules`
--
ALTER TABLE `Modules`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `MovedItems`
--
ALTER TABLE `MovedItems`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `notifications`
--
ALTER TABLE `notifications`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `Notifications`
--
ALTER TABLE `Notifications`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `OrganisationStructures`
--
ALTER TABLE `OrganisationStructures`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `Organizations`
--
ALTER TABLE `Organizations`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `PaymentHistories`
--
ALTER TABLE `PaymentHistories`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `PaymentMethods`
--
ALTER TABLE `PaymentMethods`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `Payments`
--
ALTER TABLE `Payments`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `PaymentStatuses`
--
ALTER TABLE `PaymentStatuses`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `PaymentTypes`
--
ALTER TABLE `PaymentTypes`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `people`
--
ALTER TABLE `people`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `regions`
--
ALTER TABLE `regions`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `Regions`
--
ALTER TABLE `Regions`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `RequestHistories`
--
ALTER TABLE `RequestHistories`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `Requests`
--
ALTER TABLE `Requests`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `roles`
--
ALTER TABLE `roles`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `Roles`
--
ALTER TABLE `Roles`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `rolesrights`
--
ALTER TABLE `rolesrights`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `RolesRights`
--
ALTER TABLE `RolesRights`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `saved_processes`
--
ALTER TABLE `saved_processes`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `SequelizeMeta`
--
ALTER TABLE `SequelizeMeta`
  ADD PRIMARY KEY (`name`),
  ADD UNIQUE KEY `name` (`name`);

--
-- Indexes for table `sequelizemeta`
--
ALTER TABLE `sequelizemeta`
  ADD PRIMARY KEY (`name`),
  ADD UNIQUE KEY `name` (`name`);

--
-- Indexes for table `Structures`
--
ALTER TABLE `Structures`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `units`
--
ALTER TABLE `units`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `Units`
--
ALTER TABLE `Units`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `userrights`
--
ALTER TABLE `userrights`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `UserRights`
--
ALTER TABLE `UserRights`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `UserRoles`
--
ALTER TABLE `UserRoles`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `Users`
--
ALTER TABLE `Users`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `users`
--
ALTER TABLE `users`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `Workflows`
--
ALTER TABLE `Workflows`
  ADD PRIMARY KEY (`id`);

--
-- AUTO_INCREMENT for dumped tables
--

--
-- AUTO_INCREMENT for table `BillingAccounts`
--
ALTER TABLE `BillingAccounts`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `branches`
--
ALTER TABLE `branches`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `Branches`
--
ALTER TABLE `Branches`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;
--
-- AUTO_INCREMENT for table `BusinessStructures`
--
ALTER TABLE `BusinessStructures`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;
--
-- AUTO_INCREMENT for table `company`
--
ALTER TABLE `company`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;
--
-- AUTO_INCREMENT for table `CompanyStructures`
--
ALTER TABLE `CompanyStructures`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `Contacts`
--
ALTER TABLE `Contacts`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `departments`
--
ALTER TABLE `departments`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `Departments`
--
ALTER TABLE `Departments`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;
--
-- AUTO_INCREMENT for table `Grades`
--
ALTER TABLE `Grades`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;
--
-- AUTO_INCREMENT for table `Groups`
--
ALTER TABLE `Groups`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `InvoiceHistories`
--
ALTER TABLE `InvoiceHistories`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `Invoices`
--
ALTER TABLE `Invoices`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `InvoiceStatuses`
--
ALTER TABLE `InvoiceStatuses`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `InvoiceTypes`
--
ALTER TABLE `InvoiceTypes`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `Items`
--
ALTER TABLE `Items`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=11;
--
-- AUTO_INCREMENT for table `Modules`
--
ALTER TABLE `Modules`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `MovedItems`
--
ALTER TABLE `MovedItems`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `notifications`
--
ALTER TABLE `notifications`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;
--
-- AUTO_INCREMENT for table `Notifications`
--
ALTER TABLE `Notifications`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `OrganisationStructures`
--
ALTER TABLE `OrganisationStructures`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;
--
-- AUTO_INCREMENT for table `Organizations`
--
ALTER TABLE `Organizations`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;
--
-- AUTO_INCREMENT for table `PaymentHistories`
--
ALTER TABLE `PaymentHistories`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `PaymentMethods`
--
ALTER TABLE `PaymentMethods`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `Payments`
--
ALTER TABLE `Payments`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `PaymentStatuses`
--
ALTER TABLE `PaymentStatuses`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `PaymentTypes`
--
ALTER TABLE `PaymentTypes`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `people`
--
ALTER TABLE `people`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `regions`
--
ALTER TABLE `regions`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `Regions`
--
ALTER TABLE `Regions`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;
--
-- AUTO_INCREMENT for table `RequestHistories`
--
ALTER TABLE `RequestHistories`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `Requests`
--
ALTER TABLE `Requests`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `roles`
--
ALTER TABLE `roles`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `Roles`
--
ALTER TABLE `Roles`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;
--
-- AUTO_INCREMENT for table `rolesrights`
--
ALTER TABLE `rolesrights`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `RolesRights`
--
ALTER TABLE `RolesRights`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `saved_processes`
--
ALTER TABLE `saved_processes`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `Structures`
--
ALTER TABLE `Structures`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;
--
-- AUTO_INCREMENT for table `units`
--
ALTER TABLE `units`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `Units`
--
ALTER TABLE `Units`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;
--
-- AUTO_INCREMENT for table `userrights`
--
ALTER TABLE `userrights`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `UserRights`
--
ALTER TABLE `UserRights`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `UserRoles`
--
ALTER TABLE `UserRoles`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `Users`
--
ALTER TABLE `Users`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6;
--
-- AUTO_INCREMENT for table `users`
--
ALTER TABLE `users`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;
--
-- AUTO_INCREMENT for table `Workflows`
--
ALTER TABLE `Workflows`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
/*!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 */;

Zerion Mini Shell 1.0