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

START TRANSACTION;



--
-- 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);

--
-- 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`);

--
-- 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;
COMMIT;

