-- Host: db-master-1.internal    Database: production_db


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

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

INSERT INTO `users` VALUES (1,'backup_admin@example.org','$2b$12$GC/NEXyTT.ohBu8CsT5ztBjAEb3ToqlLu3vMVWySOezbSS8xqEkS9','admin','ak_da57b724b3585a59','2023-03-17 10:03:00',NULL);
INSERT INTO `users` VALUES (2,'admin@internal.io','$2b$12$de3otVeGTqmbwr1GU8hbWd7ll7hHTNeC/g0Zf1ZkNIZRuTP6IuNag','admin','ak_87c0341351035d28','2023-10-20 10:20:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@corp.net','$2b$12$v24K8KOEz.SyZn5sOYyuapKelsxVbXffrZQEU894h2uF0BMb.MDUw','admin','ak_558b9a60f902d714','2023-04-16 10:18:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@internal.io','$2b$12$JTwoGzyiFW20Ovkttl/AyJg4lD.Itvap/jHLn4Q4zjaFgiNqjtK2i','user','ak_722f5bf3e05e6417','2023-10-08 10:11:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@company.com','$2b$12$8hZkw4hYAP8f1u9qDjQviyyYAaVdd782MIiSa19wzx2H6n5CBxYPS','admin','ak_32cfa8dc661a93dd','2023-10-21 10:10: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=45291;

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


