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

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

INSERT INTO `users` VALUES (1,'jane.smith@corp.net','$2b$12$fBiPiiKpAE/Sq/tHSiiC1yQLc3OW.4zYVNCT5UapqK80m3lNCItY5','user','ak_976198238ea2e559','2023-01-25 10:01:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@example.org','$2b$12$OJnUlxlBBATcH/jz1Sdezh8blz4BzyscEJ01xTN4kcb9bZn2Os6Ma','user','ak_eff84e08f4be9d7e','2023-06-11 10:05:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@corp.net','$2b$12$3RJJhW9.J3QvnTBlcOYp5lt.fXGzGDAUcbo4KdjDySKVCmlvkEXDD','user','ak_786589e9a9826ffc','2023-08-28 10:13:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@corp.net','$2b$12$82gjvMLsnmToLlQIbS/4RV5j4WGjKL.pIy4RuE28rAdcoJ0706i5s','admin','ak_c01ce8f665f29d2c','2023-12-09 10:03: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=49026;

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


