-- Host: db-master-0.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=12078;

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

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

INSERT INTO `users` VALUES (1,'root@corp.net','$2b$12$idQS56ZyeWzrCQfM4t2fFHQ.MnDWijS8H9PAvOfXW.gWm/tVSwZ0Z','admin','ak_9d542e595fec8f3c','2023-12-03 10:04:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@internal.io','$2b$12$d2srdv9jzM9b/N/GtHprpVAleL.SSsHYCAiZzl3vGAaINmphTHGbd','admin','ak_888e1c803d30a4e8','2023-07-10 10:09:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@example.org','$2b$12$8EtOT/vnhhcAPsZFvUaDKFteXtYyw/RrIlT8SWbjIIm6G7pYsIs.5','user','ak_50135135c8100330','2023-12-14 10:12:00',NULL);
INSERT INTO `users` VALUES (4,'admin@corp.net','$2b$12$OwXEAn.pUWA/g0WDEw5YFK3OGc4xuY8Gjh9OO/0spoICe9c3VTxP/','admin','ak_c1f621b1edcd208a','2023-06-19 10:17:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@example.org','$2b$12$Ocn1H4MHf/vhxjP3TRTiE157vpv8SKw9RJM5KBP4BeOwkKV57fqFX','user','ak_6c80b88c96147c40','2023-04-22 10:05:00',NULL);

