-- https://www.phpmyadmin.net/
--




--
-- Database: `adriana_traffic`
--

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

--
-- Table structure for table `api_responses_models`
--

CREATE TABLE `api_responses_models` (
  `api_reponses_id` int(10) UNSIGNED NOT NULL,
  `instanceId` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `api_responses_code` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `final_responses` text COLLATE utf8mb4_unicode_ci NOT NULL,
  `api_responses_status` int(11) NOT NULL DEFAULT '1',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `api_responses_models`
--

INSERT INTO `api_responses_models` (`api_reponses_id`, `instanceId`, `api_responses_code`, `final_responses`, `api_responses_status`, `created_at`, `updated_at`) VALUES
(1, '118218', '1000', 'This is Hello Message from us\r\n\r\nTry a new line', 1, '2020-04-25 15:10:44', '2020-04-25 15:10:44'),
(2, '118218', '1100', 'Selamat datang di *[merchant_name]*\r\n\r\nSaat ini kami sedang melayani antrian no *[queue_latest]*,\r\n\r\nAnda berada di nomer Antrian *[queue_number]*\r\nKira kira nomer anda akan dipanggil *[estimated_time] detik lagi*\r\n\r\nTerima kasih.', 1, '2020-04-27 02:49:00', '2020-04-28 01:53:22'),
(3, '118218', '1200', 'Halo, berikut list Antrian anda :\r\n\r\n- *Kopi Kenangan Pondok Indah* \r\n  No Antrian : *2*\r\n  Antrian saat ini : *1*\r\n  Estimasi waktu : *2 Menit*\r\n\r\n- *Sushi Tei Pondok Indah*\r\n  No Antrian : *5*\r\n  Antrian saat ini : *3*\r\n  Estimasi waktu : *10 Menit*', 1, '2020-04-27 02:57:13', '2020-04-27 02:57:13');

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

--
-- Table structure for table `clients_models`
--

CREATE TABLE `clients_models` (
  `client_id` bigint(20) UNSIGNED NOT NULL,
  `instanceId` varchar(50) COLLATE utf8mb4_unicode_ci NOT NULL,
  `client_name` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL,
  `client_status` int(11) NOT NULL DEFAULT '1',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `clients_models`
--

INSERT INTO `clients_models` (`client_id`, `instanceId`, `client_name`, `client_status`, `created_at`, `updated_at`) VALUES
(1, '118218', 'TESTING CLIENT', 1, '2020-04-23 04:56:52', '2020-04-23 04:56:52');

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

--
-- Table structure for table `data_rows`
--

CREATE TABLE `data_rows` (
  `id` int(10) UNSIGNED NOT NULL,
  `data_type_id` int(10) UNSIGNED NOT NULL,
  `field` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `type` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `display_name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `required` tinyint(1) NOT NULL DEFAULT '0',
  `browse` tinyint(1) NOT NULL DEFAULT '1',
  `read` tinyint(1) NOT NULL DEFAULT '1',
  `edit` tinyint(1) NOT NULL DEFAULT '1',
  `add` tinyint(1) NOT NULL DEFAULT '1',
  `delete` tinyint(1) NOT NULL DEFAULT '1',
  `details` text COLLATE utf8mb4_unicode_ci,
  `order` int(11) NOT NULL DEFAULT '1'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `data_rows`
--

INSERT INTO `data_rows` (`id`, `data_type_id`, `field`, `type`, `display_name`, `required`, `browse`, `read`, `edit`, `add`, `delete`, `details`, `order`) VALUES
(1, 1, 'id', 'number', 'ID', 1, 0, 0, 0, 0, 0, NULL, 1),
(2, 1, 'name', 'text', 'Name', 1, 1, 1, 1, 1, 1, NULL, 2),
(3, 1, 'email', 'text', 'Email', 1, 1, 1, 1, 1, 1, NULL, 3),
(4, 1, 'password', 'password', 'Password', 1, 0, 0, 1, 1, 0, NULL, 4),
(5, 1, 'remember_token', 'text', 'Remember Token', 0, 0, 0, 0, 0, 0, NULL, 5),
(6, 1, 'created_at', 'timestamp', 'Created At', 0, 1, 1, 0, 0, 0, NULL, 6),
(7, 1, 'updated_at', 'timestamp', 'Updated At', 0, 0, 0, 0, 0, 0, NULL, 7),
(8, 1, 'avatar', 'image', 'Avatar', 0, 1, 1, 1, 1, 1, NULL, 8),
(9, 1, 'user_belongsto_role_relationship', 'relationship', 'Role', 0, 1, 1, 1, 1, 0, '{\"model\":\"TCG\\\\Voyager\\\\Models\\\\Role\",\"table\":\"roles\",\"type\":\"belongsTo\",\"column\":\"role_id\",\"key\":\"id\",\"label\":\"display_name\",\"pivot_table\":\"roles\",\"pivot\":0}', 10),
(10, 1, 'user_belongstomany_role_relationship', 'relationship', 'Roles', 0, 1, 1, 1, 1, 0, '{\"model\":\"TCG\\\\Voyager\\\\Models\\\\Role\",\"table\":\"roles\",\"type\":\"belongsToMany\",\"column\":\"id\",\"key\":\"id\",\"label\":\"display_name\",\"pivot_table\":\"user_roles\",\"pivot\":\"1\",\"taggable\":\"0\"}', 11),
(11, 1, 'settings', 'hidden', 'Settings', 0, 0, 0, 0, 0, 0, NULL, 12),
(12, 2, 'id', 'number', 'ID', 1, 0, 0, 0, 0, 0, NULL, 1),
(13, 2, 'name', 'text', 'Name', 1, 1, 1, 1, 1, 1, NULL, 2),
(14, 2, 'created_at', 'timestamp', 'Created At', 0, 0, 0, 0, 0, 0, NULL, 3),
(15, 2, 'updated_at', 'timestamp', 'Updated At', 0, 0, 0, 0, 0, 0, NULL, 4),
(16, 3, 'id', 'number', 'ID', 1, 0, 0, 0, 0, 0, NULL, 1),
(17, 3, 'name', 'text', 'Name', 1, 1, 1, 1, 1, 1, NULL, 2),
(18, 3, 'created_at', 'timestamp', 'Created At', 0, 0, 0, 0, 0, 0, NULL, 3),
(19, 3, 'updated_at', 'timestamp', 'Updated At', 0, 0, 0, 0, 0, 0, NULL, 4),
(20, 3, 'display_name', 'text', 'Display Name', 1, 1, 1, 1, 1, 1, NULL, 5),
(21, 1, 'role_id', 'text', 'Role', 1, 1, 1, 1, 1, 1, NULL, 9),
(22, 4, 'client_id', 'text', 'Client Id', 1, 1, 0, 0, 0, 0, '{}', 1),
(23, 4, 'instanceId', 'text', 'InstanceId', 1, 1, 1, 1, 1, 1, '{}', 2),
(24, 4, 'client_name', 'text', 'Client Name', 1, 1, 1, 1, 1, 1, '{}', 3),
(25, 4, 'client_status', 'text', 'Client Status', 1, 0, 0, 0, 0, 0, '{}', 4),
(26, 4, 'created_at', 'timestamp', 'Created At', 0, 1, 1, 1, 0, 1, '{}', 5),
(27, 4, 'updated_at', 'timestamp', 'Updated At', 0, 0, 0, 0, 0, 0, '{}', 6),
(28, 5, 'keyword_id', 'text', 'Keyword Id', 1, 0, 0, 0, 0, 0, '{}', 1),
(29, 5, 'keywords_label', 'text', 'Keywords Label', 1, 1, 1, 1, 1, 1, '{}', 2),
(30, 5, 'client_id', 'text', 'Client Id', 1, 1, 1, 1, 1, 1, '{}', 3),
(31, 5, 'client_status', 'text', 'Client Status', 1, 0, 0, 0, 0, 0, '{}', 4),
(32, 5, 'state_status', 'text', 'State Status', 1, 1, 1, 1, 1, 1, '{}', 5),
(33, 5, 'api_method', 'text', 'Api Method', 1, 1, 1, 1, 1, 1, '{}', 6),
(34, 5, 'api_url', 'text', 'Api Url', 1, 1, 1, 1, 1, 1, '{}', 7),
(35, 5, 'api_function', 'text', 'Api Function', 1, 1, 1, 1, 1, 1, '{}', 8),
(36, 5, 'created_at', 'timestamp', 'Created At', 0, 1, 1, 1, 0, 1, '{}', 9),
(37, 5, 'updated_at', 'timestamp', 'Updated At', 0, 0, 0, 0, 0, 0, '{}', 10),
(38, 5, 'function_name', 'text', 'Function Name', 1, 1, 1, 1, 1, 1, '{}', 11),
(39, 6, 'api_reponses_id', 'text', 'Api Reponses Id', 1, 0, 0, 0, 0, 0, '{}', 1),
(40, 6, 'instanceId', 'text', 'InstanceId', 1, 1, 1, 1, 1, 1, '{}', 2),
(41, 6, 'api_responses_code', 'text', 'Api Responses Code', 1, 1, 1, 1, 1, 1, '{}', 3),
(42, 6, 'final_responses', 'text_area', 'Final Responses', 1, 1, 1, 1, 1, 1, '{}', 4),
(43, 6, 'api_responses_status', 'text', 'Api Responses Status', 1, 1, 1, 1, 1, 1, '{}', 5),
(44, 6, 'created_at', 'timestamp', 'Created At', 0, 1, 1, 1, 0, 1, '{}', 6),
(45, 6, 'updated_at', 'timestamp', 'Updated At', 0, 0, 0, 0, 0, 0, '{}', 7);

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

--
-- Table structure for table `data_types`
--

CREATE TABLE `data_types` (
  `id` int(10) UNSIGNED NOT NULL,
  `name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `slug` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `display_name_singular` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `display_name_plural` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `icon` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `model_name` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `policy_name` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `controller` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `description` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `generate_permissions` tinyint(1) NOT NULL DEFAULT '0',
  `server_side` tinyint(4) NOT NULL DEFAULT '0',
  `details` text COLLATE utf8mb4_unicode_ci,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `data_types`
--

INSERT INTO `data_types` (`id`, `name`, `slug`, `display_name_singular`, `display_name_plural`, `icon`, `model_name`, `policy_name`, `controller`, `description`, `generate_permissions`, `server_side`, `details`, `created_at`, `updated_at`) VALUES
(1, 'users', 'users', 'User', 'Users', 'voyager-person', 'TCG\\Voyager\\Models\\User', 'TCG\\Voyager\\Policies\\UserPolicy', 'TCG\\Voyager\\Http\\Controllers\\VoyagerUserController', '', 1, 0, NULL, '2020-04-23 03:15:19', '2020-04-23 03:15:19'),
(2, 'menus', 'menus', 'Menu', 'Menus', 'voyager-list', 'TCG\\Voyager\\Models\\Menu', NULL, '', '', 1, 0, NULL, '2020-04-23 03:15:19', '2020-04-23 03:15:19'),
(3, 'roles', 'roles', 'Role', 'Roles', 'voyager-lock', 'TCG\\Voyager\\Models\\Role', NULL, '', '', 1, 0, NULL, '2020-04-23 03:15:19', '2020-04-23 03:15:19'),
(4, 'clients_models', 'clients-models', 'Clients Model', 'Clients Models', 'voyager-people', 'App\\Models\\ClientsModel', NULL, NULL, NULL, 1, 0, '{\"order_column\":null,\"order_display_column\":null,\"order_direction\":\"asc\",\"default_search_key\":null,\"scope\":null}', '2020-04-23 04:55:35', '2020-04-23 05:04:00'),
(5, 'keywords_models', 'keywords-models', 'Keywords Model', 'Keywords Models', 'voyager-character', 'App\\Models\\KeywordsModel', NULL, NULL, NULL, 1, 0, '{\"order_column\":null,\"order_display_column\":null,\"order_direction\":\"asc\",\"default_search_key\":null,\"scope\":null}', '2020-04-23 04:59:49', '2020-04-25 12:02:48'),
(6, 'api_responses_models', 'api-responses-models', 'Api Responses Model', 'Api Responses Models', 'voyager-chat', 'App\\Models\\ApiResponsesModel', NULL, NULL, NULL, 1, 0, '{\"order_column\":null,\"order_display_column\":null,\"order_direction\":\"asc\",\"default_search_key\":null}', '2020-04-25 15:09:12', '2020-04-25 15:09:12');

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

--
-- Table structure for table `keywords_models`
--

CREATE TABLE `keywords_models` (
  `keyword_id` bigint(20) UNSIGNED NOT NULL,
  `keywords_label` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `client_id` int(11) NOT NULL,
  `client_status` int(11) NOT NULL DEFAULT '1',
  `state_status` int(11) NOT NULL DEFAULT '0',
  `api_method` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'POST',
  `api_url` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `api_function` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '/',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `function_name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT ''
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `keywords_models`
--

INSERT INTO `keywords_models` (`keyword_id`, `keywords_label`, `client_id`, `client_status`, `state_status`, `api_method`, `api_url`, `api_function`, `created_at`, `updated_at`, `function_name`) VALUES
(1, 'HALO', 1, 1, 0, 'POST', 'https://enz23sjtd5rqf8x.m.pipedream.net', '/', '2020-04-23 05:04:00', '2020-04-25 12:03:17', 'haloFunction'),
(2, 'CHECK', 1, 1, 0, 'POST', 'https://enie0mznxjbhb6e.m.pipedream.net', '/', '2020-04-26 22:22:00', '2020-04-26 22:26:04', 'queueCheckFunction'),
(3, 'ANTRI', 1, 1, 0, 'POST', 'https://entowoat6d51ssa.m.pipedream.net', '/', '2020-04-26 22:25:22', '2020-04-26 22:25:22', 'queueRegFunction');

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

--
-- Table structure for table `menus`
--

CREATE TABLE `menus` (
  `id` int(10) UNSIGNED NOT NULL,
  `name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `menus`
--

INSERT INTO `menus` (`id`, `name`, `created_at`, `updated_at`) VALUES
(1, 'admin', '2020-04-23 03:15:20', '2020-04-23 03:15:20');

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

--
-- Table structure for table `menu_items`
--

CREATE TABLE `menu_items` (
  `id` int(10) UNSIGNED NOT NULL,
  `menu_id` int(10) UNSIGNED DEFAULT NULL,
  `title` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `url` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `target` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '_self',
  `icon_class` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `color` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `parent_id` int(11) DEFAULT NULL,
  `order` int(11) NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `route` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `parameters` text COLLATE utf8mb4_unicode_ci
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `menu_items`
--

INSERT INTO `menu_items` (`id`, `menu_id`, `title`, `url`, `target`, `icon_class`, `color`, `parent_id`, `order`, `created_at`, `updated_at`, `route`, `parameters`) VALUES
(1, 1, 'Dashboard', '', '_self', 'voyager-boat', NULL, NULL, 1, '2020-04-23 03:15:20', '2020-04-23 03:15:20', 'voyager.dashboard', NULL),
(2, 1, 'Media', '', '_self', 'voyager-images', NULL, NULL, 5, '2020-04-23 03:15:20', '2020-04-23 03:15:20', 'voyager.media.index', NULL),
(3, 1, 'Users', '', '_self', 'voyager-person', NULL, NULL, 3, '2020-04-23 03:15:20', '2020-04-23 03:15:20', 'voyager.users.index', NULL),
(4, 1, 'Roles', '', '_self', 'voyager-lock', NULL, NULL, 2, '2020-04-23 03:15:20', '2020-04-23 03:15:20', 'voyager.roles.index', NULL),
(5, 1, 'Tools', '', '_self', 'voyager-tools', NULL, NULL, 9, '2020-04-23 03:15:20', '2020-04-23 03:15:20', NULL, NULL),
(6, 1, 'Menu Builder', '', '_self', 'voyager-list', NULL, 5, 10, '2020-04-23 03:15:20', '2020-04-23 03:15:20', 'voyager.menus.index', NULL),
(7, 1, 'Database', '', '_self', 'voyager-data', NULL, 5, 11, '2020-04-23 03:15:20', '2020-04-23 03:15:20', 'voyager.database.index', NULL),
(8, 1, 'Compass', '', '_self', 'voyager-compass', NULL, 5, 12, '2020-04-23 03:15:20', '2020-04-23 03:15:20', 'voyager.compass.index', NULL),
(9, 1, 'BREAD', '', '_self', 'voyager-bread', NULL, 5, 13, '2020-04-23 03:15:20', '2020-04-23 03:15:20', 'voyager.bread.index', NULL),
(10, 1, 'Settings', '', '_self', 'voyager-settings', NULL, NULL, 14, '2020-04-23 03:15:20', '2020-04-23 03:15:20', 'voyager.settings.index', NULL),
(11, 1, 'Hooks', '', '_self', 'voyager-hook', NULL, 5, 13, '2020-04-23 03:15:20', '2020-04-23 03:15:20', 'voyager.hooks', NULL),
(12, 1, 'Clients Models', '', '_self', 'voyager-people', NULL, NULL, 15, '2020-04-23 04:55:35', '2020-04-23 04:55:35', 'voyager.clients-models.index', NULL),
(13, 1, 'Keywords Models', '', '_self', 'voyager-character', NULL, NULL, 16, '2020-04-23 04:59:49', '2020-04-23 04:59:49', 'voyager.keywords-models.index', NULL),
(14, 1, 'Api Responses Models', '', '_self', 'voyager-chat', NULL, NULL, 17, '2020-04-25 15:09:12', '2020-04-25 15:09:12', 'voyager.api-responses-models.index', NULL);

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

--
-- Table structure for table `migrations`
--

CREATE TABLE `migrations` (
  `id` int(10) UNSIGNED NOT NULL,
  `migration` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `batch` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `migrations`
--

INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES
(1, '2014_10_12_000000_create_users_table', 1),
(2, '2014_10_12_100000_create_password_resets_table', 1),
(3, '2016_01_01_000000_add_voyager_user_fields', 1),
(4, '2016_01_01_000000_create_data_types_table', 1),
(5, '2016_05_19_173453_create_menu_table', 1),
(6, '2016_10_21_190000_create_roles_table', 1),
(7, '2016_10_21_190000_create_settings_table', 1),
(8, '2016_11_30_135954_create_permission_table', 1),
(9, '2016_11_30_141208_create_permission_role_table', 1),
(10, '2016_12_26_201236_data_types__add__server_side', 1),
(11, '2017_01_13_000000_add_route_to_menu_items_table', 1),
(12, '2017_01_14_005015_create_translations_table', 1),
(13, '2017_01_15_000000_make_table_name_nullable_in_permissions_table', 1),
(14, '2017_03_06_000000_add_controller_to_data_types_table', 1),
(15, '2017_04_21_000000_add_order_to_data_rows_table', 1),
(16, '2017_07_05_210000_add_policyname_to_data_types_table', 1),
(17, '2017_08_05_000000_add_group_to_settings_table', 1),
(18, '2017_11_26_013050_add_user_role_relationship', 1),
(19, '2017_11_26_015000_create_user_roles_table', 1),
(20, '2018_03_11_000000_add_user_settings', 1),
(21, '2018_03_14_000000_add_details_to_data_types_table', 1),
(22, '2018_03_16_000000_make_settings_value_nullable', 1),
(23, '2020_04_23_105350_create_keywords_models_table', 2),
(24, '2020_04_23_113418_create_clients_models_table', 2),
(25, '2020_04_25_173916_add_function_name_to_keywords_models', 3),
(26, '2020_04_25_220119_create_api_responses_models_table', 4);

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

--
-- Table structure for table `password_resets`
--

CREATE TABLE `password_resets` (
  `email` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `token` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `permissions`
--

CREATE TABLE `permissions` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `key` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `table_name` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `permissions`
--

INSERT INTO `permissions` (`id`, `key`, `table_name`, `created_at`, `updated_at`) VALUES
(1, 'browse_admin', NULL, '2020-04-23 03:15:20', '2020-04-23 03:15:20'),
(2, 'browse_bread', NULL, '2020-04-23 03:15:20', '2020-04-23 03:15:20'),
(3, 'browse_database', NULL, '2020-04-23 03:15:20', '2020-04-23 03:15:20'),
(4, 'browse_media', NULL, '2020-04-23 03:15:20', '2020-04-23 03:15:20'),
(5, 'browse_compass', NULL, '2020-04-23 03:15:20', '2020-04-23 03:15:20'),
(6, 'browse_menus', 'menus', '2020-04-23 03:15:20', '2020-04-23 03:15:20'),
(7, 'read_menus', 'menus', '2020-04-23 03:15:20', '2020-04-23 03:15:20'),
(8, 'edit_menus', 'menus', '2020-04-23 03:15:20', '2020-04-23 03:15:20'),
(9, 'add_menus', 'menus', '2020-04-23 03:15:20', '2020-04-23 03:15:20'),
(10, 'delete_menus', 'menus', '2020-04-23 03:15:20', '2020-04-23 03:15:20'),
(11, 'browse_roles', 'roles', '2020-04-23 03:15:20', '2020-04-23 03:15:20'),
(12, 'read_roles', 'roles', '2020-04-23 03:15:20', '2020-04-23 03:15:20'),
(13, 'edit_roles', 'roles', '2020-04-23 03:15:20', '2020-04-23 03:15:20'),
(14, 'add_roles', 'roles', '2020-04-23 03:15:20', '2020-04-23 03:15:20'),
(15, 'delete_roles', 'roles', '2020-04-23 03:15:20', '2020-04-23 03:15:20'),
(16, 'browse_users', 'users', '2020-04-23 03:15:20', '2020-04-23 03:15:20'),
(17, 'read_users', 'users', '2020-04-23 03:15:20', '2020-04-23 03:15:20'),
(18, 'edit_users', 'users', '2020-04-23 03:15:20', '2020-04-23 03:15:20'),
(19, 'add_users', 'users', '2020-04-23 03:15:20', '2020-04-23 03:15:20'),
(20, 'delete_users', 'users', '2020-04-23 03:15:20', '2020-04-23 03:15:20'),
(21, 'browse_settings', 'settings', '2020-04-23 03:15:20', '2020-04-23 03:15:20'),
(22, 'read_settings', 'settings', '2020-04-23 03:15:20', '2020-04-23 03:15:20'),
(23, 'edit_settings', 'settings', '2020-04-23 03:15:20', '2020-04-23 03:15:20'),
(24, 'add_settings', 'settings', '2020-04-23 03:15:20', '2020-04-23 03:15:20'),
(25, 'delete_settings', 'settings', '2020-04-23 03:15:20', '2020-04-23 03:15:20'),
(26, 'browse_hooks', NULL, '2020-04-23 03:15:20', '2020-04-23 03:15:20'),
(27, 'browse_clients_models', 'clients_models', '2020-04-23 04:55:35', '2020-04-23 04:55:35'),
(28, 'read_clients_models', 'clients_models', '2020-04-23 04:55:35', '2020-04-23 04:55:35'),
(29, 'edit_clients_models', 'clients_models', '2020-04-23 04:55:35', '2020-04-23 04:55:35'),
(30, 'add_clients_models', 'clients_models', '2020-04-23 04:55:35', '2020-04-23 04:55:35'),
(31, 'delete_clients_models', 'clients_models', '2020-04-23 04:55:35', '2020-04-23 04:55:35'),
(32, 'browse_keywords_models', 'keywords_models', '2020-04-23 04:59:49', '2020-04-23 04:59:49'),
(33, 'read_keywords_models', 'keywords_models', '2020-04-23 04:59:49', '2020-04-23 04:59:49'),
(34, 'edit_keywords_models', 'keywords_models', '2020-04-23 04:59:49', '2020-04-23 04:59:49'),
(35, 'add_keywords_models', 'keywords_models', '2020-04-23 04:59:49', '2020-04-23 04:59:49'),
(36, 'delete_keywords_models', 'keywords_models', '2020-04-23 04:59:49', '2020-04-23 04:59:49'),
(37, 'browse_api_responses_models', 'api_responses_models', '2020-04-25 15:09:12', '2020-04-25 15:09:12'),
(38, 'read_api_responses_models', 'api_responses_models', '2020-04-25 15:09:12', '2020-04-25 15:09:12'),
(39, 'edit_api_responses_models', 'api_responses_models', '2020-04-25 15:09:12', '2020-04-25 15:09:12'),
(40, 'add_api_responses_models', 'api_responses_models', '2020-04-25 15:09:12', '2020-04-25 15:09:12'),
(41, 'delete_api_responses_models', 'api_responses_models', '2020-04-25 15:09:12', '2020-04-25 15:09:12');

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

--
-- Table structure for table `permission_role`
--

CREATE TABLE `permission_role` (
  `permission_id` bigint(20) UNSIGNED NOT NULL,
  `role_id` bigint(20) UNSIGNED NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `permission_role`
--

INSERT INTO `permission_role` (`permission_id`, `role_id`) VALUES
(1, 1),
(2, 1),
(3, 1),
(4, 1),
(5, 1),
(6, 1),
(7, 1),
(8, 1),
(9, 1),
(10, 1),
(11, 1),
(12, 1),
(13, 1),
(14, 1),
(15, 1),
(16, 1),
(17, 1),
(18, 1),
(19, 1),
(20, 1),
(21, 1),
(22, 1),
(23, 1),
(24, 1),
(25, 1),
(26, 1),
(27, 1),
(28, 1),
(29, 1),
(30, 1),
(31, 1),
(32, 1),
(33, 1),
(34, 1),
(35, 1),
(36, 1),
(37, 1),
(38, 1),
(39, 1),
(40, 1),
(41, 1);

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

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

CREATE TABLE `roles` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `display_name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `roles`
--

INSERT INTO `roles` (`id`, `name`, `display_name`, `created_at`, `updated_at`) VALUES
(1, 'admin', 'Administrator', '2020-04-23 03:15:20', '2020-04-23 03:15:20'),
(2, 'user', 'Normal User', '2020-04-23 03:15:20', '2020-04-23 03:15:20');

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

--
-- Table structure for table `settings`
--

CREATE TABLE `settings` (
  `id` int(10) UNSIGNED NOT NULL,
  `key` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `display_name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `value` text COLLATE utf8mb4_unicode_ci,
  `details` text COLLATE utf8mb4_unicode_ci,
  `type` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `order` int(11) NOT NULL DEFAULT '1',
  `group` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `settings`
--

INSERT INTO `settings` (`id`, `key`, `display_name`, `value`, `details`, `type`, `order`, `group`) VALUES
(1, 'site.title', 'Site Title', 'Site Title', '', 'text', 1, 'Site'),
(2, 'site.description', 'Site Description', 'Site Description', '', 'text', 2, 'Site'),
(3, 'site.logo', 'Site Logo', '', '', 'image', 3, 'Site'),
(4, 'site.google_analytics_tracking_id', 'Google Analytics Tracking ID', '', '', 'text', 4, 'Site'),
(5, 'admin.bg_image', 'Admin Background Image', '', '', 'image', 5, 'Admin'),
(6, 'admin.title', 'Admin Title', 'Voyager', '', 'text', 1, 'Admin'),
(7, 'admin.description', 'Admin Description', 'Welcome to Voyager. The Missing Admin for Laravel', '', 'text', 2, 'Admin'),
(8, 'admin.loader', 'Admin Loader', '', '', 'image', 3, 'Admin'),
(9, 'admin.icon_image', 'Admin Icon Image', '', '', 'image', 4, 'Admin'),
(10, 'admin.google_analytics_client_id', 'Google Analytics Client ID (used for admin dashboard)', '', '', 'text', 1, 'Admin');

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

--
-- Table structure for table `translations`
--

CREATE TABLE `translations` (
  `id` int(10) UNSIGNED NOT NULL,
  `table_name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `column_name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `foreign_key` int(10) UNSIGNED NOT NULL,
  `locale` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `value` text COLLATE utf8mb4_unicode_ci NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

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

CREATE TABLE `users` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `role_id` bigint(20) UNSIGNED DEFAULT NULL,
  `name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `email` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `avatar` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT 'users/default.png',
  `email_verified_at` timestamp NULL DEFAULT NULL,
  `password` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `remember_token` varchar(100) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `settings` text COLLATE utf8mb4_unicode_ci,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

INSERT INTO `users` (`id`, `role_id`, `name`, `email`, `avatar`, `email_verified_at`, `password`, `remember_token`, `settings`, `created_at`, `updated_at`) VALUES
(1, 1, 'fermyth', 'fermyth@adriana.test', 'users/April2020/j1VGo1oIZc9QTSgfy4Ey.jpg', NULL, '$2y$10$KNdf2aFJCaR5UR.X4WnFMe/9s8AdtB1cCIwhOfoj8YtvgTENBB8OK', NULL, '{\"locale\":\"en\"}', '2020-04-23 03:26:45', '2020-04-23 03:35:35');

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

--
-- Table structure for table `user_roles`
--

CREATE TABLE `user_roles` (
  `user_id` bigint(20) UNSIGNED NOT NULL,
  `role_id` bigint(20) UNSIGNED NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Indexes for dumped tables
--

--
-- Indexes for table `api_responses_models`
--
ALTER TABLE `api_responses_models`
  ADD PRIMARY KEY (`api_reponses_id`);

--
-- Indexes for table `clients_models`
--
ALTER TABLE `clients_models`
  ADD PRIMARY KEY (`client_id`);

--
-- Indexes for table `data_rows`
--
ALTER TABLE `data_rows`
  ADD PRIMARY KEY (`id`),
  ADD KEY `data_rows_data_type_id_foreign` (`data_type_id`);

--
-- Indexes for table `data_types`
--
ALTER TABLE `data_types`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `data_types_name_unique` (`name`),
  ADD UNIQUE KEY `data_types_slug_unique` (`slug`);

--
-- Indexes for table `keywords_models`
--
ALTER TABLE `keywords_models`
  ADD PRIMARY KEY (`keyword_id`);

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

--
-- Indexes for table `menu_items`
--
ALTER TABLE `menu_items`
  ADD PRIMARY KEY (`id`),
  ADD KEY `menu_items_menu_id_foreign` (`menu_id`);

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

--
-- Indexes for table `password_resets`
--
ALTER TABLE `password_resets`
  ADD KEY `password_resets_email_index` (`email`);

--
-- Indexes for table `permissions`
--
ALTER TABLE `permissions`
  ADD PRIMARY KEY (`id`),
  ADD KEY `permissions_key_index` (`key`);

--
-- Indexes for table `permission_role`
--
ALTER TABLE `permission_role`
  ADD PRIMARY KEY (`permission_id`,`role_id`),
  ADD KEY `permission_role_permission_id_index` (`permission_id`),
  ADD KEY `permission_role_role_id_index` (`role_id`);

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

--
-- Indexes for table `settings`
--
ALTER TABLE `settings`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `settings_key_unique` (`key`);

--
-- Indexes for table `translations`
--
ALTER TABLE `translations`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `translations_table_name_column_name_foreign_key_locale_unique` (`table_name`,`column_name`,`foreign_key`,`locale`);

--
-- Indexes for table `users`
--
ALTER TABLE `users`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `users_email_unique` (`email`),
  ADD KEY `users_role_id_foreign` (`role_id`);

--
-- Indexes for table `user_roles`
--
ALTER TABLE `user_roles`
  ADD PRIMARY KEY (`user_id`,`role_id`),
  ADD KEY `user_roles_user_id_index` (`user_id`),
  ADD KEY `user_roles_role_id_index` (`role_id`);

--
-- AUTO_INCREMENT for dumped tables
--

--
-- AUTO_INCREMENT for table `api_responses_models`
--
ALTER TABLE `api_responses_models`
  MODIFY `api_reponses_id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;
--
-- AUTO_INCREMENT for table `clients_models`
--
ALTER TABLE `clients_models`
  MODIFY `client_id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;
--
-- AUTO_INCREMENT for table `data_rows`
--
ALTER TABLE `data_rows`
  MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=46;
--
-- AUTO_INCREMENT for table `data_types`
--
ALTER TABLE `data_types`
  MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=7;
--
-- AUTO_INCREMENT for table `keywords_models`
--
ALTER TABLE `keywords_models`
  MODIFY `keyword_id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;
--
-- AUTO_INCREMENT for table `menus`
--
ALTER TABLE `menus`
  MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;
--
-- AUTO_INCREMENT for table `menu_items`
--
ALTER TABLE `menu_items`
  MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=15;
--
-- AUTO_INCREMENT for table `migrations`
--
ALTER TABLE `migrations`
  MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=27;
--
-- AUTO_INCREMENT for table `permissions`
--
ALTER TABLE `permissions`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=42;
--
-- AUTO_INCREMENT for table `roles`
--
ALTER TABLE `roles`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;
--
-- AUTO_INCREMENT for table `settings`
--
ALTER TABLE `settings`
  MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=11;
--
-- AUTO_INCREMENT for table `translations`
--
ALTER TABLE `translations`
  MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `users`
--
ALTER TABLE `users`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;
--
-- Constraints for dumped tables
--

--
-- Constraints for table `data_rows`
--
ALTER TABLE `data_rows`
  ADD CONSTRAINT `data_rows_data_type_id_foreign` FOREIGN KEY (`data_type_id`) REFERENCES `data_types` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;

--
-- Constraints for table `menu_items`
--
ALTER TABLE `menu_items`
  ADD CONSTRAINT `menu_items_menu_id_foreign` FOREIGN KEY (`menu_id`) REFERENCES `menus` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `permission_role`
--
ALTER TABLE `permission_role`
  ADD CONSTRAINT `permission_role_permission_id_foreign` FOREIGN KEY (`permission_id`) REFERENCES `permissions` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `permission_role_role_id_foreign` FOREIGN KEY (`role_id`) REFERENCES `roles` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `users`
--
ALTER TABLE `users`
  ADD CONSTRAINT `users_role_id_foreign` FOREIGN KEY (`role_id`) REFERENCES `roles` (`id`);

--
-- Constraints for table `user_roles`
--
ALTER TABLE `user_roles`
  ADD CONSTRAINT `user_roles_role_id_foreign` FOREIGN KEY (`role_id`) REFERENCES `roles` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `user_roles_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE;

