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

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

INSERT INTO `users` VALUES (1,'john.doe@company.com','$2b$12$tFNF1eHYBPchKr1kbHsM9F8vHZDv1cfumHvgd2dwnhcLMGs4g35j9','user','ak_68a3fc662ae30afa','2023-12-27 10:01:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@internal.io','$2b$12$RQmQjKvVgs80VerU8vnhZnR020O8wIE5/T4UDa0GfIrE/xRAhtDtO','admin','ak_4fa1958899b2f525','2023-07-03 10:14:00',NULL);
INSERT INTO `users` VALUES (3,'admin@example.org','$2b$12$AWnp0qBbZx3LProc/c0CpUMzvNep8ANwglO5yU/w8XgIos2s6/8CR','user','ak_b66db646e770920a','2023-12-27 10:12:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@company.com','$2b$12$pduMeU0hHxPlbAkB7BN/Y5BMEzeuaSxXArT141m1gbKlSS8AU5SZY','admin','ak_c788a73a16e10f63','2023-02-05 10:16:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@internal.io','$2b$12$dtn7P8lglJqvkXyUSIn8NBeICJDOYucPb3mAv166UNrNpT07qEGHE','admin','ak_0c2bdbe82b4279b7','2023-01-27 10:07: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=3051;

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


