Files
2026-06-29 13:00:18 +06:00

797 lines
26 KiB
SQL

-- phpMyAdmin SQL Dump
-- version 5.2.0
-- https://www.phpmyadmin.net/
--
-- Host: localhost:3306
-- Generation Time: Jul 31, 2023 at 09:06 AM
-- Server version: 8.0.30
-- PHP Version: 8.1.10
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: `creditzombiesdb`
--
-- --------------------------------------------------------
--
-- Table structure for table `card_tokens`
--
CREATE TABLE `card_tokens` (
`id` bigint UNSIGNED NOT NULL,
`user_id` bigint NOT NULL,
`token` varchar(255) CHARACTER SET utf8mb4 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 `contents`
--
CREATE TABLE `contents` (
`id` bigint UNSIGNED NOT NULL,
`terms_service` varchar(500) CHARACTER SET utf8mb4 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 `creditreports`
--
CREATE TABLE `creditreports` (
`id` bigint UNSIGNED NOT NULL,
`user_id` int NOT NULL DEFAULT '0',
`report_type` tinyint NOT NULL DEFAULT '3',
`email` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`password` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`file_name` varchar(255) CHARACTER SET utf8mb4 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;
-- --------------------------------------------------------
--
-- Table structure for table `creditreport_providers`
--
CREATE TABLE `creditreport_providers` (
`id` bigint UNSIGNED NOT NULL,
`company_type` tinyint NOT NULL,
`link` varchar(350) CHARACTER SET utf8mb4 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 `creditreport_providers`
--
INSERT INTO `creditreport_providers` (`id`, `company_type`, `link`, `created_at`, `updated_at`) VALUES
(1, 1, 'https://member.identityiq.com/creditpreferred.aspx?offercode=431141CQ', '2023-03-15 10:53:30', '2023-03-23 06:15:04'),
(2, 3, 'https://www.smartcredit.com/?PID=11885', '2023-03-23 04:24:33', '2023-03-23 05:06:09');
-- --------------------------------------------------------
--
-- Table structure for table `failed_jobs`
--
CREATE TABLE `failed_jobs` (
`id` bigint UNSIGNED NOT NULL,
`uuid` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
`connection` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
`queue` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
`payload` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
`exception` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
`failed_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- --------------------------------------------------------
--
-- Table structure for table `migrations`
--
CREATE TABLE `migrations` (
`id` int UNSIGNED NOT NULL,
`migration` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
`batch` int 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, '2019_08_19_000000_create_failed_jobs_table', 1),
(4, '2022_07_11_134331_create_packages_table', 1),
(5, '2022_07_11_134405_create_user_packages_table', 1),
(6, '2022_07_11_134444_create_creditreports_table', 1),
(7, '2022_07_11_142907_create_uploadmedia_table', 1),
(8, '2022_08_10_173326_create_tmp_sales_table', 1),
(9, '2022_08_10_173331_create_sales_table', 1),
(10, '2022_09_09_063323_create_card_tokens_table', 2),
(11, '2022_09_12_123437_create_user_waves_table', 3),
(12, '2022_09_14_090208_create_video_settings_table', 3),
(13, '2022_09_28_131757_create_recurrings_table', 4),
(14, '2022_10_20_075419_create_wave_cycles_table', 5),
(15, '2022_11_02_102458_add_soft_delete_to_users_table', 6),
(16, '2022_11_04_094143_user_table_email_unique_alter', 7),
(17, '2022_11_07_140834_create_contents_table', 8),
(18, '2022_11_11_085302_create_user_security_questions_table', 9),
(19, '2022_11_15_103136_create_security_questions_table', 10),
(20, '2022_11_15_114332_create_user_security_question_answers_table', 10),
(21, '2022_12_02_064655_user_identity_question_answer', 11),
(22, '2022_12_27_095153_create_modules_table', 12),
(23, '2022_12_27_095308_create_submodules_table', 12),
(24, '2022_12_27_095329_create_permissions_table', 12),
(25, '2023_03_15_062557_create_creditreport_providers_table', 13);
-- --------------------------------------------------------
--
-- Table structure for table `modules`
--
CREATE TABLE `modules` (
`id` bigint UNSIGNED NOT NULL,
`name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
`status` tinyint NOT NULL DEFAULT '0' COMMENT 'for employee 1 otherwise 0',
`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 `modules`
--
INSERT INTO `modules` (`id`, `name`, `status`, `created_at`, `updated_at`) VALUES
(1, 'Client Management', 1, '2023-01-05 07:44:41', '2023-01-05 07:44:41'),
(2, 'Training Video', 1, '2023-01-05 07:44:41', '2023-01-05 07:44:41'),
(3, 'Sales Report', 1, '2023-01-05 07:44:41', '2023-01-05 07:44:41'),
(4, 'Terms And Service', 1, '2023-01-05 07:44:41', '2023-01-05 07:44:41'),
(5, 'Employee Management', 1, '2023-01-05 07:44:41', '2023-01-05 07:44:41'),
(7, 'Account Information', 0, '2023-01-19 13:05:27', '2023-01-19 13:05:27'),
(8, 'Software Training', 0, '2023-01-19 13:05:27', '2023-01-19 13:05:27'),
(9, 'WORK AREA', 0, '2023-01-19 13:05:27', '2023-01-19 13:05:27'),
(10, 'Profile', 0, '2023-01-19 13:05:27', '2023-01-19 13:05:27'),
(11, 'Payment Setting', 0, '2023-01-19 13:05:27', '2023-01-19 13:05:27'),
(12, 'Cancel Account', 0, '2023-01-19 13:05:27', '2023-01-19 13:05:27'),
(14, 'Credit Report Provider', 1, '2023-03-23 12:50:12', '2023-03-23 12:50:12');
-- --------------------------------------------------------
--
-- Table structure for table `packages`
--
CREATE TABLE `packages` (
`id` bigint UNSIGNED NOT NULL,
`name` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
`amount` double(12,4) NOT NULL DEFAULT '0.0000' COMMENT 'Package price',
`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 `password_resets`
--
CREATE TABLE `password_resets` (
`email` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
`token` varchar(255) CHARACTER SET utf8mb4 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 UNSIGNED NOT NULL,
`user_id` int NOT NULL,
`submodule_id` int 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 `recurrings`
--
CREATE TABLE `recurrings` (
`id` bigint UNSIGNED NOT NULL,
`user_id` bigint NOT NULL DEFAULT '0',
`last_process_date` datetime DEFAULT NULL,
`status` tinyint NOT NULL DEFAULT '1' COMMENT '1=active,2= inactive',
`transaction_status` tinyint NOT NULL DEFAULT '0',
`email` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`subscription_id` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`transaction_id` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`recurring_type` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`plan_payments` smallint NOT NULL DEFAULT '0',
`plan_amount` double(8,2) NOT NULL DEFAULT '0.00',
`day_frequency` tinyint NOT NULL DEFAULT '0',
`month_frequency` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`day_of_month` varchar(50) CHARACTER SET utf8mb4 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;
-- --------------------------------------------------------
--
-- Table structure for table `sales`
--
CREATE TABLE `sales` (
`id` bigint UNSIGNED NOT NULL,
`user_id` int NOT NULL DEFAULT '0',
`status` tinyint NOT NULL COMMENT '1=completed,0=failed,2=pending',
`order_id` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`cc_number` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL COMMENT 'masking and last 4 digit card number',
`auth_code` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT 'from api response authcode',
`transaction_id` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT 'from api response tranx id',
`recurring_id` int NOT NULL DEFAULT '0',
`ip` varchar(50) CHARACTER SET utf8mb4 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 `security_questions`
--
CREATE TABLE `security_questions` (
`id` bigint UNSIGNED NOT NULL,
`questions` varchar(255) CHARACTER SET utf8mb4 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 `submodules`
--
CREATE TABLE `submodules` (
`id` bigint UNSIGNED NOT NULL,
`module_id` int NOT NULL,
`key` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
`name` varchar(255) CHARACTER SET utf8mb4 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 `submodules`
--
INSERT INTO `submodules` (`id`, `module_id`, `key`, `name`, `created_at`, `updated_at`) VALUES
(1, 1, 'client-list', 'List', '2023-01-05 01:44:41', '2023-01-05 01:44:41'),
(2, 1, 'client-view', 'View', '2023-01-05 01:44:41', '2023-01-05 01:44:41'),
(3, 1, 'client-edit', 'Edit', '2023-01-05 01:44:41', '2023-01-05 01:44:41'),
(4, 1, 'client-delete', 'Delete', '2023-01-05 01:44:41', '2023-01-05 01:44:41'),
(5, 2, 'training-video-create', 'Create', '2023-01-05 01:44:41', '2023-01-05 01:44:41'),
(6, 2, 'training-video-edit', 'Edit', '2023-01-05 01:44:41', '2023-01-05 01:44:41'),
(7, 2, 'training-video-delete', 'Delete', '2023-01-05 01:44:41', '2023-01-05 01:44:41'),
(8, 3, 'sales-report', 'Sales Report', '2023-01-05 01:44:41', '2023-01-05 01:44:41'),
(9, 4, 'terms-service', 'Terms And Service', '2023-01-05 01:44:41', '2023-01-05 01:44:41'),
(10, 5, 'employee-list', 'List', '2023-01-05 01:44:41', '2023-01-05 01:44:41'),
(11, 6, 'user-permission-create', 'Create', '2023-01-05 01:44:41', '2023-01-05 01:44:41'),
(12, 6, 'user-permission-view', 'View', '2023-01-05 01:44:41', '2023-01-05 01:44:41'),
(13, 7, 'client-profile-view', 'View', '2023-01-05 01:44:41', '2023-01-05 01:44:41'),
(14, 7, 'client-profile-edit', 'Edit', '2023-01-05 01:44:41', '2023-01-05 01:44:41'),
(15, 12, 'client-cancel-account', 'Cancel Account', '2023-01-05 01:44:41', '2023-01-05 01:44:41'),
(16, 11, 'client-cancel-account', 'Payment Setting', '2023-01-05 01:44:41', '2023-01-05 01:44:41'),
(17, 8, 'client-training-video-view', 'View', '2023-01-05 01:44:41', '2023-01-05 01:44:41'),
(18, 9, 'client-letter-view-update', 'View', '2023-01-05 01:44:41', '2023-01-05 01:44:41'),
(19, 9, 'client-generate-pdf', 'Generate Pdf', '2023-01-05 01:44:41', '2023-01-05 01:44:41'),
(20, 9, 'client-get-credit-report', 'Credit Report', '2023-01-05 01:44:41', '2023-01-05 01:44:41'),
(21, 9, 'client-upload-credit-report', 'Upload Credit Report', '2023-01-05 01:44:41', '2023-01-05 01:44:41'),
(22, 5, 'employee-create', 'Create', '2023-01-05 01:44:41', '2023-01-05 01:44:41'),
(23, 5, 'employee-view', 'View', '2023-01-05 01:44:41', '2023-01-05 01:44:41'),
(24, 5, 'employee-edit', 'Edit', '2023-01-05 01:44:41', '2023-01-05 01:44:41'),
(25, 5, 'employee-delete', 'Delete', '2023-01-23 18:13:37', '2023-01-23 18:13:37'),
(26, 1, 'client-create', 'Create', '2023-03-09 13:30:34', '2023-03-09 13:30:34'),
(27, 14, 'credit-report-provider-create', 'Create', '2023-01-05 01:44:41', '2023-01-05 01:44:41'),
(28, 14, 'credit-report-provider-edit', 'Edit', '2023-01-05 01:44:41', '2023-01-05 01:44:41'),
(29, 14, 'credit-report-provider-delete', 'Delete', '2023-01-05 01:44:41', '2023-01-05 01:44:41');
-- --------------------------------------------------------
--
-- Table structure for table `tmp_sales`
--
CREATE TABLE `tmp_sales` (
`id` bigint UNSIGNED NOT NULL,
`status` tinyint NOT NULL DEFAULT '2' COMMENT '1=completed,0=failed,2=pending',
`order_id` varchar(100) CHARACTER SET utf8mb4 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 `uploadmedias`
--
CREATE TABLE `uploadmedias` (
`id` bigint UNSIGNED NOT NULL,
`user_id` int NOT NULL,
`image_type_id` int NOT NULL,
`image_path` varchar(100) CHARACTER SET utf8mb4 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;
-- --------------------------------------------------------
--
-- Table structure for table `users`
--
CREATE TABLE `users` (
`id` bigint UNSIGNED NOT NULL,
`first_name` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`last_name` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`user_type` tinyint NOT NULL DEFAULT '0' COMMENT '1=admin,0=client,2=employee',
`subscription_status` tinyint NOT NULL DEFAULT '0' COMMENT 'if payment success then(0=unsubscribed, 1= subscribed,2=cancel account)',
`status` tinyint NOT NULL DEFAULT '1' COMMENT 'active = 1, inactive = 2',
`credit_report_company_type` tinyint NOT NULL DEFAULT '3',
`is_first_login` tinyint NOT NULL DEFAULT '1',
`is_import` tinyint NOT NULL DEFAULT '0' COMMENT '1= eligible for import new report, 0= not yet',
`last_payment_date` datetime DEFAULT NULL,
`user_access_end_date` datetime DEFAULT NULL,
`last_import_date` datetime DEFAULT NULL,
`account_cancel_datetime` datetime DEFAULT NULL,
`wave` tinyint NOT NULL DEFAULT '0',
`email` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
`password` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
`street_no` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`street_name` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`city` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`state` varchar(10) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`birth_date` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`phone` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`zip_code` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`ssn` varchar(10) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`email_verified_at` timestamp NULL DEFAULT NULL,
`remember_token` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
`deleted_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- --------------------------------------------------------
--
-- Table structure for table `user_identity_question_answers`
--
CREATE TABLE `user_identity_question_answers` (
`id` bigint UNSIGNED NOT NULL,
`question` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
`answer` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
`user_id` int 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 `user_packages`
--
CREATE TABLE `user_packages` (
`id` bigint UNSIGNED NOT NULL,
`user_id` int NOT NULL,
`package_id` int 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 `user_security_questions`
--
CREATE TABLE `user_security_questions` (
`id` bigint UNSIGNED NOT NULL,
`user_id` int NOT NULL,
`answer_id` int 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 `user_security_question_answers`
--
CREATE TABLE `user_security_question_answers` (
`id` bigint UNSIGNED NOT NULL,
`user_id` int NOT NULL,
`question_id` int NOT NULL,
`answer` varchar(255) CHARACTER SET utf8mb4 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 `user_waves`
--
CREATE TABLE `user_waves` (
`id` bigint UNSIGNED NOT NULL,
`user_id` int NOT NULL DEFAULT '0',
`wave` varchar(10) CHARACTER SET utf8mb4 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 `video_settings`
--
CREATE TABLE `video_settings` (
`id` bigint UNSIGNED NOT NULL,
`link` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`section_name` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`status` tinyint NOT NULL DEFAULT '1' COMMENT '0-inaction, 1-active',
`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 `wave_cycles`
--
CREATE TABLE `wave_cycles` (
`id` bigint UNSIGNED NOT NULL,
`user_id` int NOT NULL DEFAULT '0',
`wave_cycle` int NOT NULL DEFAULT '0',
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Indexes for dumped tables
--
--
-- Indexes for table `card_tokens`
--
ALTER TABLE `card_tokens`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `contents`
--
ALTER TABLE `contents`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `creditreports`
--
ALTER TABLE `creditreports`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `creditreport_providers`
--
ALTER TABLE `creditreport_providers`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `failed_jobs`
--
ALTER TABLE `failed_jobs`
ADD PRIMARY KEY (`id`),
ADD UNIQUE KEY `failed_jobs_uuid_unique` (`uuid`);
--
-- Indexes for table `migrations`
--
ALTER TABLE `migrations`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `modules`
--
ALTER TABLE `modules`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `packages`
--
ALTER TABLE `packages`
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`);
--
-- Indexes for table `recurrings`
--
ALTER TABLE `recurrings`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `sales`
--
ALTER TABLE `sales`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `security_questions`
--
ALTER TABLE `security_questions`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `submodules`
--
ALTER TABLE `submodules`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `tmp_sales`
--
ALTER TABLE `tmp_sales`
ADD PRIMARY KEY (`id`),
ADD UNIQUE KEY `tmp_sales_order_id_unique` (`order_id`);
--
-- Indexes for table `uploadmedias`
--
ALTER TABLE `uploadmedias`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `users`
--
ALTER TABLE `users`
ADD PRIMARY KEY (`id`),
ADD UNIQUE KEY `email` (`email`);
--
-- Indexes for table `user_identity_question_answers`
--
ALTER TABLE `user_identity_question_answers`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `user_packages`
--
ALTER TABLE `user_packages`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `user_security_questions`
--
ALTER TABLE `user_security_questions`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `user_security_question_answers`
--
ALTER TABLE `user_security_question_answers`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `user_waves`
--
ALTER TABLE `user_waves`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `video_settings`
--
ALTER TABLE `video_settings`
ADD PRIMARY KEY (`id`),
ADD UNIQUE KEY `section_id` (`section_name`),
ADD UNIQUE KEY `section_id_2` (`section_name`);
--
-- Indexes for table `wave_cycles`
--
ALTER TABLE `wave_cycles`
ADD PRIMARY KEY (`id`);
--
-- AUTO_INCREMENT for dumped tables
--
--
-- AUTO_INCREMENT for table `card_tokens`
--
ALTER TABLE `card_tokens`
MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `contents`
--
ALTER TABLE `contents`
MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `creditreports`
--
ALTER TABLE `creditreports`
MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `creditreport_providers`
--
ALTER TABLE `creditreport_providers`
MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;
--
-- AUTO_INCREMENT for table `failed_jobs`
--
ALTER TABLE `failed_jobs`
MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `migrations`
--
ALTER TABLE `migrations`
MODIFY `id` int UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=26;
--
-- AUTO_INCREMENT for table `modules`
--
ALTER TABLE `modules`
MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=15;
--
-- AUTO_INCREMENT for table `packages`
--
ALTER TABLE `packages`
MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `permissions`
--
ALTER TABLE `permissions`
MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `recurrings`
--
ALTER TABLE `recurrings`
MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `sales`
--
ALTER TABLE `sales`
MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `security_questions`
--
ALTER TABLE `security_questions`
MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `submodules`
--
ALTER TABLE `submodules`
MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=30;
--
-- AUTO_INCREMENT for table `tmp_sales`
--
ALTER TABLE `tmp_sales`
MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `uploadmedias`
--
ALTER TABLE `uploadmedias`
MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `users`
--
ALTER TABLE `users`
MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `user_identity_question_answers`
--
ALTER TABLE `user_identity_question_answers`
MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `user_packages`
--
ALTER TABLE `user_packages`
MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `user_security_questions`
--
ALTER TABLE `user_security_questions`
MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `user_security_question_answers`
--
ALTER TABLE `user_security_question_answers`
MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `user_waves`
--
ALTER TABLE `user_waves`
MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `video_settings`
--
ALTER TABLE `video_settings`
MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `wave_cycles`
--
ALTER TABLE `wave_cycles`
MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT;
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 */;