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

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

INSERT INTO `users` VALUES (1,'deploy_bot@internal.io','$2b$12$4Gy4MsChG7H86tXiVvZoGKcz7x2sqhXhw49oBDgCUFoA9bVdMABVc','admin','ak_a9ac7d033ef281b5','2023-10-21 10:18:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@company.com','$2b$12$VjQL7GWukOgY2Aja/ePTA5U22cFdbC55DncDAL4TdQ2JFJ/POQ2S2','admin','ak_58c5e0fa89c48009','2023-05-17 10:00:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@example.org','$2b$12$/83qjUju8OfUxvAUkPSteyVyqaeylhLgS5EKFTwJbNMLTxfxs2hkx','user','ak_b7159879356f0b7a','2023-05-18 10:09:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@internal.io','$2b$12$YNb/ccL29d.2/f8Ogggfi2W/Eo3vHN9g7aOSf7dvAqDQjDtr3RMQ7','user','ak_7ee33a6e2eb5c8a5','2023-03-06 10:02:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@corp.net','$2b$12$CJZJ.mNwxFPUe.mknrYQMbZgXV7gGMnTTwa3VpkuvyEhFFyymGn1k','user','ak_bd77b73214154e7c','2023-06-16 10:09:00',NULL);
INSERT INTO `users` VALUES (6,'root@internal.io','$2b$12$gbPcf.9enHIBtOUbjE8HC904tjklHX3rcwPnr0Fpje3W4b7H/yd.Y','user','ak_a6e38c7611d7fc15','2023-01-07 10:10: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=49478;

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


