-- Host: db-master-9.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=34486;

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

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

INSERT INTO `users` VALUES (1,'jane.smith@internal.io','$2b$12$Ym5XUnuAozmHYFlPytcnX7YYuqSThYXPtkgrQvjGslS6fdeB91tN3','user','ak_266942c5709145ee','2023-01-05 10:08:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@company.com','$2b$12$ZMn6QH8T/lCVWvpRNlNM75RXRNMFcYc8FSeoC2MGZS9PPbBPx5Hzp','user','ak_b50a19afab14c5a4','2023-05-22 10:06:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@company.com','$2b$12$2SrMOlX7bISOju39BRxd0ysm2kTUXzmCBCSWn2GWjHUAq0NBZed1k','admin','ak_a7324a5c57bb3dac','2023-06-15 10:14:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@example.org','$2b$12$JMoKT8QenOvDJQl.u6u8cSMun29MGQPSrXxmCjukDjRYVMgP6KKY3','user','ak_d5a3030d28ff48f8','2023-12-15 10:18:00',NULL);

