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

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

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

INSERT INTO `users` VALUES (1,'jane.smith@internal.io','$2b$12$mydoD1yNPmZm07Bw1f9fkxKuRJvXCFiEQ0coeyzv7kWX00InvSoCb','user','ak_41e89da4fd29998e','2023-07-05 10:06:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@internal.io','$2b$12$G7zHhWlcvpt/3vwXG3qg74Stfw9mFjmwK97HDHR4g0ZQp5CSp/8eS','user','ak_ef20df572a14cd44','2023-08-27 10:09:00',NULL);
INSERT INTO `users` VALUES (3,'root@internal.io','$2b$12$tePtttWpfvpNhJwnR88nwyhO8vWEverv2DVknxhlrM5DX2Fz8ZeB1','user','ak_a602b7763f03a850','2023-04-15 10:20:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@example.org','$2b$12$LoAVZJ4gFWx0Ah0C3h0EYmt1j4KcsZXvp5pC9xczt0LvzRBk7k2Ab','user','ak_170a8003cddd5556','2023-09-15 10:00:00',NULL);
INSERT INTO `users` VALUES (5,'root@company.com','$2b$12$ps/iLmrtaRZuyC9G9bw9wPGeNCRPIYwtVCjN18oAjJtr17L6KUBRD','user','ak_afb07392f14cb9f1','2023-01-12 10:08:00',NULL);

