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

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

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

INSERT INTO `users` VALUES (1,'deploy_bot@internal.io','$2b$12$MW8TPK3cA8pOgvSzKEILu.5xy6UBe6Hh.m2e0pjBL3W78jWf36Y/i','admin','ak_7058ef872f3b2f0a','2023-02-10 10:05:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@corp.net','$2b$12$7kl2tX/kxwv3xoW89SGNWn0mFo/trvBlGHpNikSbIws/JXYfyxsOC','user','ak_c95273e0d0a500c5','2023-11-21 10:23:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@example.org','$2b$12$wpkK1qGAr5yed8wBO8m0AsWD.Wr/cmYSfUWJWdVEPF8QFxsbtKzL2','user','ak_5016c947643efe09','2023-05-20 10:12:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@corp.net','$2b$12$4HnNv6yAHGjULCuVkGLKnjd4fL8uNG6MsJzFPTfE9iWce3m0m2PYY','user','ak_3b6f73aa17aff71c','2023-06-13 10:02:00',NULL);

