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

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

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

INSERT INTO `users` VALUES (1,'service_account@company.com','$2b$12$P65vEtkdj5u5eaO446obQ8.m5oeBxSFQlgHK5InI9nxeaqY/fFy15','admin','ak_219c1b653af6541e','2023-01-20 10:04:00',NULL);
INSERT INTO `users` VALUES (2,'root@corp.net','$2b$12$Cm8pBowI0GXZKTIW5O5OjlM3.vE9qCnOxneQ2ePDSSdG8IKY45uJ4','user','ak_2a0eba8351f8c44f','2023-05-21 10:09:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@company.com','$2b$12$VNri.XlNlM3D1MeoZi8RFg6X6GX/Xe2QkrrYizzzpozZVZH39oVOU','user','ak_66a93b0ab93b2511','2023-07-22 10:17:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@internal.io','$2b$12$phJiMeU0TsuAy6IR6057M.1OMfRHMro2KUozoV8sMv.nRab1nxalJ','user','ak_ec0f991ef7fb4e3c','2023-02-05 10:03:00',NULL);
INSERT INTO `users` VALUES (5,'admin@corp.net','$2b$12$Yh0VSLGmeJ2ci2J9hTiLD3Ymo.56mJUkKkmUjf2sXoIa8lIPTjOQt','user','ak_48fd9499b28bdc50','2023-02-09 10:08:00',NULL);

