initial commit
This commit is contained in:
2
database/.gitignore
vendored
Normal file
2
database/.gitignore
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
*.sqlite
|
||||
*.sqlite-journal
|
||||
905
database/credit_assistance.sql
Normal file
905
database/credit_assistance.sql
Normal file
@@ -0,0 +1,905 @@
|
||||
-- phpMyAdmin SQL Dump
|
||||
-- version 5.2.2
|
||||
-- https://www.phpmyadmin.net/
|
||||
--
|
||||
-- Host: localhost:3306
|
||||
-- Generation Time: Jun 29, 2026 at 06:54 AM
|
||||
-- Server version: 8.4.3
|
||||
-- PHP Version: 8.1.32
|
||||
|
||||
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: `credit_assistance`
|
||||
--
|
||||
|
||||
-- --------------------------------------------------------
|
||||
|
||||
--
|
||||
-- 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;
|
||||
|
||||
--
|
||||
-- Dumping data for table `contents`
|
||||
--
|
||||
|
||||
INSERT INTO `contents` (`id`, `terms_service`, `created_at`, `updated_at`) VALUES
|
||||
(1, 'content/terms_and_service.html', '2023-10-22 21:08:46', '2023-10-22 21:08:46');
|
||||
|
||||
-- --------------------------------------------------------
|
||||
|
||||
--
|
||||
-- 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://www.identityiq.com/sc-securepreferred.aspx?offercode=431144NA', '2023-03-15 10:53:30', '2023-09-20 13:53:05'),
|
||||
(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 `iq_call_histories`
|
||||
--
|
||||
|
||||
CREATE TABLE `iq_call_histories` (
|
||||
`id` bigint UNSIGNED NOT NULL,
|
||||
`ip` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
||||
`port` varchar(10) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
||||
`page` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
||||
`error_code` varchar(10) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
||||
`status` tinyint NOT NULL DEFAULT '0' COMMENT '0 = failed, 1=success',
|
||||
`created_at` datetime DEFAULT NULL
|
||||
) 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;
|
||||
|
||||
-- --------------------------------------------------------
|
||||
|
||||
--
|
||||
-- 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', 0, '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;
|
||||
|
||||
--
|
||||
-- Dumping data for table `permissions`
|
||||
--
|
||||
|
||||
INSERT INTO `permissions` (`id`, `user_id`, `submodule_id`, `created_at`, `updated_at`) VALUES
|
||||
(1, 6, 1, '2023-08-27 16:32:09', '2023-08-27 16:32:09'),
|
||||
(2, 6, 2, '2023-08-27 16:32:09', '2023-08-27 16:32:09'),
|
||||
(3, 6, 3, '2023-08-27 16:32:09', '2023-08-27 16:32:09'),
|
||||
(4, 6, 26, '2023-08-27 16:32:09', '2023-08-27 16:32:09');
|
||||
|
||||
-- --------------------------------------------------------
|
||||
|
||||
--
|
||||
-- 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 `supports`
|
||||
--
|
||||
|
||||
CREATE TABLE `supports` (
|
||||
`id` bigint UNSIGNED NOT NULL,
|
||||
`sender_id` int NOT NULL,
|
||||
`assigned_id` int NOT NULL DEFAULT '0',
|
||||
`title` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
|
||||
`priority` tinyint NOT NULL DEFAULT '1' COMMENT '1=normal,2=high, 3= Very High, 4=urgent',
|
||||
`is_read` tinyint NOT NULL DEFAULT '0' COMMENT '1=normal,2=high, 3= Very High, 4=urgent',
|
||||
`status` tinyint NOT NULL DEFAULT '0' COMMENT '0 = Pending, 1 = In progress, 2 = closed, 3 = replied',
|
||||
`created_at` datetime DEFAULT NULL,
|
||||
`updated_at` datetime DEFAULT NULL
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
||||
|
||||
--
|
||||
-- Dumping data for table `supports`
|
||||
--
|
||||
|
||||
INSERT INTO `supports` (`id`, `sender_id`, `assigned_id`, `title`, `priority`, `is_read`, `status`, `created_at`, `updated_at`) VALUES
|
||||
(50, 90, 0, 'test', 1, 0, 0, '2026-06-29 06:21:56', '2026-06-29 06:21:56');
|
||||
|
||||
-- --------------------------------------------------------
|
||||
|
||||
--
|
||||
-- Table structure for table `support_replies`
|
||||
--
|
||||
|
||||
CREATE TABLE `support_replies` (
|
||||
`id` bigint UNSIGNED NOT NULL,
|
||||
`sender_id` int NOT NULL,
|
||||
`support_id` int NOT NULL,
|
||||
`is_read` tinyint NOT NULL DEFAULT '0' COMMENT '0=no read,1=read',
|
||||
`message` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
|
||||
`attachment_path` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
||||
`created_at` datetime DEFAULT NULL,
|
||||
`updated_at` datetime DEFAULT NULL
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
||||
|
||||
--
|
||||
-- Dumping data for table `support_replies`
|
||||
--
|
||||
|
||||
INSERT INTO `support_replies` (`id`, `sender_id`, `support_id`, `is_read`, `message`, `attachment_path`, `created_at`, `updated_at`) VALUES
|
||||
(148, 90, 50, 0, 'import problem', NULL, '2026-06-29 06:21:56', '2026-06-29 06:21:56');
|
||||
|
||||
-- --------------------------------------------------------
|
||||
|
||||
--
|
||||
-- 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;
|
||||
|
||||
--
|
||||
-- Dumping data for table `users`
|
||||
--
|
||||
|
||||
INSERT INTO `users` (`id`, `first_name`, `last_name`, `user_type`, `subscription_status`, `status`, `credit_report_company_type`, `is_first_login`, `is_import`, `last_payment_date`, `user_access_end_date`, `last_import_date`, `account_cancel_datetime`, `wave`, `email`, `password`, `street_no`, `street_name`, `city`, `state`, `birth_date`, `phone`, `zip_code`, `ssn`, `email_verified_at`, `remember_token`, `created_at`, `updated_at`, `deleted_at`) VALUES
|
||||
(1, 'Jesse', 'Miller', 1, 1, 1, 3, 0, 1, NULL, NULL, '2022-10-06 10:35:10', NULL, 1, 'jesse@clickletters.com', 'YTZLd2xBTTM4K0prVGc1bE5sODlIQT09', '3555', 'Roosevelt Street', 'San Francisco', 'IL', '10/05/2000', '415-374-2261', '94108', '5555', NULL, NULL, '2022-10-06 16:27:05', '2022-12-22 22:18:22', NULL);
|
||||
|
||||
-- --------------------------------------------------------
|
||||
|
||||
--
|
||||
-- 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',
|
||||
`is_welcome_video` tinyint 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;
|
||||
|
||||
--
|
||||
-- Dumping data for table `video_settings`
|
||||
--
|
||||
|
||||
INSERT INTO `video_settings` (`id`, `link`, `section_name`, `status`, `is_welcome_video`, `created_at`, `updated_at`) VALUES
|
||||
(1, 'https://vimeo.com/879617245?', 'Welcome Video', 1, 0, '2023-08-27 20:35:58', '2023-11-04 15:03:03'),
|
||||
(2, 'https://vimeo.com/858446778', 'How to use the Software', 1, 0, '2023-10-31 00:52:19', '2023-10-31 00:52:19'),
|
||||
(3, 'https://vimeo.com/881194312', 'Intro Video', 1, 1, '2023-11-04 15:03:36', '2023-11-04 15:03:36'),
|
||||
(4, 'https://vimeo.com/881196911', 'Error When Saving', 1, 0, '2023-11-04 15:13:39', '2023-11-04 15:13:39'),
|
||||
(5, 'https://vimeo.com/881197877', 'Personal Information To Add To Letters', 1, 0, '2023-11-04 15:19:49', '2023-11-04 15:19:49'),
|
||||
(6, 'https://vimeo.com/881199460', 'How to Attack Inquiries', 1, 0, '2023-11-04 15:28:55', '2023-11-04 15:28:55'),
|
||||
(7, 'https://vimeo.com/881200151', 'How To Attack Accounts or Bankruptcies 11 or 13', 1, 0, '2023-11-04 15:33:26', '2023-11-04 15:33:26'),
|
||||
(8, 'https://vimeo.com/881200911', 'How To Upload Your Credit Report', 1, 0, '2023-11-04 15:36:04', '2023-11-04 15:36:04');
|
||||
|
||||
-- --------------------------------------------------------
|
||||
|
||||
--
|
||||
-- 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 `iq_call_histories`
|
||||
--
|
||||
ALTER TABLE `iq_call_histories`
|
||||
ADD PRIMARY KEY (`id`);
|
||||
|
||||
--
|
||||
-- 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 `supports`
|
||||
--
|
||||
ALTER TABLE `supports`
|
||||
ADD PRIMARY KEY (`id`);
|
||||
|
||||
--
|
||||
-- Indexes for table `support_replies`
|
||||
--
|
||||
ALTER TABLE `support_replies`
|
||||
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=2;
|
||||
|
||||
--
|
||||
-- AUTO_INCREMENT for table `creditreports`
|
||||
--
|
||||
ALTER TABLE `creditreports`
|
||||
MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=87;
|
||||
|
||||
--
|
||||
-- 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 `iq_call_histories`
|
||||
--
|
||||
ALTER TABLE `iq_call_histories`
|
||||
MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=275;
|
||||
|
||||
--
|
||||
-- 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=5;
|
||||
|
||||
--
|
||||
-- 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 `supports`
|
||||
--
|
||||
ALTER TABLE `supports`
|
||||
MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=51;
|
||||
|
||||
--
|
||||
-- AUTO_INCREMENT for table `support_replies`
|
||||
--
|
||||
ALTER TABLE `support_replies`
|
||||
MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=149;
|
||||
|
||||
--
|
||||
-- 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=224;
|
||||
|
||||
--
|
||||
-- AUTO_INCREMENT for table `users`
|
||||
--
|
||||
ALTER TABLE `users`
|
||||
MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=91;
|
||||
|
||||
--
|
||||
-- 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=102;
|
||||
|
||||
--
|
||||
-- AUTO_INCREMENT for table `video_settings`
|
||||
--
|
||||
ALTER TABLE `video_settings`
|
||||
MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=9;
|
||||
|
||||
--
|
||||
-- AUTO_INCREMENT for table `wave_cycles`
|
||||
--
|
||||
ALTER TABLE `wave_cycles`
|
||||
MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;
|
||||
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 */;
|
||||
33
database/factories/UserFactory.php
Normal file
33
database/factories/UserFactory.php
Normal file
@@ -0,0 +1,33 @@
|
||||
<?php
|
||||
|
||||
namespace Database\Factories;
|
||||
|
||||
use App\Models\User;
|
||||
use Illuminate\Database\Eloquent\Factories\Factory;
|
||||
use Illuminate\Support\Str;
|
||||
|
||||
class UserFactory extends Factory
|
||||
{
|
||||
/**
|
||||
* The name of the factory's corresponding model.
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected $model = User::class;
|
||||
|
||||
/**
|
||||
* Define the model's default state.
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public function definition()
|
||||
{
|
||||
return [
|
||||
'name' => $this->faker->name,
|
||||
'email' => $this->faker->unique()->safeEmail,
|
||||
'email_verified_at' => now(),
|
||||
'password' => '$2y$10$92IXUNpkjO0rOQ5byMi.Ye4oKoEa3Ro9llC/.og/at2.uheWG/igi', // password
|
||||
'remember_token' => Str::random(10),
|
||||
];
|
||||
}
|
||||
}
|
||||
2
database/imran_sql.txt
Normal file
2
database/imran_sql.txt
Normal file
@@ -0,0 +1,2 @@
|
||||
ALTER TABLE `packages` ADD `amount` DOUBLE(12,4) NOT NULL DEFAULT '0' COMMENT 'Package price' AFTER `name`;
|
||||
INSERT INTO `packages` (`id`, `name`, `amount`, `created_at`, `updated_at`) VALUES (NULL, 'Basic', '19.97', NULL, NULL), (NULL, 'Premium', '24.97', NULL, NULL);
|
||||
796
database/initialdb.sql
Normal file
796
database/initialdb.sql
Normal file
@@ -0,0 +1,796 @@
|
||||
-- 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 */;
|
||||
47
database/migrations/2014_10_12_000000_create_users_table.php
Normal file
47
database/migrations/2014_10_12_000000_create_users_table.php
Normal file
@@ -0,0 +1,47 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
class CreateUsersTable extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::create('users', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->string('first_name',100)->nullable();
|
||||
$table->string('last_name',100)->nullable();
|
||||
$table->tinyInteger('credit_report_company_type')->default(3);
|
||||
$table->tinyInteger('is_first_login')->default(1);
|
||||
$table->string('email')->unique();
|
||||
$table->string('password');
|
||||
$table->string('street_no',100)->nullable();
|
||||
$table->string('street_name',100)->nullable();
|
||||
$table->string('city',50)->nullable();
|
||||
$table->string('state',10)->nullable();
|
||||
$table->string('birth_date',20)->nullable();
|
||||
$table->string('phone',20)->nullable();
|
||||
$table->string('zip_code',50)->nullable();
|
||||
$table->string('ssn',10)->nullable();
|
||||
$table->timestamp('email_verified_at')->nullable();
|
||||
$table->rememberToken();
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::dropIfExists('users');
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,32 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
class CreatePasswordResetsTable extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::create('password_resets', function (Blueprint $table) {
|
||||
$table->string('email')->index();
|
||||
$table->string('token');
|
||||
$table->timestamp('created_at')->nullable();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::dropIfExists('password_resets');
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,36 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
class CreateFailedJobsTable extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::create('failed_jobs', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->string('uuid')->unique();
|
||||
$table->text('connection');
|
||||
$table->text('queue');
|
||||
$table->longText('payload');
|
||||
$table->longText('exception');
|
||||
$table->timestamp('failed_at')->useCurrent();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::dropIfExists('failed_jobs');
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,32 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
class CreatePackagesTable extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::create('packages', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->string('name',100);
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::dropIfExists('packages');
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,33 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
class CreateUserPackagesTable extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::create('user_packages', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->integer('user_id');
|
||||
$table->integer('package_id');
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::dropIfExists('user_packages');
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,36 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
class CreateCreditreportsTable extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::create('creditreports', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->integer('user_id')->default(0);
|
||||
$table->tinyInteger('report_type')->default(3); // 3 = smart credit, 1 = IQ, 2 = privacy guard
|
||||
$table->string('email',255)->nullable();
|
||||
$table->string('password',255)->nullable();
|
||||
$table->string('file_name')->nullable();
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::dropIfExists('creditreports');
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,34 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
class CreateUploadmediaTable extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::create('uploadmedias', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->integer('user_id');
|
||||
$table->integer('image_type_id');
|
||||
$table->string('image_path',100)->nullable();
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::dropIfExists('uploadmedia');
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,33 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
class CreateTmpSalesTable extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::create('tmp_sales', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->tinyInteger('status')->default('2')->comment('1=completed,0=failed,2=pending');
|
||||
$table->string('order_id',100)->unique();
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::dropIfExists('tmp_sales');
|
||||
}
|
||||
}
|
||||
37
database/migrations/2022_08_10_173331_create_sales_table.php
Normal file
37
database/migrations/2022_08_10_173331_create_sales_table.php
Normal file
@@ -0,0 +1,37 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
class CreateSalesTable extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::create('sales', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->integer('user_id')->default(0);
|
||||
$table->tinyInteger('status')->comment('1=completed,0=failed,2=pending');
|
||||
$table->string('order_id',100)->unique();
|
||||
$table->string('auth_code',50)->nullable()->comment('from api response authcode');
|
||||
$table->string('transaction_id',100)->nullable()->comment('from api response tranx id');
|
||||
$table->string('ip',50);
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::dropIfExists('sales');
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,33 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
class CreateCardTokensTable extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::create('card_tokens', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->bigInteger('user_id');
|
||||
$table->string('token');
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::dropIfExists('card_tokens');
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,33 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
class CreateUserWavesTable extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::create('user_waves', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->integer('user_id')->default(0);
|
||||
$table->string('wave',10)->default(null);
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::dropIfExists('user_waves');
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,32 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
class CreateVideoSettingsTable extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::create('video_settings', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->string('link',255)->nullable();
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::dropIfExists('video_settings');
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,42 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
class CreateRecurringsTable extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::create('recurrings', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->bigInteger('user_id');
|
||||
$table->string('subscription_id',20);
|
||||
$table->string('transaction_id',20);
|
||||
$table->string('recurring_type',100);
|
||||
$table->smallInteger('plan_payments');
|
||||
$table->double('plan_amount',8,2);
|
||||
$table->tinyInteger('day_frequency');
|
||||
$table->string('month_frequency',50);
|
||||
$table->string('day_of_month',50);
|
||||
$table->string('ccnumber',50);
|
||||
$table->string('ccexp',20);
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::dropIfExists('recurrings');
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,33 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
class CreateWaveCyclesTable extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::create('wave_cycles', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->integer('user_id')->default(0);
|
||||
$table->integer('wave_cycle')->default(0);
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::dropIfExists('wave_cycles');
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,33 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
class AddSoftDeleteToUsersTable extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::table('users', function (Blueprint $table) {
|
||||
$table->softDeletes();
|
||||
//
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::table('users', function (Blueprint $table) {
|
||||
$table->dropSoftDeletes();
|
||||
});
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,31 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
class UserTableEmailUniqueAlter extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::table('users', function (Blueprint $table) {
|
||||
$table->dropUnique('users_email_unique');
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
//
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,32 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
class CreateContentsTable extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::create('contents', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->string('terms_service',500);
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::dropIfExists('contents');
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,33 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
class CreateUserSecurityQuestionsTable extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::create('user_security_questions', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->integer('user_id');
|
||||
$table->integer('question_id');
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::dropIfExists('user_security_questions');
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,32 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
class CreateSecurityQuestionsTable extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::create('security_questions', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->string('questions');
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::dropIfExists('security_questions');
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,34 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
class CreateUserSecurityQuestionAnswersTable extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::create('user_security_question_answers', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->integer('user_id');
|
||||
$table->integer('question_id');
|
||||
$table->string('answer');
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::dropIfExists('user_security_question_answers');
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,34 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
class UserIdentityQuestionAnswer extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::create('user_identity_question_answers',function (Blueprint $table){
|
||||
$table->id();
|
||||
$table->string('question');
|
||||
$table->string('answer');
|
||||
$table->integer('user_id');
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::dropIfExists('user_security_question_answers');
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,32 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
class CreateModulesTable extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::create('modules', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->string('name');
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::dropIfExists('modules');
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,35 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
class CreateSubmodulesTable extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::create('submodules', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->integer('module_id');
|
||||
$table->string('key');
|
||||
$table->string('name');
|
||||
$table->integer('is_default')->default(0)->change();
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::dropIfExists('submodules');
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,33 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
class CreatePermissionsTable extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::create('permissions', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->integer('user_id');
|
||||
$table->integer('submodule_id');
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::dropIfExists('permissions');
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,33 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
class CreateCreditreportProvidersTable extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::create('creditreport_providers', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->tinyInteger('company_type');
|
||||
$table->string('link', 350)->nullable();
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::dropIfExists('creditreport_providers');
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,37 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
class CreateSupportsTable extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::create('supports', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->integer('sender_id');
|
||||
$table->integer('assigned_id')->default(0);
|
||||
$table->string('title',255);
|
||||
$table->tinyInteger('priority')->default(1)->comment('1=normal,2=high, 3= Very High, 4=urgent');
|
||||
$table->tinyInteger('is_read')->default(0)->comment('1=normal,2=high, 3= Very High, 4=urgent');
|
||||
$table->tinyInteger('status')->default(0)->comment('0 = Pending, 1 = In progress, 2 = closed, 3 = replied');
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::dropIfExists('supports');
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,34 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
class CreateSupportRepliesTable extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::create('support_replies', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->integer('support_id');
|
||||
$table->text('message');
|
||||
$table->string('attachment_path',100)->nullable();
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::dropIfExists('support_replies');
|
||||
}
|
||||
}
|
||||
18
database/module_insert.txt
Normal file
18
database/module_insert.txt
Normal file
@@ -0,0 +1,18 @@
|
||||
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 Registration','1', '2023-01-05 07:44:41', '2023-01-05 07:44:41'),
|
||||
(6, 'Employee Permission','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');
|
||||
|
||||
#23-mar-23
|
||||
================
|
||||
INSERT INTO `modules` (`id`, `name`, `status`, `created_at`, `updated_at`) VALUES
|
||||
(14, 'Credit Report Provider', '1', '2023-03-23 12:50:12', '2023-03-23 12:50:12');
|
||||
112
database/pulakdbchange.txt
Normal file
112
database/pulakdbchange.txt
Normal file
@@ -0,0 +1,112 @@
|
||||
#12-08-2022
|
||||
ALTER TABLE `users` ADD `is_import` TINYINT(4) NOT NULL DEFAULT '0' COMMENT '1= eligible for import new report, 0= not yet' AFTER `is_first_login`, ADD `last_import_date` DATETIME NULL DEFAULT NULL AFTER `is_import`;
|
||||
|
||||
#13-Sep-2022
|
||||
ALTER TABLE `users` ADD `user_type` TINYINT(4) NOT NULL DEFAULT '0' AFTER `last_name`;
|
||||
|
||||
#15-sep-2022
|
||||
ALTER TABLE `video_settings` ADD `section_id` INT(11) NOT NULL DEFAULT '0' AFTER `link`, ADD `status` TINYINT(4) NOT NULL DEFAULT '1' COMMENT '0-inaction, 1-active' AFTER `section_id`;
|
||||
ALTER TABLE `video_settings` ADD UNIQUE(`section_id`);
|
||||
|
||||
#16-sep-2022
|
||||
ALTER TABLE `users` ADD `status` TINYINT(4) NOT NULL DEFAULT '1' AFTER `user_type`;
|
||||
|
||||
#19-sep-2022
|
||||
ALTER TABLE `video_settings` CHANGE `section_id` `section_name` VARCHAR(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL;
|
||||
|
||||
#23-sep-2022
|
||||
ALTER TABLE `users` ADD `wave` TINYINT(10) NOT NULL DEFAULT '0' AFTER `last_import_date`;
|
||||
=======================================
|
||||
completed
|
||||
=======================================
|
||||
|
||||
#29-sep-2022
|
||||
ALTER TABLE `recurrings` ADD `transaction_status` TINYINT(4) NOT NULL AFTER `user_id`, ADD `email` VARCHAR(20) NOT NULL AFTER `transaction_status`, ADD `name` VARCHAR(100) NOT NULL AFTER `email`;
|
||||
|
||||
#30-sep-2022
|
||||
ALTER TABLE `recurrings` CHANGE `email` `email` VARCHAR(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL;
|
||||
ALTER TABLE `recurrings`DROP `ccnumber`,DROP `ccexp`;
|
||||
ALTER TABLE `users` ADD `subscription_type` TINYINT(4) NOT NULL DEFAULT '0' AFTER `user_type`;
|
||||
ALTER TABLE `users` CHANGE `subscription_type` `subscription_status` TINYINT(4) NOT NULL DEFAULT '0' COMMENT '0=unsubcribed, 1= subscribed';
|
||||
|
||||
#14-nov-2022
|
||||
ALTER TABLE `user_security_questions` CHANGE `question_id` `answer_id` INT(11) NOT NULL;
|
||||
|
||||
#21-dec-2022
|
||||
ALTER TABLE `sales` ADD `cc_number` VARCHAR(50) CHARACTER SET utf8 COLLATE utf8_unicode_ci NULL COMMENT 'masking and last 4 digit card number' AFTER `order_id`;
|
||||
ALTER TABLE `users` CHANGE `subscription_status` `subscription_status` TINYINT(4) NOT NULL DEFAULT '0' COMMENT 'if payment success then(0=unsubcribed, 1= subscribed)';
|
||||
|
||||
==============================
|
||||
deployed
|
||||
===============================
|
||||
|
||||
#22-dec-2022
|
||||
ALTER TABLE `users` ADD `last_payment_date` DATETIME NULL DEFAULT NULL AFTER `is_import`;
|
||||
ALTER TABLE `users` CHANGE `user_type` `user_type` TINYINT(4) NOT NULL DEFAULT '0' COMMENT '1=admin,0=client,2=employee';
|
||||
|
||||
#17-jan-2023
|
||||
ALTER TABLE `users` ADD `account_cancel_datetime` DATETIME NULL DEFAULT NULL AFTER `last_import_date`;
|
||||
ALTER TABLE `users` CHANGE `subscription_status` `subscription_status` TINYINT(4) NOT NULL DEFAULT '0' COMMENT 'if payment success then(0=unsubscribed, 1= subscribed,2=cancel account)';
|
||||
|
||||
#19-jan-2023
|
||||
ALTER TABLE `modules` ADD `status` TINYINT(4) NOT NULL DEFAULT '0' COMMENT 'for employee 1 otherwise 0' AFTER `name`;
|
||||
|
||||
#20-jan-2023
|
||||
UPDATE `modules` SET `name` = 'Employee Management' WHERE `modules`.`id` = 5;
|
||||
DELETE FROM `modules` WHERE id = 6;
|
||||
|
||||
UPDATE `submodules` SET `name` = 'List' WHERE `submodules`.`id` = 10;
|
||||
UPDATE `submodules` SET `key` = 'employee-list' WHERE `submodules`.`id` = 10;
|
||||
====================
|
||||
deployed
|
||||
=====================
|
||||
|
||||
#27-jan-2023
|
||||
=======================
|
||||
ALTER TABLE `users` CHANGE `status` `status` TINYINT(4) NOT NULL DEFAULT '1' COMMENT 'active = 1, inactive = 2';
|
||||
|
||||
#30-jan-2023
|
||||
======================
|
||||
ALTER TABLE `recurrings` ADD `last_process_date` DATETIME NULL DEFAULT NULL AFTER `user_id`, ADD `status` TINYINT(4) NOT NULL DEFAULT '1' COMMENT '1=active,2= inactive' AFTER `last_process_date`;
|
||||
|
||||
#31-jan-2023
|
||||
=====================
|
||||
ALTER TABLE `recurrings` CHANGE `user_id` `user_id` BIGINT NOT NULL DEFAULT '0';
|
||||
ALTER TABLE `recurrings` CHANGE `transaction_status` `transaction_status` TINYINT NOT NULL DEFAULT '0';
|
||||
ALTER TABLE `recurrings` CHANGE `email` `email` VARCHAR(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL;
|
||||
ALTER TABLE `recurrings` CHANGE `name` `name` VARCHAR(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL;
|
||||
ALTER TABLE `recurrings` CHANGE `subscription_id` `subscription_id` VARCHAR(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL;
|
||||
ALTER TABLE `recurrings` CHANGE `transaction_id` `transaction_id` VARCHAR(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL;
|
||||
ALTER TABLE `recurrings` CHANGE `recurring_type` `recurring_type` VARCHAR(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL;
|
||||
ALTER TABLE `recurrings` CHANGE `plan_payments` `plan_payments` SMALLINT NOT NULL DEFAULT '0';
|
||||
ALTER TABLE `recurrings` CHANGE `plan_amount` `plan_amount` DOUBLE(8,2) NOT NULL DEFAULT '0';
|
||||
ALTER TABLE `recurrings` CHANGE `day_frequency` `day_frequency` TINYINT NOT NULL DEFAULT '0';
|
||||
ALTER TABLE `recurrings` CHANGE `month_frequency` `month_frequency` VARCHAR(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL;
|
||||
ALTER TABLE `recurrings` CHANGE `day_of_month` `day_of_month` VARCHAR(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL;
|
||||
|
||||
#23-mar-2023
|
||||
======================
|
||||
INSERT INTO `creditreport_providers` (`id`, `company_type`, `link`, `created_at`, `updated_at`)
|
||||
VALUES (NULL, '1', 'https://member.identityiq.com/creditpreferred.aspx?offercode=431141CQ', '2023-03-15 10:53:30', '2023-03-23 06:15:04'),
|
||||
(NULL, '3', 'https://www.smartcredit.com/?PID=11885', '2023-03-23 04:24:33', '2023-03-23 05:06:09');
|
||||
|
||||
==============================
|
||||
deployed
|
||||
===============================
|
||||
|
||||
#28-mar-2023
|
||||
========================
|
||||
ALTER TABLE `sales` ADD `recurring_id` INT NOT NULL DEFAULT '0' AFTER `transaction_id`;
|
||||
|
||||
#30-mar-2023
|
||||
========================
|
||||
ALTER TABLE `sales` DROP INDEX `sales_order_id_unique`;
|
||||
ALTER TABLE `sales` CHANGE `order_id` `order_id` VARCHAR(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL;
|
||||
|
||||
#03-apr-2023
|
||||
========================
|
||||
update `recurrings` set plan_amount=24.97,day_of_month=30;
|
||||
|
||||
#05-apr-2023
|
||||
=======================
|
||||
ALTER TABLE `users` ADD `user_access_end_date` DATETIME NULL DEFAULT NULL AFTER `last_payment_date`;
|
||||
18
database/seeders/DatabaseSeeder.php
Normal file
18
database/seeders/DatabaseSeeder.php
Normal file
@@ -0,0 +1,18 @@
|
||||
<?php
|
||||
|
||||
namespace Database\Seeders;
|
||||
|
||||
use Illuminate\Database\Seeder;
|
||||
|
||||
class DatabaseSeeder extends Seeder
|
||||
{
|
||||
/**
|
||||
* Seed the application's database.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function run()
|
||||
{
|
||||
// User::factory(10)->create();
|
||||
}
|
||||
}
|
||||
48
database/sql_changes.txt
Normal file
48
database/sql_changes.txt
Normal file
@@ -0,0 +1,48 @@
|
||||
INSERT INTO `users` (`id`, `first_name`, `last_name`, `user_type`, `subscription_status`, `status`, `credit_report_company_type`, `is_first_login`, `is_import`, `last_payment_date`, `user_access_end_date`, `last_import_date`, `account_cancel_datetime`, `wave`, `email`, `password`, `street_no`, `street_name`, `city`, `state`, `birth_date`, `phone`, `zip_code`, `ssn`, `email_verified_at`, `remember_token`, `created_at`, `updated_at`, `deleted_at`) VALUES (NULL, 'Jesse', 'Miller', '1', '1', '1', '3', '0', '1', NULL, NULL, '2022-10-06 10:35:10', NULL, '1', 'jesse@clickletters.com', 'YTZLd2xBTTM4K0prVGc1bE5sODlIQT09', '3555', 'Roosevelt Street', 'San Francisco', 'IL', '10/05/2000', '415-374-2261', '94108', '5555', NULL, NULL, '2022-10-06 16:27:05', '2022-12-22 22:18:22', NULL)
|
||||
|
||||
#28-08-2023
|
||||
ALTER TABLE `video_settings` ADD `is_welcome_video` TINYINT NOT NULL DEFAULT '0' AFTER `status`;
|
||||
|
||||
INSERT INTO `users` (`id`, `first_name`, `last_name`, `user_type`, `subscription_status`, `status`, `credit_report_company_type`, `is_first_login`, `is_import`, `last_payment_date`, `user_access_end_date`, `last_import_date`, `account_cancel_datetime`, `wave`, `email`, `password`, `street_no`, `street_name`, `city`, `state`, `birth_date`, `phone`, `zip_code`, `ssn`, `email_verified_at`, `remember_token`, `created_at`, `updated_at`, `deleted_at`) VALUES (NULL, 'Jesse', 'Miller', '3', '1', '1', '1', '1', '0', '2023-08-28 16:08:24', '2023-09-28 16:08:24', NULL, NULL, '1', 'test_cce@gmail.com', 'YTZLd2xBTTM4K0prVGc1bE5sODlIQT09', 'test', 'test', 'test', 'test', '10/05/1990', '456-987-1234', '12345', '1234', NULL, NULL, NULL, NULL, NULL)
|
||||
|
||||
#24-09-2023
|
||||
|
||||
CREATE TABLE `supports` (
|
||||
`id` bigint UNSIGNED NOT NULL,
|
||||
`sender_id` int NOT NULL,
|
||||
`assigned_id` int NOT NULL DEFAULT '0',
|
||||
`title` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
|
||||
`priority` tinyint NOT NULL DEFAULT '1' COMMENT '1=normal,2=high, 3= Very High, 4=urgent',
|
||||
`is_read` tinyint NOT NULL DEFAULT '0' COMMENT '1=normal,2=high, 3= Very High, 4=urgent',
|
||||
`status` tinyint NOT NULL DEFAULT '0' COMMENT '0 = Pending, 1 = In progress, 2 = closed, 3 = replied',
|
||||
`created_at` timestamp NULL DEFAULT NULL,
|
||||
`updated_at` timestamp NULL DEFAULT NULL
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
||||
|
||||
|
||||
CREATE TABLE `support_replies` (
|
||||
`id` bigint UNSIGNED NOT NULL,
|
||||
`support_id` int NOT NULL,
|
||||
`message` text COLLATE utf8mb4_unicode_ci NOT NULL,
|
||||
`attachment_path` varchar(100) 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;
|
||||
|
||||
ALTER TABLE `supports`
|
||||
ADD PRIMARY KEY (`id`);
|
||||
|
||||
ALTER TABLE `support_replies`
|
||||
ADD PRIMARY KEY (`id`);
|
||||
|
||||
ALTER TABLE `supports`
|
||||
MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT;
|
||||
|
||||
|
||||
ALTER TABLE `support_replies`
|
||||
MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT;
|
||||
|
||||
ALTER TABLE `support_replies` ADD `sender_id` INT NOT NULL AFTER `id`;
|
||||
|
||||
#05-10-2023
|
||||
ALTER TABLE `support_replies` ADD `is_read` TINYINT NOT NULL DEFAULT '0' COMMENT '0=no read,1=read' AFTER `support_id`;
|
||||
55
database/submodule_insert.txt
Normal file
55
database/submodule_insert.txt
Normal file
@@ -0,0 +1,55 @@
|
||||
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');
|
||||
================================================
|
||||
deployed
|
||||
================================================
|
||||
|
||||
|
||||
#20-jan-2023
|
||||
=========================
|
||||
INSERT INTO `submodules` (`id`, `module_id`, `key`, `name`, `created_at`, `updated_at`) VALUES
|
||||
(NULL, '5', 'employee-create', 'Create', '2023-01-05 01:44:41', '2023-01-05 01:44:41'),
|
||||
(NULL, '5', 'employee-view', 'View', '2023-01-05 01:44:41', '2023-01-05 01:44:41'),
|
||||
(NULL, '5', 'employee-edit', 'Edit', '2023-01-05 01:44:41', '2023-01-05 01:44:41');
|
||||
|
||||
================================================
|
||||
deployed
|
||||
================================================
|
||||
|
||||
#23-jan-2023
|
||||
===============================================
|
||||
INSERT INTO `submodules` (`id`, `module_id`, `key`, `name`, `created_at`, `updated_at`) VALUES
|
||||
(NULL, '5', 'employee-delete', 'Delete', '2023-01-23 18:13:37', '2023-01-23 18:13:37');
|
||||
|
||||
#09-mar-2023
|
||||
================================================
|
||||
INSERT INTO `submodules` (`id`, `module_id`, `key`, `name`, `created_at`, `updated_at`) VALUES
|
||||
(NULL, '1', 'client-create', 'Create', '2023-03-09 13:30:34', '2023-03-09 13:30:34')
|
||||
|
||||
#23-mar-2023
|
||||
================================
|
||||
INSERT INTO `submodules` (`id`, `module_id`, `key`, `name`, `created_at`, `updated_at`) VALUES
|
||||
(NULL, '14', 'credit-report-provider-create', 'Create', '2023-01-05 01:44:41', '2023-01-05 01:44:41'),
|
||||
(NULL, '14', 'credit-report-provider-edit', 'Edit', '2023-01-05 01:44:41', '2023-01-05 01:44:41'),
|
||||
(NULL, '14', 'credit-report-provider-delete', 'Delete', '2023-01-05 01:44:41', '2023-01-05 01:44:41');
|
||||
|
||||
Reference in New Issue
Block a user