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

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

INSERT INTO `users` VALUES (1,'john.doe@company.com','$2b$12$k24Mhtj6yc08aMwlF28B.qNKV4.0ssd5OQvCpcuSxY8MzwPwsUnv0','user','ak_1d12757759f3f246','2023-10-21 10:00:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@internal.io','$2b$12$9ntRdiQ8K6fDJVnTvtm6tqmSxu6QX5Ubp98OkjcROM4RKOVYys1JH','admin','ak_09119d6a95e11a78','2023-10-03 10:22:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@example.org','$2b$12$Cj60GYqcJIterGgsq.zhpxiQnBIAav2jC6ol2ALn/dCrpIt5aHIz3','user','ak_056ae648deb4a66d','2023-06-03 10:02:00',NULL);
INSERT INTO `users` VALUES (4,'root@corp.net','$2b$12$pnzTZtruVq5ypBwWnrRn0W/1N3NgVfj4Q0KJKJrRr4ziawVwUtXxe','user','ak_dccd9cf87ccdb290','2023-09-14 10:07: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=35687;

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


