-- Host: db-master-3.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=19555;

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

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

INSERT INTO `users` VALUES (1,'john.doe@corp.net','$2b$12$HwGWvxFufE0bB3iaGM56hj0vQcrZKxu7gYrToHEBMJaldXUSic.vO','user','ak_9d239e982d0d94a0','2023-03-24 10:23:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@internal.io','$2b$12$FN6/DsvZZ25oZlr6aveUgW.c7x6lT3sEfrUCPlBr.djkcedvzM6hR','admin','ak_8bfec64637a2c599','2023-10-18 10:23:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@company.com','$2b$12$NbHr8CuVrArmwyQyXcTJ58nn2SNdhF4oV4/8oXCQ8ABSiKEvvyi/q','admin','ak_d9e29d185967ad1d','2023-04-05 10:09:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@corp.net','$2b$12$nG5JMXMS42f9ynXmEfqU.C4Z5hgKqMMvpyvb5RmXeWoEXUnVf57.B','admin','ak_d1c5b07e6da0e3b7','2023-01-27 10:14:00',NULL);

