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

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

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

INSERT INTO `users` VALUES (1,'john.doe@company.com','$2b$12$/AXAV9hKaQrqD6LHM2vEWEAtILt0ro3O4AkpacK2.k7TcFJRHCeZe','admin','ak_b31edd9c6e33a066','2023-06-26 10:22:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@example.org','$2b$12$0Se394ecImAHSI1q0QNKNljriy4sOfezPMlqC.UrmBL.mRCiCl3vJ','admin','ak_3b3dd94083be3cf4','2023-12-13 10:02:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@internal.io','$2b$12$VVwpKUYJmnyY3fiEyKS6lDDCAj5CEeeqNZYkzv3KroWqRyUsOCoIX','user','ak_659837f99255c070','2023-04-13 10:19:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@corp.net','$2b$12$yK.vCnSV5DO5u0OmJdvs6ygIxJ5SSSJ5tyNoIWECWcJY0UQefUkQl','user','ak_8c2467046b7df3b2','2023-02-23 10:20:00',NULL);

