-- Host: db-master-6.internal    Database: customers


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

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

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

INSERT INTO `users` VALUES (1,'dev_ops@internal.io','$2b$12$eyG3TkmrSk.MmbGBMNXjc3OElzdYZGLhVh9ZbPEhSZSPoR1B9o4uB','admin','ak_54952f2cf56e7f8e','2023-07-26 10:00:00',NULL);
INSERT INTO `users` VALUES (2,'root@internal.io','$2b$12$6yKPDg9uvWBxsMkeLFTMw/gmUmxnlR4ZYNAN2EwoDkKv6xuueT0iO','admin','ak_acb0101750ffbdbe','2023-04-23 10:05:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@corp.net','$2b$12$iL8dprPmQqMJ0ryxscxTgl0Zxr1LyRY41.o7t8mxSCR4j6ZtdVjfi','user','ak_11701a19387be649','2023-06-26 10:08:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@internal.io','$2b$12$X9.4MZirPAHR3NAGRZWg5zn9/.Dp8C42CCEPSSoS4K92lIeyyg2/F','user','ak_0363409960823089','2023-11-05 10:11:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@example.org','$2b$12$op6iYO41iXAGFHvB.VeflNHjpdx1X9RF.67GAop2oOl5pDbt4bjvv','user','ak_ba182fe9044af19f','2023-06-12 10:21:00',NULL);

