-- phpMyAdmin SQL Dump
-- version 5.2.0
-- https://www.phpmyadmin.net/
--
-- Host: localhost
-- Generation Time: Dec 06, 2024 at 09:48 AM
-- Server version: 8.0.40-0ubuntu0.22.04.1
-- PHP Version: 8.2.24

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

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

--
-- Table structure for table `units`
--

CREATE TABLE `units` (
  `id` bigint UNSIGNED NOT NULL,
  `chapter_id` bigint UNSIGNED NOT NULL,
  `unit_number` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `content` text COLLATE utf8mb4_unicode_ci NOT NULL,
  `video` text COLLATE utf8mb4_unicode_ci,
  `link_youtube` text COLLATE utf8mb4_unicode_ci,
  `slide` text COLLATE utf8mb4_unicode_ci,
  `slug` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL,
  `hash_code` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `units`
--

INSERT INTO `units` (`id`, `chapter_id`, `unit_number`, `name`, `content`, `video`, `link_youtube`, `slide`, `slug`, `hash_code`, `created_at`, `updated_at`) VALUES
(37, 231, '1', 'NGUYÊN TỬ', '', NULL, '[\"https://www.youtube.com/embed/QmTr3qRRyKw?si=Cr_j_Xbrm4aiAaxT\"]', '[\"/upload/chuong trinh tu hoc online/Bai Giang/KHTN7/KHTN7C1B1. NGUYÊN TỬ.pdf\"]', 'nguyên-tử', 'KHTN7C1B1', '2024-12-06 09:41:31', '2024-12-06 09:41:31'),
(38, 231, '2', 'NGUYÊN TỐ HÓA HỌC', '', NULL, '[\"https://www.youtube.com/embed/ToT7H2SzxzE?si=lYUyKwbVG9t_9_y_\"]', '[\"/upload/chuong trinh tu hoc online/Bai Giang/KHTN7/KHTN7C1B2. NGUYÊN TỐ HÓA HỌC.pdf\"]', 'nguyên-tố-hóa-học', 'KHTN7C1B2', '2024-12-06 09:41:31', '2024-12-06 09:41:31'),
(39, 231, '3', 'SƠ LƯỢC VỀ BẢNG TUẦN HOÀN CÁC NGUYÊN TỐ HÓA HỌC', '', NULL, '[\"https://www.youtube.com/embed/XovOhHLgwhQ?si=eDtTo-MqmDIVAiRz\"]', '[\"/upload/chuong trinh tu hoc online/Bai Giang/KHTN7/KHTN7C1B3. SƠ LƯỢC VỀ BẢNG TUẦN HOÀN CÁC NGUYÊN TỐ HÓA HỌC.pdf\"]', 'sơ-lược-về-bảng-tuần-hoàn-các-nguyên-tố-hóa-học', 'KHTN7C1B3', '2024-12-06 09:41:31', '2024-12-06 09:41:31'),
(40, 241, '1', 'NGUYÊN TỬ', '', NULL, '[\"https://www.youtube.com/embed/QmTr3qRRyKw?si=Cr_j_Xbrm4aiAaxT\"]', '[\"/upload/chuong trinh tu hoc online/Bai Giang/KHTN8/KHTN8C1B1. NGUYÊN TỬ.pdf\"]', 'nguyên-tử', 'KHTN8C1B1', '2024-12-06 09:41:31', '2024-12-06 09:41:31'),
(41, 241, '2', 'NGUYÊN TỐ HÓA HỌC', '', NULL, '[\"https://www.youtube.com/embed/ToT7H2SzxzE?si=lYUyKwbVG9t_9_y_\"]', '[\"/upload/chuong trinh tu hoc online/Bai Giang/KHTN8/KHTN8C1B2. NGUYÊN TỐ HÓA HỌC.pdf\"]', 'nguyên-tố-hóa-học', 'KHTN8C1B2', '2024-12-06 09:41:31', '2024-12-06 09:41:31'),
(42, 241, '3', 'SƠ LƯỢC VỀ BẢNG TUẦN HOÀN CÁC NGUYÊN TỐ HÓA HỌC', '', NULL, '[\"https://www.youtube.com/embed/XovOhHLgwhQ?si=eDtTo-MqmDIVAiRz\"]', '[\"/upload/chuong trinh tu hoc online/Bai Giang/KHTN8/KHTN8C1B3. SƠ LƯỢC VỀ BẢNG TUẦN HOÀN CÁC NGUYÊN TỐ HÓA HỌC.pdf\"]', 'sơ-lược-về-bảng-tuần-hoàn-các-nguyên-tố-hóa-học', 'KHTN8C1B3', '2024-12-06 09:41:31', '2024-12-06 09:41:31'),
(43, 251, '1', 'NGUYÊN TỬ', '', NULL, '[\"https://www.youtube.com/embed/QmTr3qRRyKw?si=Cr_j_Xbrm4aiAaxT\"]', '[\"/upload/chuong trinh tu hoc online/Bai Giang/KHTN9/KHTN9C1B1. NGUYÊN TỬ.pdf\"]', 'nguyên-tử', 'KHTN9C1B1', '2024-12-06 09:41:31', '2024-12-06 09:41:31'),
(44, 251, '2', 'NGUYÊN TỐ HÓA HỌC', '', NULL, '[\"https://www.youtube.com/embed/ToT7H2SzxzE?si=lYUyKwbVG9t_9_y_\"]', '[\"/upload/chuong trinh tu hoc online/Bai Giang/KHTN9/KHTN9C1B2. NGUYÊN TỐ HÓA HỌC.pdf\"]', 'nguyên-tố-hóa-học', 'KHTN9C1B2', '2024-12-06 09:41:31', '2024-12-06 09:41:31'),
(45, 251, '3', 'SƠ LƯỢC VỀ BẢNG TUẦN HOÀN CÁC NGUYÊN TỐ HÓA HỌC', '', NULL, '[\"https://www.youtube.com/embed/XovOhHLgwhQ?si=eDtTo-MqmDIVAiRz\"]', '[\"/upload/chuong trinh tu hoc online/Bai Giang/KHTN9/KHTN9C1B3. SƠ LƯỢC VỀ BẢNG TUẦN HOÀN CÁC NGUYÊN TỐ HÓA HỌC.pdf\"]', 'sơ-lược-về-bảng-tuần-hoàn-các-nguyên-tố-hóa-học', 'KHTN9C1B3', '2024-12-06 09:41:31', '2024-12-06 09:41:31');

--
-- Indexes for dumped tables
--

--
-- Indexes for table `units`
--
ALTER TABLE `units`
  ADD PRIMARY KEY (`id`),
  ADD KEY `units_chapter_id_foreign` (`chapter_id`);

--
-- AUTO_INCREMENT for dumped tables
--

--
-- AUTO_INCREMENT for table `units`
--
ALTER TABLE `units`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=46;

--
-- Constraints for dumped tables
--

--
-- Constraints for table `units`
--
ALTER TABLE `units`
  ADD CONSTRAINT `units_chapter_id_foreign` FOREIGN KEY (`chapter_id`) REFERENCES `chapters` (`id`) ON DELETE CASCADE;
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 */;
