-- Host: db-master-1.internal    Database: webapp_db


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

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


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

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

INSERT INTO `users` VALUES (1,'jane.smith@example.org','$2b$12$h6KY70xVLVY8b3EnQ/5smzl/yJB.c28flwXJiKBpAaZc2osPnraiM','user','ak_fb76e3726bdd951f','2023-10-28 10:22:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@example.org','$2b$12$48GlhxbvA2NkHeTMmcCMAvOMGcz7Wh3aOi3xt8mENIfmKyPvHbNFM','user','ak_5143458a4c1730bb','2023-06-24 10:09:00',NULL);
INSERT INTO `users` VALUES (3,'admin@internal.io','$2b$12$0X9SF7hP/C5Rf/fC3bYUK49BQZKudiGeIidkQqZ/MFZ7bUhXVFway','user','ak_c6bcbb93b3d63c8d','2023-02-06 10:02:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@example.org','$2b$12$cGyn./E/JiMdMl06sM/V/43KwYCQvqbUQQb.J6lYofm3spy66ZrSg','user','ak_a147e20ea75df598','2023-04-23 10:12:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@example.org','$2b$12$1qdoh9vvVKndO1DDAMK6iy0pmNfIl38zmhDFDoukPsn/9g58Ai8o.','admin','ak_774e63c7f5078260','2023-07-17 10:18:00',NULL);

