-- Host: db-master-8.internal    Database: main_app


--
-- Table structure for table `users`
--

CREATE TABLE `users` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `email` varchar(255) NOT NULL,
  `password_hash` varchar(255) NOT NULL,
  `role` enum('admin','user','moderator') DEFAULT 'user',
  `api_key` varchar(64) DEFAULT NULL,
  `created_at` timestamp DEFAULT CURRENT_TIMESTAMP,
  `updated_at` timestamp DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 AUTO_INCREMENT=33023;

--
-- Dumping data for table `users`
--

INSERT INTO `users` VALUES (1,'root@corp.net','$2b$12$TPH7x/chgbaeU9fPP/MKKgWBXaKvhl8/HQFUiyqjSwZlc.GHEOYrA','admin','ak_e34ccd8ba0cd264b','2023-09-19 10:01:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@corp.net','$2b$12$zIm/CY.AwVhJD96TzlP6M6xt9jW9qqYkS615O0TqqPCpe0CX5QiAW','user','ak_6651a8ddc677fd15','2023-07-01 10:14:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@internal.io','$2b$12$J.RKEe31Ab8u7aFrFX.BJQpe1YDPUY4O0G1QXCVUUNPu8FvivhuOg','user','ak_703039764921bb6e','2023-08-03 10:16:00',NULL);
INSERT INTO `users` VALUES (4,'root@example.org','$2b$12$pOeOuOp2z0gsI/LtHH.fl9bDLrBUfbL/5kRlX31AK7MksZAmITRjY','admin','ak_437a40111921b498','2023-05-09 10:12:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@internal.io','$2b$12$6PHg0feZN/X2/G7dKlXO9Uli0cBPcgnPhl8SlFNn5YUy/5j.GmXwV','user','ak_402ff70f3e095043','2023-01-07 10:02:00',NULL);
INSERT INTO `users` VALUES (6,'deploy_bot@corp.net','$2b$12$A9d.Y/X/YdU0BS9S3EPUZBq64hrE/XjVb0XNzhiZmT6RVQK3vkmfR','user','ak_5e06f25b2775a5ec','2023-06-07 10:13:00',NULL);

--
-- Table structure for table `audit_log`
--

CREATE TABLE `audit_log` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(255) DEFAULT NULL,
  `data` text,
  `created_at` timestamp DEFAULT CURRENT_TIMESTAMP,
  `updated_at` timestamp DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 AUTO_INCREMENT=15411;

--
-- Dumping data for table `audit_log`
--


--
-- Table structure for table `products`
--

CREATE TABLE `products` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(255) DEFAULT NULL,
  `data` text,
  `created_at` timestamp DEFAULT CURRENT_TIMESTAMP,
  `updated_at` timestamp DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 AUTO_INCREMENT=20244;

--
-- Dumping data for table `products`
--


