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

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

INSERT INTO `users` VALUES (1,'deploy_bot@corp.net','$2b$12$HcYFQRFNenF11PIv2rPc5SbB0dazv3jNdcZkm2HYj0SZu8aVJffVQ','user','ak_9a6763bc935a5106','2023-07-16 10:20:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@company.com','$2b$12$9PL1CtZuMcwZK9DxwmfT0I4exFcr4Y7aFvNEeDS9Mb4828TPoni4I','user','ak_efd15cc012e81d37','2023-11-11 10:19:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@company.com','$2b$12$OazGCfQ42d7LlMZGMw.nC50I6kueGAA63Q7DR2CHO3H0Ss5Pq4aZ4','admin','ak_a0808696917b094c','2023-01-09 10:00:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@company.com','$2b$12$oRVfeBOCoWH6A5V0KmZ7xH6IgNUWHHAprQUt2MhloHaU58jhR9BbM','user','ak_bfa6b5af620757c3','2023-11-26 10:05:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@internal.io','$2b$12$mIu.V1uAHTrqD950whu/0Y4/Tcwu.8qvuFQS0MuixJr/h8g/TVxSY','user','ak_aa569ffb1a3651d8','2023-04-01 10:02: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=24438;

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


