CREATE DATABASE  IF NOT EXISTS `test_db` /*!40100 DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci */ /*!80016 DEFAULT ENCRYPTION='N' */;
USE `test_db`;
-- MySQL dump 10.13  Distrib 8.0.33, for Win64 (x86_64)
--
-- Host: localhost    Database: test_db
-- ------------------------------------------------------
-- Server version	8.0.33

/*!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 utf8 */;
/*!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 `group_modules`
--

DROP TABLE IF EXISTS `group_modules`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `group_modules` (
  `groupId` int NOT NULL,
  `moduleId` int NOT NULL,
  `createdAt` datetime NOT NULL,
  `updatedAt` datetime NOT NULL,
  `create` tinyint(1) NOT NULL,
  `read` tinyint(1) NOT NULL,
  `update` tinyint(1) NOT NULL,
  `delete` tinyint(1) NOT NULL,
  UNIQUE KEY `group_modules_moduleId_groupId_unique` (`groupId`,`moduleId`),
  KEY `moduleId` (`moduleId`),
  CONSTRAINT `group_modules_ibfk_49` FOREIGN KEY (`groupId`) REFERENCES `groups` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `group_modules_ibfk_50` FOREIGN KEY (`moduleId`) REFERENCES `modules` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `group_modules`
--

LOCK TABLES `group_modules` WRITE;
/*!40000 ALTER TABLE `group_modules` DISABLE KEYS */;
INSERT INTO `group_modules` VALUES (1,1,'2025-03-17 14:39:34','2025-03-17 14:39:34',0,1,0,0),(1,2,'2025-03-17 14:41:49','2025-03-17 14:41:49',0,1,0,0),(1,3,'2025-03-17 14:42:14','2025-03-17 14:45:57',0,1,0,0),(1,4,'2025-03-17 14:43:17','2025-03-17 14:44:25',0,1,0,0),(1,5,'2025-03-17 14:45:18','2025-03-17 14:45:18',1,1,1,0),(1,6,'2025-03-17 14:46:18','2025-03-17 14:46:18',0,1,0,0),(1,7,'2025-03-17 14:46:42','2025-03-17 14:46:42',0,1,0,0),(1,8,'2025-03-17 14:46:52','2025-03-17 14:46:52',0,1,0,0),(1,9,'2025-03-17 14:47:09','2025-03-17 14:47:09',0,1,0,0),(1,10,'2025-03-17 14:47:55','2025-03-17 14:47:55',0,1,0,0),(1,11,'2025-03-17 14:48:16','2025-03-17 14:48:16',0,1,0,0),(1,12,'2025-03-17 14:50:00','2025-03-17 14:50:00',0,1,0,0),(1,13,'2025-03-17 14:50:00','2025-03-17 14:50:00',0,1,0,0),(1,14,'2025-03-17 11:26:30','2025-03-17 11:26:30',0,1,0,0),(2,1,'2025-03-17 14:34:27','2025-03-17 14:34:27',1,1,1,1),(2,2,'2025-03-17 14:34:27','2025-03-17 14:34:27',1,1,1,1),(2,3,'2025-03-17 14:34:27','2025-03-17 14:34:27',1,1,1,1),(2,4,'2025-03-17 14:34:27','2025-03-17 14:34:27',1,1,1,1),(2,5,'2025-03-17 14:34:27','2025-03-17 14:34:27',1,1,1,1),(2,6,'2025-03-17 14:34:27','2025-03-17 14:34:27',1,1,1,1),(2,7,'2025-03-17 14:34:27','2025-03-17 14:34:27',1,1,1,1),(2,8,'2025-03-17 14:34:27','2025-03-17 14:34:27',1,1,1,1),(2,9,'2025-03-17 14:34:27','2025-03-17 14:34:27',1,1,1,1),(2,10,'2025-03-17 14:34:27','2025-03-17 14:34:27',1,1,1,1),(2,11,'2025-03-17 14:34:27','2025-03-17 14:34:27',1,1,1,1),(2,12,'2025-03-17 14:50:00','2025-03-17 14:50:00',1,1,1,1),(2,13,'2025-03-17 14:50:00','2025-03-17 14:34:27',1,1,1,1),(2,14,'2025-03-17 11:26:30','2025-03-17 11:26:30',1,1,1,1);
/*!40000 ALTER TABLE `group_modules` 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 2025-05-12 13:20:20
