text: -- phpMyAdmin SQL Dump
  -- version 5.0.2
  -- https://www.phpmyadmin.net/
  --
  -- Host: 127.0.0.1:3307
  -- Generation Time: Jun 25, 2020 at 06:52 PM
  -- Server version: 10.4.11-MariaDB
  -- PHP Version: 7.4.6
  
  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: `asset_management`
  --
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `attributes`
  --
  
  CREATE TABLE `attributes` (
    `id` int(11) NOT NULL,
    `name` varchar(255) NOT NULL,
    `active` int(11) NOT NULL
  ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
  
  --
  -- Dumping data for table `attributes`
  --
  
  INSERT INTO `attributes` (`id`, `name`, `active`) VALUES
  (5, 'fan', 1);
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `attribute_value`
  --
  
  CREATE TABLE `attribute_value` (
    `id` int(11) NOT NULL,
    `value` varchar(255) NOT NULL,
    `attribute_parent_id` int(11) NOT NULL
  ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
  
  --
  -- Dumping data for table `attribute_value`
  --
  
  INSERT INTO `attribute_value` (`id`, `value`, `attribute_parent_id`) VALUES
  (5, 'Blue', 2),
  (6, 'White', 2),
  (7, 'M', 3),
  (8, 'L', 3),
  (9, 'Green', 2),
  (10, 'Black', 2),
  (12, 'Grey', 2),
  (13, 'S', 3),
  (14, 'rtdtrdrdrt', 4),
  (15, '10', 4),
  (16, '10', 5);
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `brands`
  --
  
  CREATE TABLE `brands` (
    `id` int(11) NOT NULL,
    `name` varchar(255) NOT NULL,
    `active` int(11) NOT NULL
  ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
  
  --
  -- Dumping data for table `brands`
  --
  
  INSERT INTO `brands` (`id`, `name`, `active`) VALUES
  (7, 'Samsung', 1),
  (8, 'HP', 1),
  (9, 'Lenovo', 1),
  (10, 'LG', 1),
  (11, 'Adobe', 1);
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `categories`
  --
  
  CREATE TABLE `categories` (
    `id` int(11) NOT NULL,
    `name` varchar(255) NOT NULL,
    `active` int(11) NOT NULL
  ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
  
  --
  -- Dumping data for table `categories`
  --
  
  INSERT INTO `categories` (`id`, `name`, `active`) VALUES
  (7, 'Electronics', 1),
  (8, 'Software', 1),
  (9, 'Editing Software', 1),
  (10, 'Anti Virus', 1),
  (11, 'Laptop', 1),
  (12, 'Furnitures', 1),
  (13, 'Desktop', 1);
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `company`
  --
  
  CREATE TABLE `company` (
    `id` int(11) NOT NULL,
    `company_name` varchar(255) NOT NULL,
    `service_charge_value` varchar(255) NOT NULL,
    `vat_charge_value` varchar(255) NOT NULL,
    `address` varchar(255) NOT NULL,
    `phone` varchar(255) NOT NULL,
    `country` varchar(255) NOT NULL,
    `message` text NOT NULL,
    `currency` varchar(255) NOT NULL
  ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
  
  --
  -- Dumping data for table `company`
  --
  
  INSERT INTO `company` (`id`, `company_name`, `service_charge_value`, `vat_charge_value`, `address`, `phone`, `country`, `message`, `currency`) VALUES
  (1, 'Directorate of Accounts and Treasuries', '13', '10', 'New Kar Bhawan , Ganeshguri, Dispur , Guwahati, Assam-781006', '3612346919', 'India', '<p></p><p></p><p></p><p>hello</p><p></p><p></p>                  <p></p>', 'INR');
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `groups`
  --
  
  CREATE TABLE `groups` (
    `id` int(11) NOT NULL,
    `group_name` varchar(255) NOT NULL,
    `permission` text NOT NULL
  ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
  
  --
  -- Dumping data for table `groups`
  --
  
  INSERT INTO `groups` (`id`, `group_name`, `permission`) VALUES
  (1, 'Administrator', 'a:36:{i:0;s:10:\"createUser\";i:1;s:10:\"updateUser\";i:2;s:8:\"viewUser\";i:3;s:10:\"deleteUser\";i:4;s:11:\"createGroup\";i:5;s:11:\"updateGroup\";i:6;s:9:\"viewGroup\";i:7;s:11:\"deleteGroup\";i:8;s:11:\"createBrand\";i:9;s:11:\"updateBrand\";i:10;s:9:\"viewBrand\";i:11;s:11:\"deleteBrand\";i:12;s:14:\"createCategory\";i:13;s:14:\"updateCategory\";i:14;s:12:\"viewCategory\";i:15;s:14:\"deleteCategory\";i:16;s:11:\"createStore\";i:17;s:11:\"updateStore\";i:18;s:9:\"viewStore\";i:19;s:11:\"deleteStore\";i:20;s:15:\"createAttribute\";i:21;s:15:\"updateAttribute\";i:22;s:13:\"viewAttribute\";i:23;s:15:\"deleteAttribute\";i:24;s:13:\"createProduct\";i:25;s:13:\"updateProduct\";i:26;s:11:\"viewProduct\";i:27;s:13:\"deleteProduct\";i:28;s:11:\"createOrder\";i:29;s:11:\"updateOrder\";i:30;s:9:\"viewOrder\";i:31;s:11:\"deleteOrder\";i:32;s:11:\"viewReports\";i:33;s:13:\"updateCompany\";i:34;s:11:\"viewProfile\";i:35;s:13:\"updateSetting\";}');
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `orders`
  --
  
  CREATE TABLE `orders` (
    `id` int(11) NOT NULL,
    `bill_no` varchar(255) NOT NULL,
    `customer_name` varchar(255) NOT NULL,
    `customer_address` varchar(255) NOT NULL,
    `customer_phone` varchar(255) NOT NULL,
    `date_time` varchar(255) NOT NULL,
    `gross_amount` varchar(255) NOT NULL,
    `service_charge_rate` varchar(255) NOT NULL,
    `service_charge` varchar(255) NOT NULL,
    `vat_charge_rate` varchar(255) NOT NULL,
    `vat_charge` varchar(255) NOT NULL,
    `net_amount` varchar(255) NOT NULL,
    `discount` varchar(255) NOT NULL,
    `paid_status` int(11) NOT NULL,
    `user_id` int(11) NOT NULL
  ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
  
  --
  -- Dumping data for table `orders`
  --
  
  INSERT INTO `orders` (`id`, `bill_no`, `customer_name`, `customer_address`, `customer_phone`, `date_time`, `gross_amount`, `service_charge_rate`, `service_charge`, `vat_charge_rate`, `vat_charge`, `net_amount`, `discount`, `paid_status`, `user_id`) VALUES
  (14, 'BILDOAT-23C6', 'Devraj Bhattacharjee', 'Meherpur,Beltola,Silchar-15,Cachar,Assam', '08876148052', '1592750437', '80000.00', '13', '10400.00', '10', '8000.00', '98400.00', '', 1, 1),
  (15, 'BILDOAT-3525', 'Devraj Bhattacharjee', 'Meherpur,Beltola,Silchar-15,Cachar,Assam', '08876148052', '1592941984', '120000.00', '13', '15600.00', '10', '12000.00', '147600.00', '', 1, 1),
  (16, 'BILDOAT-4304', 'Devraj Bhattacharjee', 'Meherpur,Beltola,Silchar-15,Cachar,Assam', '08876148052', '1593012290', '3000000.00', '13', '390000.00', '10', '300000.00', '3690000.00', '', 1, 1),
  (17, 'BILDOAT-7099', 'Devraj Bhattacharjee', 'Meherpur,Beltola,Silchar-15,Cachar,Assam', '08876148052', '1592949600', '60000.00', '13', '7800.00', '10', '6000.00', '73800.00', '', 2, 1),
  (18, 'BILDOAT-DABC', 'Devraj Bhattacharjee', 'Meherpur,Beltola,Silchar-15,Cachar,Assam', '08876148052', '1593036022', '60000.00', '13', '7800.00', '10', '6000.00', '73800.00', '', 2, 1);
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `orders_item`
  --
  
  CREATE TABLE `orders_item` (
    `id` int(11) NOT NULL,
    `order_id` int(11) NOT NULL,
    `product_id` int(11) NOT NULL,
    `qty` varchar(255) NOT NULL,
    `rate` varchar(255) NOT NULL,
    `amount` varchar(255) NOT NULL
  ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
  
  --
  -- Dumping data for table `orders_item`
  --
  
  INSERT INTO `orders_item` (`id`, `order_id`, `product_id`, `qty`, `rate`, `amount`) VALUES
  (28, 14, 8, '200', '400', '80000.00'),
  (30, 15, 9, '2', '60000', '120000.00'),
  (32, 16, 10, '50', '60000', '3000000.00'),
  (33, 17, 10, '1', '60000', '60000.00'),
  (34, 18, 10, '1', '60000', '60000.00');
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `products`
  --
  
  CREATE TABLE `products` (
    `id` int(11) NOT NULL,
    `name` varchar(255) NOT NULL,
    `sku` varchar(255) NOT NULL,
    `price` varchar(255) NOT NULL,
    `qty` varchar(255) NOT NULL,
    `image` text NOT NULL,
    `description` text NOT NULL,
    `attribute_value_id` text DEFAULT NULL,
    `brand_id` text NOT NULL,
    `category_id` text NOT NULL,
    `store_id` int(11) NOT NULL,
    `availability` int(11) NOT NULL
  ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
  
  --
  -- Dumping data for table `products`
  --
  
  INSERT INTO `products` (`id`, `name`, `sku`, `price`, `qty`, `image`, `description`, `attribute_value_id`, `brand_id`, `category_id`, `store_id`, `availability`) VALUES
  (8, 'chair', 'wood', '400', '1', '', 'afdqdfefe', 'null', 'null', 'null', 4, 1),
  (9, 'lenovo', '1tb', '60000', '48', '<p>You did not select a file to upload.</p>', '', 'null', '[\"9\"]', '[\"11\"]', 4, 1),
  (10, 'lenovo Vivobbok', '1Tb', '60000', '48', '<p>You did not select a file to upload.</p>', '', 'null', '[\"9\"]', '[\"11\"]', 4, 1);
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `stores`
  --
  
  CREATE TABLE `stores` (
    `id` int(11) NOT NULL,
    `name` varchar(255) NOT NULL,
    `active` int(11) NOT NULL
  ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
  
  --
  -- Dumping data for table `stores`
  --
  
  INSERT INTO `stores` (`id`, `name`, `active`) VALUES
  (4, 'Datamation', 1),
  (5, 'Sharma Furnitures', 1);
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `users`
  --
  
  CREATE TABLE `users` (
    `id` int(11) NOT NULL,
    `username` varchar(255) NOT NULL,
    `password` varchar(255) NOT NULL,
    `email` varchar(255) NOT NULL,
    `firstname` varchar(255) NOT NULL,
    `lastname` varchar(255) NOT NULL,
    `phone` varchar(255) NOT NULL,
    `gender` int(11) NOT NULL
  ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
  
  --
  -- Dumping data for table `users`
  --
  
  INSERT INTO `users` (`id`, `username`, `password`, `email`, `firstname`, `lastname`, `phone`, `gender`) VALUES
  (1, 'admin', '$2y$10$/G93BQZBmY7q.0zbXHwNFuGNOW7rMZl3e4xxUq1DPMebQ1vxCnYx.', 'admin@gmail.com', 'Dev', 'Bhatt', '8876148052', 1);
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `user_group`
  --
  
  CREATE TABLE `user_group` (
    `id` int(11) NOT NULL,
    `user_id` int(11) NOT NULL,
    `group_id` int(11) NOT NULL
  ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
  
  --
  -- Dumping data for table `user_group`
  --
  
  INSERT INTO `user_group` (`id`, `user_id`, `group_id`) VALUES
  (1, 1, 1),
  (7, 7, 5),
  (8, 8, 5),
  (9, 9, 7);
  
  --
  -- Indexes for dumped tables
  --
  
  --
  -- Indexes for table `attributes`
  --
  ALTER TABLE `attributes`
    ADD PRIMARY KEY (`id`);
  
  --
  -- Indexes for table `attribute_value`
  --
  ALTER TABLE `attribute_value`
    ADD PRIMARY KEY (`id`);
  
  --
  -- Indexes for table `brands`
  --
  ALTER TABLE `brands`
    ADD PRIMARY KEY (`id`);
  
  --
  -- Indexes for table `categories`
  --
  ALTER TABLE `categories`
    ADD PRIMARY KEY (`id`);
  
  --
  -- Indexes for table `company`
  --
  ALTER TABLE `company`
    ADD PRIMARY KEY (`id`);
  
  --
  -- Indexes for table `groups`
  --
  ALTER TABLE `groups`
    ADD PRIMARY KEY (`id`);
  
  --
  -- Indexes for table `orders`
  --
  ALTER TABLE `orders`
    ADD PRIMARY KEY (`id`);
  
  --
  -- Indexes for table `orders_item`
  --
  ALTER TABLE `orders_item`
    ADD PRIMARY KEY (`id`);
  
  --
  -- Indexes for table `products`
  --
  ALTER TABLE `products`
    ADD PRIMARY KEY (`id`);
  
  --
  -- Indexes for table `stores`
  --
  ALTER TABLE `stores`
    ADD PRIMARY KEY (`id`);
  
  --
  -- Indexes for table `users`
  --
  ALTER TABLE `users`
    ADD PRIMARY KEY (`id`);
  
  --
  -- Indexes for table `user_group`
  --
  ALTER TABLE `user_group`
    ADD PRIMARY KEY (`id`);
  
  --
  -- AUTO_INCREMENT for dumped tables
  --
  
  --
  -- AUTO_INCREMENT for table `attributes`
  --
  ALTER TABLE `attributes`
    MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6;
  
  --
  -- AUTO_INCREMENT for table `attribute_value`
  --
  ALTER TABLE `attribute_value`
    MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=17;
  
  --
  -- AUTO_INCREMENT for table `brands`
  --
  ALTER TABLE `brands`
    MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=12;
  
  --
  -- AUTO_INCREMENT for table `categories`
  --
  ALTER TABLE `categories`
    MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=14;
  
  --
  -- AUTO_INCREMENT for table `company`
  --
  ALTER TABLE `company`
    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=11;
  
  --
  -- AUTO_INCREMENT for table `orders`
  --
  ALTER TABLE `orders`
    MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=19;
  
  --
  -- AUTO_INCREMENT for table `orders_item`
  --
  ALTER TABLE `orders_item`
    MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=35;
  
  --
  -- AUTO_INCREMENT for table `products`
  --
  ALTER TABLE `products`
    MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=11;
  
  --
  -- AUTO_INCREMENT for table `stores`
  --
  ALTER TABLE `stores`
    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=10;
  
  --
  -- AUTO_INCREMENT for table `user_group`
  --
  ALTER TABLE `user_group`
    MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=10;
  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 */;
  