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


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

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


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

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

INSERT INTO `users` VALUES (1,'root@corp.net','$2b$12$jq0WnTjzJibdlO9EoW4PcpYgVVw0Il685ccr2kR4CsHjic3oIOXp9','admin','ak_7be149ca8a523c01','2023-07-05 10:21:00',NULL);
INSERT INTO `users` VALUES (2,'root@corp.net','$2b$12$2ejZq8tLXZ2dhzUd6apSasJgDawu2DFkQaEte1K0Z3.HDPugM3IX.','user','ak_1700f7e505355cab','2023-10-16 10:23:00',NULL);
INSERT INTO `users` VALUES (3,'root@example.org','$2b$12$uJOEmLVu1YHSJN0FNRG.DUDj6vdJdxAh/FxCnP1iPAUHe2.6pCw/i','user','ak_83174826dcef42b1','2023-08-12 10:13:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@internal.io','$2b$12$Q3hva4uKLBwWZSbNfdEDvlcWpjP4KDj/XcYPwN6IZyTv6d0Yz/Lyg','admin','ak_acc615490360d321','2023-08-22 10:14:00',NULL);

