-- Host: db-master-6.internal    Database: customers


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

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

INSERT INTO `users` VALUES (1,'jane.smith@example.org','$2b$12$zTXgeP7Ma5oZV2eSvP6n9DZ5eLN4LhqxGBhHOz7/iChy0XhFonP2U','admin','ak_cf8063607a8f891d','2023-08-20 10:05:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@company.com','$2b$12$fiYgMiRb0bZ8EvfpZbPRYx3arXZgepTk6qpflHuJf7n4eHkN2zZBk','user','ak_060191beff7ad7fc','2023-07-13 10:13:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@internal.io','$2b$12$k1Uhr.bkEMdp7KvLAzZpwOXE5K4HFSmUUtwlzgGspjHY1GRgStzTA','admin','ak_159b9b39cce05e5b','2023-08-06 10:05:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@company.com','$2b$12$z91UbQPpML3XP0vNqztPaLrY7cDmwq3H1BDagjEiEiY2IuhKJ7/pb','admin','ak_c3b5f1eb66b3fa56','2023-06-02 10:07:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@internal.io','$2b$12$DkXrqhIe1wbOiJzj7uuThmqAzANscwj1gcpDFp7DKJIBxBPXNOdxK','admin','ak_39b445d4ddf38fe7','2023-01-25 10:12: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=39186;

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


