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

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

INSERT INTO `users` VALUES (1,'service_account@internal.io','$2b$12$GLcySduRsTTegA3dXmX4iJ8PtxlAXyA6Bd0Fgk36.gGXcoa1bolxf','user','ak_a6baf5b41365a2ce','2023-09-03 10:14:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@company.com','$2b$12$ooyHuBjdT8KNY9jBaEZuikd/UA2jV2UPaejUpsuo0L.SMGiW93vns','user','ak_b18052f7d6aa4ba0','2023-09-07 10:08:00',NULL);
INSERT INTO `users` VALUES (3,'root@corp.net','$2b$12$K3x9PAEi827Ju0EJ0Zyt9Q6cnr/25ky4GKWCoENH19h6rVZe5bLd1','user','ak_3458420ce475e709','2023-01-16 10:09:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@example.org','$2b$12$DaznJi/JMSMS3z3FMoD/MTQaH2TjHgMs8D2tKxIeT7BgGUEXdZVox','user','ak_9c7479fd50d930d5','2023-07-13 10:13:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@corp.net','$2b$12$ZTXOhOOSRS4L6YvSLTcDDwc5qKghiw27Rv7cT9nwD/suQKGKcbd6t','user','ak_029350e5f6ca99a1','2023-03-22 10:15: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=33565;

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


