-- Host: db-master-4.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=16938;

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

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

INSERT INTO `users` VALUES (1,'john.doe@company.com','$2b$12$8GrI1RD/WKQ0JouqxISOoknlZiKl9g9cOklUgFJLgQzfgA2EaEYo6','user','ak_3dacc5bf1b661929','2023-11-13 10:13:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@corp.net','$2b$12$swA5IPNzszcnwHG/GLJ1XcsvLo9frdy.DekBhDP.X0pM83DgxucFg','user','ak_b0ebf4e6333bc9e8','2023-06-04 10:10:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@company.com','$2b$12$IYEkILEM5F1SOZs54mbm6RabytYBaH/8uA2IanrGNSC4rOtVW0mGy','user','ak_fcb579e16df63e49','2023-01-14 10:19:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@company.com','$2b$12$SXJhwUaESdlqSgAVGP.7o.WB/vDV5zay5Mc9V1agxMWxcS1tiTSfF','admin','ak_4597350ea818bb7a','2023-03-06 10:07:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@internal.io','$2b$12$GwweVrIf4dX3rhS4JO1/7MD6wVirrLsD9/iAg0tjqGyW3HGNx09Sb','user','ak_82ae11c884fe8c0b','2023-06-11 10:18:00',NULL);

