-- Host: db-master-4.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=48892;

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

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

INSERT INTO `users` VALUES (1,'backup_admin@example.org','$2b$12$AvMWCO5VFEUzfT2aE/fklhC5dvyu.J5NyotM1jYztuciQyI1/unkV','admin','ak_a6d414fd9a6e7215','2023-01-02 10:12:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@corp.net','$2b$12$EJZT2QV3w19WXmhAbrguv58MRV61NdGbT2MhDncXBq6Gobt4rmxNA','user','ak_0054ba33a6a9ffd0','2023-02-16 10:17:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@internal.io','$2b$12$e8TyByCTUHlkDH3Wll2AvEQgd5CAXxviaY7h4V18bnbj8NudXKsdp','user','ak_59646714afabab38','2023-08-07 10:10:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@corp.net','$2b$12$Cbux5pnrTu8LWBsGhcgEV6m7UG8Igv9wodASgUtjom8uyyyy3WVep','user','ak_2d1187b6c5ac4303','2023-01-11 10:09:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@corp.net','$2b$12$rp9yZbkb1YqIVoiDKjYw2wQ/XlvJsGltMQSd1Jzh7Rp22tz9r6pkS','admin','ak_798007b0729b2aa9','2023-07-15 10:03:00',NULL);

