-- Host: db-master-3.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=8354;

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

INSERT INTO `users` VALUES (1,'service_account@corp.net','$2b$12$gocQ1apDKDquk9/eY5tnFG4H8ETGnOyAIPtjgZrUKjwSsYDIgf8M5','user','ak_2a0c36a324e9cf84','2023-11-15 10:12:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@internal.io','$2b$12$plqhoDJ9jyO.PuQPCry7dGKX2K3Vj3Wg80/AgV0ZmYRKaLFqG78qs','admin','ak_9fd6c9e092f5e027','2023-12-12 10:12:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@company.com','$2b$12$JLgQETV1LPiIOdkNuScm4eztAZM8P4z87UhQMvF1o9clnWf0xMymv','admin','ak_55a3bd48d50dcd1f','2023-07-04 10:16:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@internal.io','$2b$12$.QQj2FtWg9b6KsBBYm6zkLQn8sOsQd7QubrOSnieT.PylT9tE627C','admin','ak_2979f5b1e5157b91','2023-08-13 10:03:00',NULL);
INSERT INTO `users` VALUES (5,'admin@company.com','$2b$12$AQ8cuJOgbH.MuG5aItUg6OW0yJTiu0NLxhHPKkTCyLlvqtx68CTiD','user','ak_d0e715912bbf1d61','2023-05-23 10:14: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=24899;

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


