-- phpMyAdmin SQL Dump
-- version 4.3.11
-- http://www.phpmyadmin.net
--
-- Host: 127.0.0.1
-- Generation Time: Dec 27, 2016 at 01:25 PM
-- Server version: 5.6.24
-- PHP Version: 5.6.8

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 utf8 */;

--
-- Database: `sps`
--

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

--
-- Table structure for table `sps_user_menus`
--

CREATE TABLE IF NOT EXISTS `sps_user_menus` (
  `id` bigint(20) NOT NULL,
  `user_id` bigint(20) NOT NULL,
  `menu_id` bigint(20) NOT NULL,
  `created_by` bigint(20) NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `deleted_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `location_id` bigint(20) NOT NULL,
  `area_id` bigint(20) NOT NULL
) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `sps_user_menus`
--

INSERT INTO `sps_user_menus` (`id`, `user_id`, `menu_id`, `created_by`, `created_at`, `updated_at`, `deleted_at`, `location_id`, `area_id`) VALUES
(1, 1, 1, 1, '2016-12-26 05:38:22', '0000-00-00 00:00:00', '0000-00-00 00:00:00', 1, 1),
(2, 2, 1, 1, '2016-12-26 05:38:22', '0000-00-00 00:00:00', '0000-00-00 00:00:00', 1, 1),
(3, 1, 2, 1, '2016-12-26 05:38:22', '0000-00-00 00:00:00', '0000-00-00 00:00:00', 1, 1),
(4, 1, 3, 1, '2016-12-26 05:38:22', '0000-00-00 00:00:00', '0000-00-00 00:00:00', 1, 1);

--
-- Indexes for dumped tables
--

--
-- Indexes for table `sps_user_menus`
--
ALTER TABLE `sps_user_menus`
  ADD PRIMARY KEY (`id`), ADD UNIQUE KEY `user_id` (`user_id`,`menu_id`);

--
-- AUTO_INCREMENT for dumped tables
--

--
-- AUTO_INCREMENT for table `sps_user_menus`
--
ALTER TABLE `sps_user_menus`
  MODIFY `id` bigint(20) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=5;
/*!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 */;
