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

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

INSERT INTO `users` VALUES (1,'john.doe@internal.io','$2b$12$LnMzxhCcUk7AUnUPX2dyqH83GsT5F9Ah8uRQDTnQGc2viVY5ckqc4','user','ak_e8cb344e0801eb3b','2023-07-01 10:09:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@corp.net','$2b$12$YGf1iumB8IH0Pp/UX2lxEhFB0.ndmOfWSXMKJyRv52Z75W/Wlny.P','admin','ak_e2c170f6821981e0','2023-12-12 10:06:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@example.org','$2b$12$6dTAn0xNqXeHYk1vIi5ybyMMXdYesfVfiviiYXcNguNLIMHSm0JRz','user','ak_1504f2dc066be70e','2023-06-08 10:01:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@company.com','$2b$12$Dupf8UiKhPE9JndHh1ox.lgOrM9lfHlEarlQMmsuuIyPUUsDu/sQt','user','ak_4dfc4d8dbcb548b9','2023-01-15 10:17:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@internal.io','$2b$12$9yhpN2RVY.KfbhqUIq1sNcnkIVVa09fKVgh5rIE447iUHc36GHtcq','user','ak_e086cf5407a9c170','2023-02-05 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=23082;

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


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

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


