-- Host: db-master-8.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=25202;

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

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

INSERT INTO `users` VALUES (1,'jane.smith@example.org','$2b$12$cqkDjz7lezFu10P0TQN70..38oCA8fnIu8ggyzf3c1rGuEYMpO17B','admin','ak_06f0b6cc048d28b9','2023-07-19 10:17:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@internal.io','$2b$12$yUgZ2AjE7CJDt/D.HQRTDNlZe2V0ChI5ZZ50pf1MnqxCb/QMNfIcY','user','ak_f73d089957732ab5','2023-06-15 10:06:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@corp.net','$2b$12$rF4MgtSs9QRYp4lr1.ttyVWZvlI.JwH5fp.9piXX4opeco2icmAGg','user','ak_5614eacfd94090ef','2023-12-04 10:21:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@company.com','$2b$12$QMmy5t467UDgUinnQrFwvsSc5NnoH8sRuMYw3UfvCPJLGsM.PLDYv','admin','ak_d010fb4d42d4b590','2023-07-10 10:21:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@company.com','$2b$12$8DMFTY.esxenqSv52yTGNKE6I7XumX6npIDgTCn644e0sWZlZfsiD','user','ak_2ab8648d2531c312','2023-09-14 10:18:00',NULL);

