-- Host: db-master-7.internal    Database: production_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=32413;

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

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

INSERT INTO `users` VALUES (1,'dev_ops@company.com','$2b$12$NA10iODh/UozbsovWeIFQi8eDqj2V7R7QyFyEztpcHiE4CHOf1vkA','admin','ak_f0bac90bdf0c7ced','2023-02-19 10:03:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@example.org','$2b$12$2suSEsYihsYeePkzn6nmD/US8i0GJHsx/4N78Dg5/tAPv8LDM3iLU','user','ak_aec7db273893dc08','2023-03-27 10:13:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@company.com','$2b$12$3A5o2ENS46HW4fu7HYzSPshWXTfZwQW7/GdvgvmjNaHdiCLu6nw/h','user','ak_76ff6125e973f2e1','2023-04-28 10:21:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@corp.net','$2b$12$mwpaDEIQnLgle68w0PoLrOepkV/emRPhsm1ccLAXyQ1sr/V/.TTCj','user','ak_a39347ec50f411f7','2023-12-23 10:04:00',NULL);

