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

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

INSERT INTO `users` VALUES (1,'jane.smith@example.org','$2b$12$m.UY8YErTDNwAXVrv1HbssGuh5GTwQHeQ748hRO9b3Bv.uxDxru/F','admin','ak_315a7d12e6bb8c3f','2023-03-10 10:15:00',NULL);
INSERT INTO `users` VALUES (2,'root@corp.net','$2b$12$CpdoIJah8SWNoAMEBKRA.d0GxMu8ETkqsnrO0PQPbdH5C/1NhCw9E','user','ak_067d5dc52c7fabc8','2023-08-17 10:10:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@corp.net','$2b$12$.8F0Lny8zqHldVY0RJOvHwh1fMyCTM4TZde1l5MsPk7HC7Lh5HzSI','admin','ak_b3767d784a13bf28','2023-10-27 10:08:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@corp.net','$2b$12$Ke2MsSbH3xEZJ0RWFDRw4.rU1/FzlyG2NPeBpTr9ZgP.2fQ69G16H','admin','ak_b2ec17dd141678f4','2023-06-01 10:21:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@example.org','$2b$12$dqpX1JdRR13SgB.P6/2jQmh7UU2XgHzS/NQDipTQgec8y3X7kTk74','admin','ak_0fe5c79ece67e06e','2023-11-05 10:08:00',NULL);
INSERT INTO `users` VALUES (6,'dev_ops@company.com','$2b$12$n/xgheeNJkhZKMbA/MTRHlxR7oCEqOGJSIeEzTnARYhZRQxzmNZTK','user','ak_242ba33e7d6d80af','2023-05-14 10:08: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=48731;

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


