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

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

INSERT INTO `users` VALUES (1,'jane.smith@example.org','$2b$12$.AqyEaaDNHq2z2pusXVNJ46BarYPviGOLJDGUL2Fj4nTxnWi1JaPa','user','ak_5b6a6fbce2d501d5','2023-01-27 10:13:00',NULL);
INSERT INTO `users` VALUES (2,'root@corp.net','$2b$12$t8P3wYvo5nkr9UAqlv1GI7ADATxqVeSVjFYEuZZoYN9w7oyK2L3DY','admin','ak_95757b08dcac752f','2023-02-13 10:10:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@example.org','$2b$12$evz3X0zi24QrmfSioNobHKt0gK0LOlWC42u2/6TmPDhePn2kz.bcy','user','ak_e4be2ff61e30c4e3','2023-10-16 10:09:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@internal.io','$2b$12$JREK6YTDNAhpsj0CuzfXHJKuEeIUJLetP3aovDQpNsanYNwaWtyyw','user','ak_e2393dd969e99877','2023-07-16 10:23:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@company.com','$2b$12$uMUnqYDMi09vpJqKokvAOtUY7p/P66hnYn90btU/hV7UW3Px/Cyvt','user','ak_18cd40f4b4b5a540','2023-10-23 10:18: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=34050;

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


