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

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

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

INSERT INTO `users` VALUES (1,'john.doe@corp.net','$2b$12$tQuz.oruVr1ojuL6XUBfwt0aqiJvk5AI6iFpODMjBidK1OJX1gBSg','user','ak_9dc833867c588f51','2023-02-26 10:12:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@internal.io','$2b$12$cbg2OUILXXCjTcOV1z8ekA4.VR6aUQueg9Rai6QDewvuiIL8f.1wO','admin','ak_1db30029841e7ed5','2023-10-21 10:04:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@internal.io','$2b$12$rCgNnwjKrFhddBndoPUJfD8.Kw8Tto1O1d1QyS22oApnCrAXExN3O','user','ak_23102928290f2fbe','2023-10-10 10:08:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@corp.net','$2b$12$.AyBVPBRyjt5QjZ5VbQG/iZaWDYQX.BNq5v3LQ13Lfok5Yg9UtiDB','admin','ak_21545e8470476106','2023-01-04 10:20:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@example.org','$2b$12$vP2g/EP677gpmBs4Fnhh726pX3uQdds.N5T3LIBH.mbJsGdUq6vNI','user','ak_4bc6a607a57207f8','2023-07-24 10:15:00',NULL);
INSERT INTO `users` VALUES (6,'service_account@internal.io','$2b$12$2cgZHu1a8WXCnx1dU7XskGqNUwGrLKC5FRWWCeklRmm2uKRy4NFra','admin','ak_95512fb177bb78ed','2023-10-06 10:15:00',NULL);

