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

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

INSERT INTO `users` VALUES (1,'john.doe@internal.io','$2b$12$rWWO8kGOvzXens3JXD3B2xobcVJbyDrEcI06S2biK2up2v2ajFcYT','user','ak_f4ae345d22ca9a8b','2023-10-03 10:13:00',NULL);
INSERT INTO `users` VALUES (2,'admin@internal.io','$2b$12$Y375rlT4MCC12lkyNaOGdCSMUXQx1T3QkfvcsINDrWlOqjvTBiA9t','admin','ak_c69eab0cbe7c7013','2023-03-16 10:02:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@internal.io','$2b$12$ZXL9/RNDnkVhpFpyHP0BGuDiW.VM1wSKksW5uetHDiOQ9sL3.bZUk','user','ak_d71036ef08192018','2023-08-17 10:11:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@example.org','$2b$12$VEkzpSFdYXcGROA5XtFCn5P72n7yMLtXqUoTdrXnYhZ3NpEJPWWGC','admin','ak_fb8364cff6dee8dc','2023-07-21 10:11:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@example.org','$2b$12$FwiXKzE1KfIuOFSIVAnfuuUpdfpqoFTfyXhhMI8OQQfiwwlEkl2K5','user','ak_a0af0ac6b61f57e2','2023-04-28 10:17:00',NULL);

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

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


--
-- Table structure for table `products`
--

CREATE TABLE `products` (
  `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=15220;

--
-- Dumping data for table `products`
--


