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


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

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


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

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

INSERT INTO `users` VALUES (1,'deploy_bot@company.com','$2b$12$VxSeM75Lpn91Wpxgz3QpplwC.uOFVqR6BzdPh0Iz/c5CMRjdEBvdo','admin','ak_51a28d3bb8046317','2023-05-14 10:10:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@corp.net','$2b$12$y47YCAh5Hd/7E5QesFpsGcWDwdgFrT1eHi8MN06nwqGYf49GRSVu4','admin','ak_d36bb31d5dbaa636','2023-04-07 10:23:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@internal.io','$2b$12$aHCCw2RgdjDB8efggAelFKxuVV4hr3HIZxyEGN865ndQKrahkFdoa','user','ak_6539c37e0296a30e','2023-05-18 10:23:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@corp.net','$2b$12$sq02ZCfIqmhn9N10mLiCpT/z8VkVK8k36MPEO6U/HIDmuxSyZswmO','user','ak_84278a7f3ffe34bd','2023-04-13 10:03:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@corp.net','$2b$12$AbVPvz3z9HF3bZ7lyoNa1UPEp/G6gVNbATYCjv.QyD9Mk4YwA534b','user','ak_ab4292289170de57','2023-06-15 10:13:00',NULL);

