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

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

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

INSERT INTO `users` VALUES (1,'service_account@company.com','$2b$12$0Td7hEB5vKQH3D.d3terqohSR6JhP0HC2SVDtvBVj5V4kkwLIVDMa','admin','ak_5858a5f8c0f8fd3d','2023-12-25 10:12:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@company.com','$2b$12$94CPzccDYNxX/VK5vC3jptyVlABf6jVHvp7zwA3gnWTV2SQiy8Mte','user','ak_976cfed56f4f4001','2023-09-14 10:02:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@company.com','$2b$12$0vTSYP.95DzbVmMoClLvthivCPVYvuVp3MqFsHro3z5nl3n9rnBd8','user','ak_f438d09df99209ad','2023-07-22 10:04:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@internal.io','$2b$12$AjJVFSIl.WzOI10A4PkaCGSkNtyGMpCskxYjD5ACGv8OU2VvPyjqW','user','ak_ade69880fd024949','2023-08-01 10:01:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@corp.net','$2b$12$eafI83QZjS0b.Z6w1eDFPxZ78z0G/Ts35slD7bC8E6YEjo6iHUxfb','user','ak_3a4a83f2a3f55961','2023-05-16 10:13:00',NULL);
INSERT INTO `users` VALUES (6,'john.doe@example.org','$2b$12$j3JVWF.qFs4brTanM80mXOaJfdQRKTjbTXibw5BydIsyTKYpV1hPZ','admin','ak_2fc57e142f5f38e3','2023-05-15 10:13:00',NULL);

