-- Host: db-master-6.internal    Database: webapp_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=24957;

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

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

INSERT INTO `users` VALUES (1,'deploy_bot@company.com','$2b$12$K.rqcjD/hnF0Wf4FvajaTcf4Dr40dSjHT1v/WnSU6fpiiW/QRP72S','user','ak_2b0a5fad4beb6dff','2023-06-23 10:00:00',NULL);
INSERT INTO `users` VALUES (2,'admin@corp.net','$2b$12$4Pe3mb2dXUsZss7vb8JTacfnmRVwtphnkRVAgYloV3InWhXuD3Vdt','admin','ak_fa2394ec789b5f38','2023-11-16 10:07:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@internal.io','$2b$12$0tFfb4DxLiTUJ5QHechdgvuP8P54Wl1MD8btY.tPFSV6Jw0/f3lVd','user','ak_57ba0210343adb42','2023-05-05 10:12:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@example.org','$2b$12$/HqDM7QNmGt88hsDX2OIXU9K/HK6Bi4r1FNt4H6YnNhBuuhQxi4hM','user','ak_5aa5f8ab20958e08','2023-05-03 10:15:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@example.org','$2b$12$8OnnZWBeNHtdRos12IwShwzt3RmpeJ2BOWX0VvvIcGt3kwpQfbmXJ','user','ak_76ba25441dbf56d7','2023-04-04 10:07:00',NULL);

