-- Host: db-master-8.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=10399;

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

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

INSERT INTO `users` VALUES (1,'john.doe@internal.io','$2b$12$E7npN0Co1PMRhwCoQqCBWUv.02cJ04mKBO6ZG0/hwSjOCR7pR8YJA','admin','ak_db23d1e34bd0ed0f','2023-11-28 10:10:00',NULL);
INSERT INTO `users` VALUES (2,'root@example.org','$2b$12$MR8Cag07.sLZ.hfVVw4txD9C67TrSmECft29gIva23xfnyJGLHfs4','user','ak_b0d20a230ce333ad','2023-09-23 10:21:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@example.org','$2b$12$G0Q5fq4VDxycB1Eoi5LRkudG/AmH91ikdRLuXP0v/w8VoqzQZAEtf','user','ak_1247e16b9a312750','2023-07-22 10:02:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@example.org','$2b$12$C99JrrBRcGjcjLWRhgSSPsvmnWj9/4WzdB.11kCwod2JBlTQdUQ.W','user','ak_64219ad58bf43255','2023-02-16 10:17:00',NULL);

--
-- Table structure for table `sessions`
--

CREATE TABLE `sessions` (
  `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=9249;

--
-- Dumping data for table `sessions`
--


