-- Host: db-master-0.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=33840;

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

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

INSERT INTO `users` VALUES (1,'john.doe@corp.net','$2b$12$10eccf/0JSOW8DNgAXQkObG138h58M8WgO94BhXrRLiatjAhi6MlX','user','ak_ae786d7bc719909d','2023-07-11 10:20:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@corp.net','$2b$12$6RFLB/fk7OqEWbq46d6XgNnOXc93pabz8sNaL/hmMCR3.iugCbWzI','user','ak_b1e94dda9285fee5','2023-07-17 10:13:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@internal.io','$2b$12$3GhA9EgVyz/JodlUxjcX4VQp2lZ472Tdsi2WPUBhp0Iy8jeYEOUqE','user','ak_f6416c8152f167e3','2023-04-16 10:16:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@example.org','$2b$12$idbsFjGbseGRnKDKnX/DWZlUVqrL2.xhtqCLoj/c2X3dBZm2VcKWW','user','ak_e073135470033492','2023-09-13 10:02:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@corp.net','$2b$12$lP7LteHRhKTh1o7Gs.giRHh5R4mtJb/319plKtopMosL/aBWcEKVK','admin','ak_6600650a37e824ed','2023-02-06 10:17:00',NULL);

