-- phpMyAdmin SQL Dump
-- version 5.2.1
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Feb 05, 2024 at 06:48 PM
-- Server version: 10.4.32-MariaDB
-- PHP Version: 8.1.25

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: `live_chat`
--

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

--
-- Table structure for table `failed_jobs`
--

CREATE TABLE `failed_jobs` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `uuid` varchar(255) NOT NULL,
  `connection` text NOT NULL,
  `queue` text NOT NULL,
  `payload` longtext NOT NULL,
  `exception` longtext NOT NULL,
  `failed_at` timestamp NOT NULL DEFAULT current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `messages`
--

CREATE TABLE `messages` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `user_id` varchar(255) NOT NULL,
  `sender_id` varchar(255) NOT NULL,
  `receiver_id` varchar(255) NOT NULL,
  `message` longtext DEFAULT NULL,
  `msg_file` varchar(255) DEFAULT NULL,
  `msg_files` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL CHECK (json_valid(`msg_files`)),
  `status` varchar(255) 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 `messages`
--

INSERT INTO `messages` (`id`, `user_id`, `sender_id`, `receiver_id`, `message`, `msg_file`, `msg_files`, `status`, `created_at`, `updated_at`) VALUES
(1, '2', '2', '1', 'Hi, james how are you doing ?', NULL, NULL, '0', '2024-02-02 04:24:39', '2024-02-02 04:24:39'),
(2, '1', '1', '2', 'Hi jhon, what happened ?', NULL, NULL, '0', '2024-02-02 04:26:13', '2024-02-02 04:26:13'),
(3, '1', '1', '2', NULL, '1706819512.webm', NULL, '0', '2024-02-02 04:31:52', '2024-02-02 04:31:52'),
(4, '1', '1', '2', NULL, '1706911349.webm', NULL, '0', '2024-02-03 06:02:29', '2024-02-03 06:02:29'),
(5, '1', '1', '3', 'my name is zesh', NULL, NULL, '0', '2024-02-03 06:05:01', '2024-02-03 06:05:01'),
(6, '1', '1', '3', NULL, NULL, '[\"1706911510.jpg\"]', '0', '2024-02-03 06:05:10', '2024-02-03 06:05:10'),
(7, '1', '1', '3', NULL, NULL, '[\"1706912284.jpg\"]', '0', '2024-02-03 06:18:04', '2024-02-03 06:18:04'),
(8, '1', '1', '3', NULL, '1706912554.webm', NULL, '0', '2024-02-03 06:22:34', '2024-02-03 06:22:34'),
(9, '1', '1', '3', 'xyzzzzzz', NULL, NULL, '0', '2024-02-03 06:22:40', '2024-02-03 06:22:40'),
(10, '1', '1', '3', NULL, '1706912917.webm', NULL, '0', '2024-02-03 06:28:37', '2024-02-03 06:28:37'),
(11, '1', '1', '3', NULL, '1706913244.webm', NULL, '0', '2024-02-03 06:34:04', '2024-02-03 06:34:04'),
(12, '1', '1', '3', NULL, NULL, '[\"1706913338.jpg\"]', '0', '2024-02-03 06:35:38', '2024-02-03 06:35:38'),
(13, '2', '2', '1', NULL, NULL, '[\"1706914356.jpg\"]', '0', '2024-02-03 06:52:36', '2024-02-03 06:52:36'),
(14, '1', '1', '2', NULL, NULL, '[\"1706914393.jpg\"]', '0', '2024-02-03 06:53:13', '2024-02-03 06:53:13'),
(15, '2', '2', '1', NULL, '1706914893.webm', NULL, '0', '2024-02-03 07:01:33', '2024-02-03 07:01:33'),
(16, '2', '2', '1', NULL, NULL, '[\"1706914915.jpg\"]', '0', '2024-02-03 07:01:55', '2024-02-03 07:01:55'),
(17, '2', '2', '1', NULL, '1706915186.webm', NULL, '0', '2024-02-03 07:06:26', '2024-02-03 07:06:26'),
(18, '2', '2', '3', 'Hi ! hello zee...', NULL, NULL, '0', '2024-02-06 01:25:56', '2024-02-06 01:25:56'),
(19, '3', '3', '2', 'Hi ! hello jhon...', NULL, NULL, '0', '2024-02-06 01:26:50', '2024-02-06 01:26:50'),
(20, '2', '2', '3', 'how are you doing !', NULL, NULL, '0', '2024-02-06 01:27:17', '2024-02-06 01:27:17'),
(21, '3', '3', '2', 'fuck you ah ash meri gand mar lo', NULL, NULL, '0', '2024-02-06 01:27:53', '2024-02-06 01:27:53'),
(22, '2', '2', '3', '', '1707154091.webm', NULL, '0', '2024-02-06 01:28:11', '2024-02-06 01:28:11'),
(23, '3', '3', '2', '', NULL, '[\"1707154114.jpg\"]', '0', '2024-02-06 01:28:34', '2024-02-06 01:28:34');

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

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

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

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

INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES
(1, '2014_10_12_000000_create_users_table', 1),
(2, '2014_10_12_100000_create_password_reset_tokens_table', 1),
(3, '2019_08_19_000000_create_failed_jobs_table', 1),
(4, '2019_12_14_000001_create_personal_access_tokens_table', 1),
(5, '2024_01_29_202325_create_messages_table', 1);

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

--
-- Table structure for table `password_reset_tokens`
--

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

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

--
-- Table structure for table `personal_access_tokens`
--

CREATE TABLE `personal_access_tokens` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `tokenable_type` varchar(255) NOT NULL,
  `tokenable_id` bigint(20) UNSIGNED NOT NULL,
  `name` varchar(255) NOT NULL,
  `token` varchar(64) NOT NULL,
  `abilities` text DEFAULT NULL,
  `last_used_at` timestamp NULL DEFAULT NULL,
  `expires_at` timestamp NULL 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(20) UNSIGNED NOT NULL,
  `profile` varchar(255) NOT NULL,
  `name` varchar(255) NOT NULL,
  `email` varchar(255) NOT NULL,
  `password` varchar(255) NOT NULL,
  `status` varchar(255) NOT NULL DEFAULT '0',
  `email_verified_at` timestamp NULL DEFAULT NULL,
  `remember_token` varchar(100) 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 `users`
--

INSERT INTO `users` (`id`, `profile`, `name`, `email`, `password`, `status`, `email_verified_at`, `remember_token`, `created_at`, `updated_at`) VALUES
(1, '1706560233.jpg', 'James Rogers', 'james@gmail.com', '$2y$12$/B4CJEj2QbFCmMMKxbhl0ORp9Q2eGo2.BOhcnLFvXfeIxxbsR49fm', '0', NULL, NULL, '2024-01-30 04:30:33', '2024-02-03 07:06:12'),
(2, '1706560595.jpg', 'Jhon', 'jhon@gmail.com', '$2y$12$0BWfnLQtrsi6VzHuL9q0geXNIDKUv7M2edh9q7xyQMKQ3M9lxZmBa', '0', NULL, NULL, '2024-01-30 04:36:35', '2024-02-06 01:31:30'),
(3, '1706716551.jpg', 'Zee', 'zee@gmail.com', '$2y$12$twIY6WYOZSOjNsa77AAhDu7q8Mz.qqBfdQzc0o6mLppEIKTZHUk0y', '0', NULL, NULL, '2024-01-31 23:55:51', '2024-02-06 01:29:00');

--
-- Indexes for dumped tables
--

--
-- Indexes for table `failed_jobs`
--
ALTER TABLE `failed_jobs`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `failed_jobs_uuid_unique` (`uuid`);

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

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

--
-- Indexes for table `password_reset_tokens`
--
ALTER TABLE `password_reset_tokens`
  ADD PRIMARY KEY (`email`);

--
-- Indexes for table `personal_access_tokens`
--
ALTER TABLE `personal_access_tokens`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `personal_access_tokens_token_unique` (`token`),
  ADD KEY `personal_access_tokens_tokenable_type_tokenable_id_index` (`tokenable_type`,`tokenable_id`);

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

--
-- AUTO_INCREMENT for dumped tables
--

--
-- AUTO_INCREMENT for table `failed_jobs`
--
ALTER TABLE `failed_jobs`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `messages`
--
ALTER TABLE `messages`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=24;

--
-- AUTO_INCREMENT for table `migrations`
--
ALTER TABLE `migrations`
  MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6;

--
-- AUTO_INCREMENT for table `personal_access_tokens`
--
ALTER TABLE `personal_access_tokens`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

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