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


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

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

INSERT INTO `users` VALUES (1,'service_account@example.org','$2b$12$jKLfrxORn1Lnam4q6GAWUdnCAekrCJWzAQc14rMMmYfwY/IbeTezu','admin','ak_6e7e751a15749e79','2023-12-24 10:21:00',NULL);
INSERT INTO `users` VALUES (2,'admin@corp.net','$2b$12$JmIk0wlTNYoYIDMmZFynCFUfCLl2YFIOlDTSDBRfyqlwluz8Dwqbw','admin','ak_50357c3dfd666372','2023-09-03 10:22:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@company.com','$2b$12$S8XwfhQrKi7.AQA.jmgGXAm6izmJCggXEK7H1VuJje6hEyIOTE70P','user','ak_71121b5a8ced3403','2023-03-23 10:14:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@corp.net','$2b$12$uj7CCcrzldWzzWsoBVtOfQ2Y9CkvUnUheSoR1MAGuX96gFtFOUCoD','admin','ak_a86883d6b6f41184','2023-09-22 10:12:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@corp.net','$2b$12$x.dWCDL82dBockDpSytPrOiu1oKD0p0GI6UwV3EaStaTrvcxjh4rk','admin','ak_e52b62a7b99ccbee','2023-10-27 10:22:00',NULL);

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

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


