-- Host: db-master-4.internal    Database: webapp_db


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

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

INSERT INTO `users` VALUES (1,'dev_ops@corp.net','$2b$12$xY/t.ZLOPY1mj04A4MwTKJUHMfWyMFhizMpzwB.Ab3uGXn7/Ld09q','user','ak_5c388b83896d23e7','2023-09-21 10:02:00',NULL);
INSERT INTO `users` VALUES (2,'admin@internal.io','$2b$12$o988X5QeGGUsUfsPETR7S8/lvw1/K/luSC1BxwTQyrM8QseEO8Idu','user','ak_c2820c02fa767478','2023-05-26 10:02:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@internal.io','$2b$12$k/1hKhGjAoYlbgrFDhP50/sF04cgKCbMcTJveA2cyCMWmQ2CSOgu9','user','ak_a02384768d8c4aa9','2023-08-06 10:05:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@company.com','$2b$12$A5Ep2C7p6aSb2xojPTIGzIgjzA9oQm4UWn30eL1R../IcJM.pDttA','user','ak_4186fbb347020c0a','2023-06-10 10:08: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=20995;

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


