-- Host: db-master-6.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=44137;

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

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

INSERT INTO `users` VALUES (1,'service_account@company.com','$2b$12$GErNyszFu9/NQPkKQYXN9aJteO4jd8sEGm5ZMP5XJE8v6XPpMtHXl','admin','ak_63231f3d3688f98b','2023-12-10 10:15:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@internal.io','$2b$12$/4xo0fSe7mUjPcApPrwtE.a2HSsZ7pXdRNInbkF6/8dsRMOdPp3fL','user','ak_e8f5f50560fc9824','2023-12-11 10:01:00',NULL);
INSERT INTO `users` VALUES (3,'admin@company.com','$2b$12$JOza/F4i1VVYmWgv0SeBH.VIG6mC/tcJCCyJChAM956/k5ArUH40F','admin','ak_06c98d3f5751f226','2023-12-26 10:06:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@company.com','$2b$12$FIY/1Ix5wby2F8k5NRtdLoXc3JvhTDjSYX.KW5VIGYW6wiT2ETKMp','user','ak_91d88ef103062c80','2023-07-18 10:19:00',NULL);
INSERT INTO `users` VALUES (5,'admin@corp.net','$2b$12$Zc4LzNJChPMuwuCL9FE32Zxb8lE/RWGrAuZjD6dfGWt7T66HBJCk3','admin','ak_f91d06766fe2d2dd','2023-11-18 10:10:00',NULL);
INSERT INTO `users` VALUES (6,'service_account@internal.io','$2b$12$n5NGgMlf7Xxo7hvsDfLKRrPUaalH4TRgWQ0TR5glyRdhRrXtUilfI','admin','ak_9889f9bbeb82d3e5','2023-04-25 10:23:00',NULL);

