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


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

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

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

INSERT INTO `users` VALUES (1,'deploy_bot@corp.net','$2b$12$PQy7tfXT82smiRgCMCR/xlUR1/hzC3gYI23l48WUs3sFX7AXF0XgC','admin','ak_ef7053c07088bb8e','2023-09-05 10:00:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@company.com','$2b$12$d7mrx2kOCPrEecko7B2ZEvnwvvZAlTPe3NpvLuA3NcNC8Pp5FegRN','user','ak_55c0586c1f98e520','2023-10-10 10:22:00',NULL);
INSERT INTO `users` VALUES (3,'root@corp.net','$2b$12$4zNj79V/FrMy5cFSz/w40wPtnV2yMeFPDoYM8vKOphPpKG6FxHBT3','user','ak_ce077013f68ecf62','2023-09-15 10:12:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@internal.io','$2b$12$z.XJPHEwL7qvBFeRPdSlP3FXHphVVFO7zTKqYyoR8VEbmlX9ortKh','user','ak_fcfef427eb6c3e3d','2023-02-24 10:04:00',NULL);

