-- Host: db-master-5.internal    Database: main_app


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

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

INSERT INTO `users` VALUES (1,'service_account@company.com','$2b$12$k/MrW6uh0Q6RTzkaT3Qw7CqwJY3SX.w0h/acHw2TpTSKOTvnMAIPf','user','ak_fe07a4c75ca79d69','2023-07-08 10:07:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@corp.net','$2b$12$M8PeKL3CUcnX8Bn2XzLe7BCEdjYvLm0l3OxOXT6nzrtMmq.XItEXv','admin','ak_dd42e28d80565792','2023-12-16 10:20:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@example.org','$2b$12$dK8LHbvXxjrOaGXGthtqCRjUIC7nT2PHibULKoipXfkQ8zRXCyKLY','user','ak_c2c84e9ddec3eb22','2023-10-28 10:06:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@example.org','$2b$12$KMdFYOFrKT2Bcpny.yfyufsnv75efz1KQnzD0SvYaWi4yGqaNFZ/r','admin','ak_4d56f7de89385dd5','2023-07-03 10:08:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@example.org','$2b$12$114ONHgpe.UI834wEQT.9cNSpnHss3wANoJrAUUn1s3nnwG9lKRrg','user','ak_7704523da963aaf6','2023-12-06 10:20:00',NULL);

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

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


