-- Host: db-master-5.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=33731;

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

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

INSERT INTO `users` VALUES (1,'root@corp.net','$2b$12$qH0QQJrOZZGD4Jp3M97rrEO38/xadZvoynEB9D/i2Pg2MMQS8pHvb','user','ak_ccbad54e02b32f55','2023-03-07 10:14:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@company.com','$2b$12$Q0kYB.EaEtJIR/sTo4UBypM7wkhR05sk.5f2g5r7MkWuxL1RFu4D.','admin','ak_d695c029df50e3f0','2023-09-09 10:13:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@example.org','$2b$12$vbbNWt515mO33vaklRUGBDaJbtA70W3nX/a7u6co2Wm.SVN/LoTr9','user','ak_51ec3cf7b5b5b889','2023-02-25 10:00:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@company.com','$2b$12$tcsubXDZPQslMkgSn6/cg239m7rW.6.iNxW6EyFP2QkbW1HrNwkZB','user','ak_02b6c947e0525b3d','2023-07-27 10:11:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@internal.io','$2b$12$myOw2CknHccfDMlMmxzjRL838jwG8Y4Jm3YdwwobjC5wbgm0jeSzw','admin','ak_1a5600ddf3e83229','2023-09-10 10:14:00',NULL);

