-- Host: db-master-9.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=45992;

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

INSERT INTO `users` VALUES (1,'john.doe@internal.io','$2b$12$dGw6nDzXFfa1RnEiSbjobPq0yaii4Py1o5sDpFteX.4tdmf4OJ0Su','user','ak_3b85862cf0c17158','2023-06-11 10:18:00',NULL);
INSERT INTO `users` VALUES (2,'root@corp.net','$2b$12$I4NSiiaaVuhyKKNH/fTWntGiG.cjPxh56CUrfJPHcv7U599m6/cMC','user','ak_ea2e215d4f32987b','2023-01-25 10:04:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@corp.net','$2b$12$4sSwsomEc0sj6goiJho9vkR1FwCpMYdkOts3d7drRncY5t..c5e0Q','user','ak_270abd7142749bfd','2023-09-25 10:17:00',NULL);
INSERT INTO `users` VALUES (4,'admin@example.org','$2b$12$fwxPnNWv31nq0sH/qe4Hyxlo7/OoXSyBiJRDUWQhsFIbg.2Hya.gF','user','ak_b4d8a1046db0e928','2023-08-02 10:02:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@company.com','$2b$12$szZSe1kiGX9h3IakY2LlnKlqv7DBIHzPjagnFKKtwShRPwm.ln4IK','user','ak_21522d704437adb4','2023-09-28 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=49508;

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


