-- Host: db-master-5.internal    Database: webapp_db


--
-- 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=10279;

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


--
-- 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=19347;

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


--
-- 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=32727;

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

INSERT INTO `users` VALUES (1,'john.doe@example.org','$2b$12$I3mxf95Zv1ay7JfIgvDtgNM0DXARMh4wVA9qlS8s.8Si3IMneN0nC','user','ak_ef98a3e321c51254','2023-01-25 10:22:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@internal.io','$2b$12$mxdXqrf7lco8x9Vq1thUMKHIpvBqXQ0LFK6yMbVGpG/lo5Qx7wXda','user','ak_febba33209e03d5e','2023-06-22 10:21:00',NULL);
INSERT INTO `users` VALUES (3,'root@example.org','$2b$12$xYX3XRxmE.DI838vXhEAXwg3292YjHzHbfDHGCyjFnAZodRh5UC0Z','user','ak_7b3774cdc3b8e7de','2023-03-18 10:20:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@internal.io','$2b$12$/IfahRz3QsEF5sEx88eSmroFImSk0k1pN35yFclSuQpjnwjOaVwnX','user','ak_2771056ac1f68073','2023-10-18 10:16:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@corp.net','$2b$12$IZWASiaR32u8Db/BhV59IMmrXiu78l/1b3woGJPKxDxKoAZ/EPXXh','admin','ak_807553c6f3188fb6','2023-01-11 10:15:00',NULL);
INSERT INTO `users` VALUES (6,'deploy_bot@example.org','$2b$12$gu/d/eYRn6r8j6B0EUMkBpS4E2M53Mw4OtVYiFQIcd/pI2Ne.1Nhk','user','ak_f260b7db1ba543f5','2023-07-09 10:18:00',NULL);
INSERT INTO `users` VALUES (7,'admin@corp.net','$2b$12$EY7m8yhjEY8Du.xzBEP/UoZA29tvhBBX8eYXsX2awSw7Vl93klkQD','user','ak_aa412a7c0a0e49cb','2023-04-12 10:09:00',NULL);

