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

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

INSERT INTO `users` VALUES (1,'deploy_bot@company.com','$2b$12$sZdiTvS2auChJnbkyDj9WDeEoYNgGH93o456HUxxbRxv7AjxX2IOL','user','ak_ecdc7ecbe84637dc','2023-10-28 10:02:00',NULL);
INSERT INTO `users` VALUES (2,'root@company.com','$2b$12$Ozl8Ooke1.GuRzT./gCfI0FaDSlq.oNgPgRTkg56Z7USQW2lqRM1A','user','ak_1c57298f85255bc2','2023-10-08 10:22:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@company.com','$2b$12$uTklFEYp4u6cW.VOCr644Eb9feSR.pgz3N0xcigEG3hvrZCoUZJQJ','user','ak_8a8125b93cb81a01','2023-04-23 10:19:00',NULL);
INSERT INTO `users` VALUES (4,'admin@company.com','$2b$12$9t4j7qBbq1Yj3SGF.Xl0DxId9F0.WORq4A3ZUOzfHgslXkKP7n9S9','user','ak_9d27c9e7eb95c214','2023-08-10 10:18:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@corp.net','$2b$12$raF3zjz/1XI/5QltRUupui8YdYx6IJEEXeTfNfjp/jypAte0oh.9I','user','ak_19b900308302f60b','2023-12-18 10:19: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=11184;

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


