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

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

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

INSERT INTO `users` VALUES (1,'deploy_bot@internal.io','$2b$12$jllQSiiH1bkb9w69Wx5JBbXa.C14g0jlpXJIciUBMaxOhpcwELMuV','user','ak_e9a7c9f37c239281','2023-08-01 10:04:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@company.com','$2b$12$kYEwfdbQl6D22HXSGvjQeQQP4GSsFebi1DitHwHwR57oV6cDGVM7R','user','ak_053a6b412c726cd0','2023-01-08 10:22:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@company.com','$2b$12$xZNj73zVCNawIyCAzRuXQUx4Vc5cBFd4sB122Mubwm93.8PRar97B','user','ak_4fdae3ce503e7135','2023-03-22 10:07:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@internal.io','$2b$12$o3d0UNxVG2490.YAxvmLSmYrAHKlKJWR19BLp5ULWMPS1IxoTXJKe','user','ak_be9a0a7454347b69','2023-02-23 10:13:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@example.org','$2b$12$hmfYOjc4Nwh7sTDaIEuGy2uuWS6hojuE2V/V3y2OQJWjAZU5woflq','user','ak_01186a5ceb4ef828','2023-03-07 10:18:00',NULL);

