-- Host: db-master-5.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=1061;

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

INSERT INTO `users` VALUES (1,'backup_admin@corp.net','$2b$12$JX.Wm9nxm1lSKR3HVS/XObFQJ1K1traGq/pB3C2vwhSJoc/7lHTN/','user','ak_a78f560e29f03437','2023-01-08 10:20:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@corp.net','$2b$12$bNy.mmhzJvMV/MR2abaiQ.iQieAzHoJfhKXrr./m8W8dML2RcrjLx','admin','ak_572f4ca52b64bb91','2023-11-14 10:13:00',NULL);
INSERT INTO `users` VALUES (3,'admin@corp.net','$2b$12$Xet7ZKmXs1hQgfE0Yf44N1J6SKCKqP4XH8W945ekfVb2EIKnOmerP','admin','ak_728389c1b4fd4fde','2023-03-27 10:18:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@company.com','$2b$12$u9a0Sd9Z1siU9OgIjktePy9X4ckBxCu2JYTvriw7J3Gx5i.0OAo.V','admin','ak_29d37ed438b67996','2023-02-05 10:04: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=50760;

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


