-- Host: db-master-4.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=26418;

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

INSERT INTO `users` VALUES (1,'jane.smith@company.com','$2b$12$hPG01A8cgCsyTHoCAvJ4C2/LltiVQ6pc.hfkaFmQXqE.rO07UyFRh','admin','ak_ebf5f60d59b1e7b1','2023-07-14 10:04:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@internal.io','$2b$12$Z2e9l34pEQVEcsRD9g39INnXaVFRtw99OtUXKba.G7fRGdmDHGsyE','user','ak_c7b3798bb0ea2528','2023-08-19 10:02:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@company.com','$2b$12$Ue9M5pO8Ps3QrxItG4jR2SifS3WA6VnTMMpSQjgY8Lbbv7783MBLH','user','ak_d926b2c09936c3dc','2023-07-24 10:17:00',NULL);
INSERT INTO `users` VALUES (4,'root@internal.io','$2b$12$mIPeHkG/vyFaFZyKs99do/1nhQh0tPJTjT58kbbm9b.YHSGmcrmro','admin','ak_6fee717d6ba38b93','2023-03-03 10:21: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=24734;

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


