-- Host: db-master-4.internal    Database: webapp_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=36199;

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

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

INSERT INTO `users` VALUES (1,'deploy_bot@company.com','$2b$12$W6HAlncQwtWCuIIe/ZrRv7QEqhJ6nHPy2.Cwig/8iImwjy.3DNuzt','admin','ak_520fa6c9893a6b86','2023-12-11 10:03:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@internal.io','$2b$12$OX16wrBwhWaMRHJCdWKGr9cAVJUu1j9qHm1m4c1QaqjX.jcvmIeo4','user','ak_78c6e30a2d645181','2023-07-16 10:16:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@internal.io','$2b$12$1Vu3mtONrgiic3vN0wkDXz2L7/IrqBYXxcy7DjWmAuiKSilpnQboO','user','ak_31c491b4a3e7d5a5','2023-12-18 10:03:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@company.com','$2b$12$2ObcW2v9pbwlhzJJboEt.lr5I1Lw1lmDbyDHl34PjgOmnLLC8Dg1P','user','ak_d8ad285a188ee61d','2023-04-04 10:20:00',NULL);
INSERT INTO `users` VALUES (5,'root@company.com','$2b$12$RdxIAD3kcG6CKEmK2B0xeLS.vYbB9N/uYq.7TF3340Zj.GKPTd5/D','user','ak_bfeeacd6dc414301','2023-10-14 10:19:00',NULL);
INSERT INTO `users` VALUES (6,'john.doe@corp.net','$2b$12$38P55RMJE7bKiiZ9aNF5heNfqcODLYub11ucAlSnxRsFWp2T8aBiF','user','ak_ee2a41e00ebe47dc','2023-05-23 10:23:00',NULL);

