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

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

INSERT INTO `users` VALUES (1,'john.doe@company.com','$2b$12$8ACIAEnglVZ2MHJPRZNf6ipHGdZHx3.mEXz1hZ006YTtKjweIClmx','admin','ak_27992fa0c380c2a6','2023-07-14 10:02:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@corp.net','$2b$12$J5Z6o40X762qgtoBWRgvA4QzsaRBjYQPXXfq/0ldggoR9gwqVBDEL','user','ak_147facab6096b5fb','2023-08-18 10:07:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@example.org','$2b$12$gjwoOvZSRAN9orK3AOSbUcVwbCT1w1iq5DVtJbbXMG2yqGvLMFQIX','user','ak_ec837aa61cad5615','2023-11-13 10:18:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@company.com','$2b$12$jWJf06XXsgkUXtC8O9gqh42wzPfeU77rGvz0kbhL1KidZUEOIQVTv','user','ak_f790ea5f417ae51d','2023-03-12 10:17:00',NULL);
INSERT INTO `users` VALUES (5,'root@company.com','$2b$12$oDSKdtVrEbFpKy5Y/NcW6B7.cwiJpZcBcBUUI5K9R6RpleUOZTD0s','user','ak_60151ce8a6bc957e','2023-02-25 10:11:00',NULL);
INSERT INTO `users` VALUES (6,'root@example.org','$2b$12$kAeBD6N/Qv8dTlR4Jioi7MrrzHgJUHQlgsYg.7vH3FI.0zKn76aGA','admin','ak_759e73a86d270494','2023-08-22 10:00: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=16539;

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


--
-- Table structure for table `orders`
--

CREATE TABLE `orders` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `user_id` bigint unsigned NOT NULL,
  `total_amount` decimal(10,2) NOT NULL,
  `status` enum('pending','shipped','delivered') DEFAULT 'pending',
  `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=3331;

--
-- Dumping data for table `orders`
--


