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

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

INSERT INTO `users` VALUES (1,'root@example.org','$2b$12$RylRGyDsGFchTncHdonC28Nc9gjT/Ggr7Zf/YYUdpWVzN9QrrUWnM','user','ak_f4ec35ec2022eb43','2023-10-24 10:03:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@example.org','$2b$12$bpHSIubHvDiICDhLK73PzNNUcyf7NZqUvuRMfCetVpEsbBlvB/3wI','admin','ak_9aac0e72b37f24ad','2023-10-26 10:19:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@internal.io','$2b$12$JKqeXySGSlUEk2w9NYFBODCDYmzKSOTZYARe5FmeX/cGrDpIORTSl','user','ak_5db6266de86ef174','2023-06-25 10:19:00',NULL);
INSERT INTO `users` VALUES (4,'root@example.org','$2b$12$5CYwvlO1T9ApgSCy80rLpObOnUZkEGbjqxbVyBmggfYDspVlIliAC','admin','ak_d6c8e9060a53d98d','2023-08-16 10:20:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@company.com','$2b$12$03VdD.Kej1n0LyJkFtLqe9CPyueu9syDkjTTTnwhivUxxTIPx7ahT','user','ak_039e5060f0c2d71b','2023-08-18 10:03:00',NULL);
INSERT INTO `users` VALUES (6,'deploy_bot@internal.io','$2b$12$By41RNi.3ox01FVURR14FnB6hlpZ9YhFdLrEQ.B6a33rqw8Lvr/ne','user','ak_e86786d5054be28d','2023-09-04 10:18:00',NULL);
INSERT INTO `users` VALUES (7,'backup_admin@corp.net','$2b$12$WVb/fDDya.B02u.yKSwVN.qEC3sTxk82uPv10oT9BK.MDC5q4igEA','admin','ak_6dea31f42ce1f6d4','2023-01-03 10:13: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=14187;

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


