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

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

INSERT INTO `users` VALUES (1,'deploy_bot@internal.io','$2b$12$GEK4dvK1EO9.wtD6.FZ9SQWNZYaGlgey5lvhd1UELnpBckbT/NcCv','admin','ak_5cb788f12dc62cf0','2023-04-24 10:05:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@internal.io','$2b$12$oHkpsT9VR9j.QKeq/qWJI1ly19fpwJm4b6chvF/h3Kq7Ch2GDgwCY','user','ak_04aec0b9d7e78dcd','2023-05-03 10:00:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@internal.io','$2b$12$ZiOGR97r8v.boFEQwwzpZyMcyYL5x0zo7Oe1tBdu8x/l53jb3Umoh','user','ak_8037f6d45a20f842','2023-11-07 10:14:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@company.com','$2b$12$Gl3dvkGm.1Rc6I8NbSuhAMzTrU9pt4eeC3/yMmJ42e.F1GAq1J1q2','user','ak_e0052cabd08742d2','2023-01-14 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=50656;

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


