diff --git a/danh_sach_giai_thuong.csv b/danh_sach_giai_thuong.csv new file mode 100644 index 0000000..7e45c98 --- /dev/null +++ b/danh_sach_giai_thuong.csv @@ -0,0 +1,12 @@ +#,ma_giai_thuong,noi_dung,hinh_anh,so_thu_tu,ma_so_nhan_giai,ten_nguoi_nhan_giai,phan_loai_khach,ma_so_nhan_giai_thuc_te,ten_nguoi_nhan_giai_thuc_te,da_nhan_giai,thoi_gian_cho,created_at,updated_at +1,1,Giải Nhất,,1,0009,,,,,1,,2026-01-08 04:11:07,2026-01-09 10:28:15 +2,2,Giải Nhì,,2,,,,NV002,Trần Thị B,1,,2026-01-08 04:11:07,2026-01-09 09:46:45 +3,3,Giải Ba,,3,,,1,,,1,,2026-01-08 04:11:07,2026-01-09 10:27:05 +4,4,Giải Tư,,4,,,1,,,1,,2026-01-08 04:11:07,2026-01-09 10:27:16 +5,5,Giải Năm,,5,01008,01008,,01008,01008,1,,2026-01-08 04:11:07,2026-01-09 10:29:51 +6,6,Giải Sáu,,6,001,Lê Văn C,,001,Lê Văn C,1,,2026-01-08 04:11:07,2026-01-09 10:07:23 +7,7,Giải Bảy,,7,,,,NV003,Lê Văn C,1,,2026-01-08 04:11:07,2026-01-09 01:22:03 +8,8,Giải Tám,,8,,,,KH002,Hoàng Văn E,1,,2026-01-08 04:11:07,2026-01-09 01:21:41 +9,9,Giải Chín,,9,,,,KH001,Phạm Thị D,1,,2026-01-08 04:11:07,2026-01-09 00:48:43 +10,10,Giải Mười,,10,,,,NV001,Nguyễn Văn A,1,,2026-01-08 04:11:07,2026-01-09 00:47:26 +11,11,Giải 11,,12,,,1,,,1,,2026-01-09 10:24:38,2026-01-09 10:26:07 diff --git a/danh_sach_nguoi_dung.csv b/danh_sach_nguoi_dung.csv new file mode 100644 index 0000000..75c4aff --- /dev/null +++ b/danh_sach_nguoi_dung.csv @@ -0,0 +1,6 @@ +#,id_nguoi_dung,ma_nguoi_dung,ten_nguoi_dung,loai_nguoi_dung,created_at,updated_at +1,1,NV001,Nguyễn Văn A,Nhân viên,2026-01-08 11:11:33,2026-01-08 11:11:33 +2,2,NV002,Trần Thị B,Nhân viên,2026-01-08 11:11:33,2026-01-08 11:11:33 +3,3,NV003,Lê Văn C,Nhân viên,2026-01-08 11:11:33,2026-01-08 11:11:33 +4,4,KH001,Phạm Thị D,Khách hàng,2026-01-08 11:11:33,2026-01-08 11:11:33 +5,5,KH002,Hoàng Văn E,Khách hàng,2026-01-08 11:11:33,2026-01-08 11:11:33 diff --git a/failed_jobs.csv b/failed_jobs.csv new file mode 100644 index 0000000..0a91abc --- /dev/null +++ b/failed_jobs.csv @@ -0,0 +1 @@ +#,id,uuid,connection,queue,payload,exception,failed_at diff --git a/fsg3kct926qj_quaysoDB.sql b/fsg3kct926qj_quaysoDB.sql index 6bc3818..0fee2fa 100644 --- a/fsg3kct926qj_quaysoDB.sql +++ b/fsg3kct926qj_quaysoDB.sql @@ -35,6 +35,76 @@ CREATE TABLE `cache` ( -- -------------------------------------------------------- +-- +-- Cấu trúc bảng cho bảng `danh_sach_giai_thuong` +-- + +DROP TABLE IF EXISTS `danh_sach_giai_thuong`; +CREATE TABLE `danh_sach_giai_thuong` ( + `ma_giai_thuong` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, + `noi_dung` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, + `hinh_anh` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `so_thu_tu` int(11) NOT NULL DEFAULT 0, + `ma_so_nhan_giai` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `ten_nguoi_nhan_giai` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `phan_loai_khach` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `ma_so_nhan_giai_thuc_te` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `ten_nguoi_nhan_giai_thuc_te` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `da_nhan_giai` tinyint(4) NOT NULL DEFAULT 0, + `thoi_gian_cho` int(11) DEFAULT NULL, + `created_at` timestamp NULL DEFAULT NULL, + `updated_at` timestamp NULL DEFAULT NULL, + PRIMARY KEY (`ma_giai_thuong`) +) ENGINE=InnoDB AUTO_INCREMENT=12 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; + +-- +-- Đang đổ dữ liệu cho bảng `danh_sach_giai_thuong` +-- + +INSERT INTO `danh_sach_giai_thuong` VALUES +(1,'Giải Nhất',NULL,1,'0009',NULL,NULL,NULL,NULL,1,NULL,'2026-01-07 21:11:07','2026-01-09 03:28:15'), +(2,'Giải Nhì',NULL,2,NULL,NULL,NULL,'NV002','Trần Thị B',1,NULL,'2026-01-07 21:11:07','2026-01-09 02:46:45'), +(3,'Giải Ba',NULL,3,NULL,NULL,'1',NULL,NULL,1,NULL,'2026-01-07 21:11:07','2026-01-09 03:27:05'), +(4,'Giải Tư',NULL,4,NULL,NULL,'1',NULL,NULL,1,NULL,'2026-01-07 21:11:07','2026-01-09 03:27:16'), +(5,'Giải Năm',NULL,5,'01008','01008',NULL,'01008','01008',1,NULL,'2026-01-07 21:11:07','2026-01-09 03:29:51'), +(6,'Giải Sáu',NULL,6,'001','Lê Văn C',NULL,'001','Lê Văn C',1,NULL,'2026-01-07 21:11:07','2026-01-09 03:07:23'), +(7,'Giải Bảy',NULL,7,NULL,NULL,NULL,'NV003','Lê Văn C',1,NULL,'2026-01-07 21:11:07','2026-01-08 18:22:03'), +(8,'Giải Tám',NULL,8,NULL,NULL,NULL,'KH002','Hoàng Văn E',1,NULL,'2026-01-07 21:11:07','2026-01-08 18:21:41'), +(9,'Giải Chín',NULL,9,NULL,NULL,NULL,'KH001','Phạm Thị D',1,NULL,'2026-01-07 21:11:07','2026-01-08 17:48:43'), +(10,'Giải Mười',NULL,10,NULL,NULL,NULL,'NV001','Nguyễn Văn A',1,NULL,'2026-01-07 21:11:07','2026-01-08 17:47:26'), +(11,'Giải 11',NULL,12,NULL,NULL,'1',NULL,NULL,1,NULL,'2026-01-09 03:24:38','2026-01-09 03:26:07'); + +-- -------------------------------------------------------- + +-- +-- Cấu trúc bảng cho bảng `danh_sach_nguoi_dung` +-- + +DROP TABLE IF EXISTS `danh_sach_nguoi_dung`; +CREATE TABLE `danh_sach_nguoi_dung` ( + `id_nguoi_dung` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, + `ma_nguoi_dung` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, + `ten_nguoi_dung` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, + `loai_nguoi_dung` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `created_at` timestamp NULL DEFAULT NULL, + `updated_at` timestamp NULL DEFAULT NULL, + PRIMARY KEY (`id_nguoi_dung`), + UNIQUE KEY `danh_sach_nguoi_dung_ma_nguoi_dung_unique` (`ma_nguoi_dung`) +) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; + +-- +-- Đang đổ dữ liệu cho bảng `danh_sach_nguoi_dung` +-- + +INSERT INTO `danh_sach_nguoi_dung` VALUES +(1,'NV001','Nguyễn Văn A','Nhân viên','2026-01-08 04:11:33','2026-01-08 04:11:33'), +(2,'NV002','Trần Thị B','Nhân viên','2026-01-08 04:11:33','2026-01-08 04:11:33'), +(3,'NV003','Lê Văn C','Nhân viên','2026-01-08 04:11:33','2026-01-08 04:11:33'), +(4,'KH001','Phạm Thị D','Khách hàng','2026-01-08 04:11:33','2026-01-08 04:11:33'), +(5,'KH002','Hoàng Văn E','Khách hàng','2026-01-08 04:11:33','2026-01-08 04:11:33'); + +-- -------------------------------------------------------- + -- -- Cấu trúc bảng cho bảng `cache_locks` -- @@ -115,7 +185,36 @@ CREATE TABLE `migrations` ( INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES (1, '0001_01_01_000000_create_users_table', 1), (2, '0001_01_01_000001_create_cache_table', 1), -(3, '0001_01_01_000002_create_jobs_table', 1); +(3, '0001_01_01_000002_create_jobs_table', 1), +(4, '2014_10_12_100000_create_password_resets_table', 1), +(5, '2019_12_14_000001_create_personal_access_tokens_table', 1), +(6, '2024_12_11_040120_create_notifications_table', 1), +(7, '2026_01_08_040853_create_danh_sach_giai_thuong_table', 2), +(8, '2026_01_08_040907_create_danh_sach_nguoi_dung_table', 2); + +-- -------------------------------------------------------- + +-- +-- Cấu trúc bảng cho bảng `notifications` +-- + +DROP TABLE IF EXISTS `notifications`; +CREATE TABLE `notifications` ( + `id` char(36) COLLATE utf8mb4_unicode_ci NOT NULL, + `type` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, + `notifiable_type` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, + `notifiable_id` bigint(20) UNSIGNED NOT NULL, + `data` text COLLATE utf8mb4_unicode_ci NOT NULL, + `read_at` timestamp NULL DEFAULT NULL, + `created_at` timestamp NULL DEFAULT NULL, + `updated_at` timestamp NULL DEFAULT NULL, + PRIMARY KEY (`id`), + KEY `notifications_notifiable_type_notifiable_id_index` (`notifiable_type`,`notifiable_id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; + +-- +-- Đang đổ dữ liệu cho bảng `notifications` +-- -- -------------------------------------------------------- @@ -156,6 +255,33 @@ CREATE TABLE `password_reset_tokens` ( -- -------------------------------------------------------- +-- +-- Cấu trúc bảng cho bảng `personal_access_tokens` +-- + +DROP TABLE IF EXISTS `personal_access_tokens`; +CREATE TABLE `personal_access_tokens` ( + `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, + `tokenable_type` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, + `tokenable_id` bigint(20) UNSIGNED NOT NULL, + `name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, + `token` varchar(64) COLLATE utf8mb4_unicode_ci NOT NULL, + `abilities` text COLLATE utf8mb4_unicode_ci, + `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, + PRIMARY KEY (`id`), + UNIQUE KEY `personal_access_tokens_token_unique` (`token`), + KEY `personal_access_tokens_tokenable_type_tokenable_id_index` (`tokenable_type`,`tokenable_id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; + +-- +-- Đang đổ dữ liệu cho bảng `personal_access_tokens` +-- + +-- -------------------------------------------------------- + -- -- Cấu trúc bảng cho bảng `posts` -- diff --git a/luckywheel_backup.sql b/luckywheel_backup.sql new file mode 100644 index 0000000..c340dbc --- /dev/null +++ b/luckywheel_backup.sql @@ -0,0 +1,263 @@ +-- MySQL dump 10.13 Distrib 8.0.44, for Linux (x86_64) +-- +-- Host: localhost Database: luckywheel +-- ------------------------------------------------------ +-- Server version 8.0.44-0ubuntu0.22.04.2 + +/*!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 */; +/*!50503 SET NAMES utf8mb4 */; +/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */; +/*!40103 SET TIME_ZONE='+00:00' */; +/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; +/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */; +/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */; +/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; + +-- +-- Table structure for table `danh_sach_giai_thuong` +-- + +DROP TABLE IF EXISTS `danh_sach_giai_thuong`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!50503 SET character_set_client = utf8mb4 */; +CREATE TABLE `danh_sach_giai_thuong` ( + `ma_giai_thuong` bigint unsigned NOT NULL AUTO_INCREMENT, + `noi_dung` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, + `hinh_anh` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `so_thu_tu` int NOT NULL DEFAULT '0', + `ma_so_nhan_giai` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `ten_nguoi_nhan_giai` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `phan_loai_khach` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `ma_so_nhan_giai_thuc_te` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `ten_nguoi_nhan_giai_thuc_te` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `da_nhan_giai` tinyint NOT NULL DEFAULT '0', + `thoi_gian_cho` int DEFAULT NULL, + `created_at` timestamp NULL DEFAULT NULL, + `updated_at` timestamp NULL DEFAULT NULL, + PRIMARY KEY (`ma_giai_thuong`) +) ENGINE=InnoDB AUTO_INCREMENT=12 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Dumping data for table `danh_sach_giai_thuong` +-- + +LOCK TABLES `danh_sach_giai_thuong` WRITE; +/*!40000 ALTER TABLE `danh_sach_giai_thuong` DISABLE KEYS */; +INSERT INTO `danh_sach_giai_thuong` VALUES (1,'Giải Nhất',NULL,1,'0009',NULL,NULL,NULL,NULL,1,NULL,'2026-01-07 21:11:07','2026-01-09 03:28:15'),(2,'Giải Nhì',NULL,2,NULL,NULL,NULL,'NV002','Trần Thị B',1,NULL,'2026-01-07 21:11:07','2026-01-09 02:46:45'),(3,'Giải Ba',NULL,3,NULL,NULL,'1',NULL,NULL,1,NULL,'2026-01-07 21:11:07','2026-01-09 03:27:05'),(4,'Giải Tư',NULL,4,NULL,NULL,'1',NULL,NULL,1,NULL,'2026-01-07 21:11:07','2026-01-09 03:27:16'),(5,'Giải Năm',NULL,5,'01008','01008',NULL,'01008','01008',1,NULL,'2026-01-07 21:11:07','2026-01-09 03:29:51'),(6,'Giải Sáu',NULL,6,'001','Lê Văn C',NULL,'001','Lê Văn C',1,NULL,'2026-01-07 21:11:07','2026-01-09 03:07:23'),(7,'Giải Bảy',NULL,7,NULL,NULL,NULL,'NV003','Lê Văn C',1,NULL,'2026-01-07 21:11:07','2026-01-08 18:22:03'),(8,'Giải Tám',NULL,8,NULL,NULL,NULL,'KH002','Hoàng Văn E',1,NULL,'2026-01-07 21:11:07','2026-01-08 18:21:41'),(9,'Giải Chín',NULL,9,NULL,NULL,NULL,'KH001','Phạm Thị D',1,NULL,'2026-01-07 21:11:07','2026-01-08 17:48:43'),(10,'Giải Mười',NULL,10,NULL,NULL,NULL,'NV001','Nguyễn Văn A',1,NULL,'2026-01-07 21:11:07','2026-01-08 17:47:26'),(11,'Giải 11',NULL,12,NULL,NULL,'1',NULL,NULL,1,NULL,'2026-01-09 03:24:38','2026-01-09 03:26:07'); +/*!40000 ALTER TABLE `danh_sach_giai_thuong` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Table structure for table `danh_sach_nguoi_dung` +-- + +DROP TABLE IF EXISTS `danh_sach_nguoi_dung`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!50503 SET character_set_client = utf8mb4 */; +CREATE TABLE `danh_sach_nguoi_dung` ( + `id_nguoi_dung` bigint unsigned NOT NULL AUTO_INCREMENT, + `ma_nguoi_dung` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, + `ten_nguoi_dung` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, + `loai_nguoi_dung` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `created_at` timestamp NULL DEFAULT NULL, + `updated_at` timestamp NULL DEFAULT NULL, + PRIMARY KEY (`id_nguoi_dung`), + UNIQUE KEY `danh_sach_nguoi_dung_ma_nguoi_dung_unique` (`ma_nguoi_dung`) +) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Dumping data for table `danh_sach_nguoi_dung` +-- + +LOCK TABLES `danh_sach_nguoi_dung` WRITE; +/*!40000 ALTER TABLE `danh_sach_nguoi_dung` DISABLE KEYS */; +INSERT INTO `danh_sach_nguoi_dung` VALUES (1,'NV001','Nguyễn Văn A','Nhân viên','2026-01-08 04:11:33','2026-01-08 04:11:33'),(2,'NV002','Trần Thị B','Nhân viên','2026-01-08 04:11:33','2026-01-08 04:11:33'),(3,'NV003','Lê Văn C','Nhân viên','2026-01-08 04:11:33','2026-01-08 04:11:33'),(4,'KH001','Phạm Thị D','Khách hàng','2026-01-08 04:11:33','2026-01-08 04:11:33'),(5,'KH002','Hoàng Văn E','Khách hàng','2026-01-08 04:11:33','2026-01-08 04:11:33'); +/*!40000 ALTER TABLE `danh_sach_nguoi_dung` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Table structure for table `failed_jobs` +-- + +DROP TABLE IF EXISTS `failed_jobs`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!50503 SET character_set_client = utf8mb4 */; +CREATE TABLE `failed_jobs` ( + `id` bigint unsigned NOT NULL AUTO_INCREMENT, + `uuid` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, + `connection` text COLLATE utf8mb4_unicode_ci NOT NULL, + `queue` text COLLATE utf8mb4_unicode_ci NOT NULL, + `payload` longtext COLLATE utf8mb4_unicode_ci NOT NULL, + `exception` longtext COLLATE utf8mb4_unicode_ci NOT NULL, + `failed_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, + PRIMARY KEY (`id`), + UNIQUE KEY `failed_jobs_uuid_unique` (`uuid`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Dumping data for table `failed_jobs` +-- + +LOCK TABLES `failed_jobs` WRITE; +/*!40000 ALTER TABLE `failed_jobs` DISABLE KEYS */; +/*!40000 ALTER TABLE `failed_jobs` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Table structure for table `migrations` +-- + +DROP TABLE IF EXISTS `migrations`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!50503 SET character_set_client = utf8mb4 */; +CREATE TABLE `migrations` ( + `id` int unsigned NOT NULL AUTO_INCREMENT, + `migration` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, + `batch` int NOT NULL, + PRIMARY KEY (`id`) +) ENGINE=InnoDB AUTO_INCREMENT=8 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Dumping data for table `migrations` +-- + +LOCK TABLES `migrations` WRITE; +/*!40000 ALTER TABLE `migrations` DISABLE KEYS */; +INSERT INTO `migrations` 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,'2019_12_14_000001_create_personal_access_tokens_table',1),(5,'2024_12_11_040120_create_notifications_table',1),(6,'2026_01_08_040853_create_danh_sach_giai_thuong_table',2),(7,'2026_01_08_040907_create_danh_sach_nguoi_dung_table',2); +/*!40000 ALTER TABLE `migrations` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Table structure for table `notifications` +-- + +DROP TABLE IF EXISTS `notifications`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!50503 SET character_set_client = utf8mb4 */; +CREATE TABLE `notifications` ( + `id` char(36) COLLATE utf8mb4_unicode_ci NOT NULL, + `type` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, + `notifiable_type` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, + `notifiable_id` bigint unsigned NOT NULL, + `data` text COLLATE utf8mb4_unicode_ci NOT NULL, + `read_at` timestamp NULL DEFAULT NULL, + `created_at` timestamp NULL DEFAULT NULL, + `updated_at` timestamp NULL DEFAULT NULL, + PRIMARY KEY (`id`), + KEY `notifications_notifiable_type_notifiable_id_index` (`notifiable_type`,`notifiable_id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Dumping data for table `notifications` +-- + +LOCK TABLES `notifications` WRITE; +/*!40000 ALTER TABLE `notifications` DISABLE KEYS */; +/*!40000 ALTER TABLE `notifications` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Table structure for table `password_resets` +-- + +DROP TABLE IF EXISTS `password_resets`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!50503 SET character_set_client = utf8mb4 */; +CREATE TABLE `password_resets` ( + `email` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, + `token` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, + `created_at` timestamp NULL DEFAULT NULL, + PRIMARY KEY (`email`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Dumping data for table `password_resets` +-- + +LOCK TABLES `password_resets` WRITE; +/*!40000 ALTER TABLE `password_resets` DISABLE KEYS */; +/*!40000 ALTER TABLE `password_resets` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Table structure for table `personal_access_tokens` +-- + +DROP TABLE IF EXISTS `personal_access_tokens`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!50503 SET character_set_client = utf8mb4 */; +CREATE TABLE `personal_access_tokens` ( + `id` bigint unsigned NOT NULL AUTO_INCREMENT, + `tokenable_type` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, + `tokenable_id` bigint unsigned NOT NULL, + `name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, + `token` varchar(64) COLLATE utf8mb4_unicode_ci NOT NULL, + `abilities` text COLLATE utf8mb4_unicode_ci, + `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, + PRIMARY KEY (`id`), + UNIQUE KEY `personal_access_tokens_token_unique` (`token`), + KEY `personal_access_tokens_tokenable_type_tokenable_id_index` (`tokenable_type`,`tokenable_id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Dumping data for table `personal_access_tokens` +-- + +LOCK TABLES `personal_access_tokens` WRITE; +/*!40000 ALTER TABLE `personal_access_tokens` DISABLE KEYS */; +/*!40000 ALTER TABLE `personal_access_tokens` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Table structure for table `users` +-- + +DROP TABLE IF EXISTS `users`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!50503 SET character_set_client = utf8mb4 */; +CREATE TABLE `users` ( + `id` bigint unsigned NOT NULL AUTO_INCREMENT, + `name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, + `email` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, + `email_verified_at` timestamp NULL DEFAULT NULL, + `password` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, + `remember_token` varchar(100) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `created_at` timestamp NULL DEFAULT NULL, + `updated_at` timestamp NULL DEFAULT NULL, + PRIMARY KEY (`id`), + UNIQUE KEY `users_email_unique` (`email`) +) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Dumping data for table `users` +-- + +LOCK TABLES `users` WRITE; +/*!40000 ALTER TABLE `users` DISABLE KEYS */; +INSERT INTO `users` VALUES (1,'Admin','admin@luckywheel.com',NULL,'$2y$10$i7VBicpsTi4wLs8y/po6eO4BJyJzqCVYZE26vfzkmC.rm/SxqWXxq',NULL,'2026-01-07 21:11:44','2026-01-07 21:11:44'); +/*!40000 ALTER TABLE `users` ENABLE KEYS */; +UNLOCK TABLES; +/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; + +/*!40101 SET SQL_MODE=@OLD_SQL_MODE */; +/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */; +/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */; +/*!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 */; +/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; + +-- Dump completed on 2026-01-11 9:02:56 diff --git a/migrations.csv b/migrations.csv new file mode 100644 index 0000000..a8c4439 --- /dev/null +++ b/migrations.csv @@ -0,0 +1,8 @@ +#,id,migration,batch +1,1,2014_10_12_000000_create_users_table,1 +2,2,2014_10_12_100000_create_password_resets_table,1 +3,3,2019_08_19_000000_create_failed_jobs_table,1 +4,4,2019_12_14_000001_create_personal_access_tokens_table,1 +5,5,2024_12_11_040120_create_notifications_table,1 +6,6,2026_01_08_040853_create_danh_sach_giai_thuong_table,2 +7,7,2026_01_08_040907_create_danh_sach_nguoi_dung_table,2 diff --git a/notifications.csv b/notifications.csv new file mode 100644 index 0000000..ea74560 --- /dev/null +++ b/notifications.csv @@ -0,0 +1 @@ +#,id,type,notifiable_type,notifiable_id,data,read_at,created_at,updated_at diff --git a/password_resets.csv b/password_resets.csv new file mode 100644 index 0000000..6be49c3 --- /dev/null +++ b/password_resets.csv @@ -0,0 +1 @@ +#,email,token,created_at diff --git a/personal_access_tokens.csv b/personal_access_tokens.csv new file mode 100644 index 0000000..2e1791d --- /dev/null +++ b/personal_access_tokens.csv @@ -0,0 +1 @@ +#,id,tokenable_type,tokenable_id,name,token,abilities,last_used_at,expires_at,created_at,updated_at diff --git a/users.csv b/users.csv new file mode 100644 index 0000000..6d8caf2 --- /dev/null +++ b/users.csv @@ -0,0 +1,2 @@ +#,id,name,email,email_verified_at,password,remember_token,created_at,updated_at +1,1,Admin,admin@luckywheel.com,,$2y$10$i7VBicpsTi4wLs8y/po6eO4BJyJzqCVYZE26vfzkmC.rm/SxqWXxq,,2026-01-08 04:11:44,2026-01-08 04:11:44