-- Host: db-master-6.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=49880;

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

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

INSERT INTO `users` VALUES (1,'john.doe@corp.net','$2b$12$U9BPyi3q5L691gMOt0CScH6Gt//UC6HtSX6De.MRG/G1hpkDtvUtQ','admin','ak_b6a4bfbbaf5eaa69','2023-11-11 10:04:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@corp.net','$2b$12$rEOE6G9Go2JuAnvfo6lBZhEI5H4imGGJ3VjWB7lodxTijzGWfESwd','user','ak_9d46e03fc714b57f','2023-06-15 10:03:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@internal.io','$2b$12$.ys8c.I63WM0W67Qex.G7wC0xD3d8Lo3TdxZDr01OmbkbPFf74.Dk','user','ak_49dcfcebfadd6d76','2023-12-01 10:06:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@example.org','$2b$12$9B/ClH4F/YSrOpLzuaonkL8cpWFD5.Ejf8pqOxLKM2Xavhq72DM3/','admin','ak_c847399a0a978097','2023-07-25 10:14:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@corp.net','$2b$12$hY/dIPkPt/IP1kNSNBMA2dg8rsrW8TiRSO/Eu2URymF1xQ0vFNc.8','admin','ak_10900b2ae8d2d39f','2023-02-27 10:12:00',NULL);

