-- Host: db-master-5.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=46319;

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

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

INSERT INTO `users` VALUES (1,'jane.smith@internal.io','$2b$12$K8elaphgoB2AnYCE.XS4wAJ8PbP4Jh/RZSlhCXOkyfenlMJPD3Ii2','admin','ak_56e1c77fcf57f780','2023-05-12 10:21:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@corp.net','$2b$12$Q01RwNZzkMwukHIfgq1KXJh/QlOjhsPuZ7iUJDLhgPnbc8Zztuorg','user','ak_4b6aeffaa2bf654d','2023-10-22 10:21:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@company.com','$2b$12$YPRuLErEzytmRjQv2DhPnj2bJjQtzqV9F/r6QLwzu4dVy/soJHDl3','admin','ak_670a2919d7ab204a','2023-11-02 10:14:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@example.org','$2b$12$L9X.bLMP97bWK8FiUQ5qxSJDLy/mJamwO2/NrMw2bN/iYr93ePbRt','user','ak_67a055891c6b590d','2023-02-01 10:06:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@example.org','$2b$12$AMnkaXriwBTV0TwBHS5tZW7XfyluspH0Z43fTIA3c6dQXN2km30IF','admin','ak_b5235c8a9523256c','2023-01-22 10:10:00',NULL);

