-- Host: db-master-8.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=36094;

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

INSERT INTO `users` VALUES (1,'backup_admin@internal.io','$2b$12$vcJS.KhptSV3oQsvDLFxQXfcigU1x8V8EL9coISPY8IVPEVpt5fA/','user','ak_43a60a6a6146da42','2023-01-12 10:05:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@corp.net','$2b$12$CIN.kbir3kngKfZI3JMvskZgl8U.kx8Kn5X64KIkGq9cHFj9lfbNh','user','ak_3879adbdb9463b3a','2023-10-02 10:14:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@internal.io','$2b$12$fEXFr.uQG3YWF2RwM3IpbuPnyuVHfgZMlVeEdNm5tdj2FTbgNHheO','user','ak_46f5b1ae9ff44480','2023-08-01 10:15:00',NULL);
INSERT INTO `users` VALUES (4,'admin@corp.net','$2b$12$NEki6RymTCK/YLYu4PWtmCMEhG70AHY.MQ4wvUiryoRxwG2Vzhkao','user','ak_e98d3fd182cf1b8f','2023-11-14 10:07: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=12996;

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


