-- Host: db-master-8.internal    Database: ecommerce


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

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

INSERT INTO `users` VALUES (1,'dev_ops@company.com','$2b$12$/5oCqbuelDO.8hSyHoJ8SoUh0hdjNA9bDpc.yzcvJNoUFM2DTVV//','user','ak_bd3f5d5daf18d9e4','2023-01-27 10:02:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@internal.io','$2b$12$1cX3bEQmRGjtoRP2e6.RUidN6tHO90Yc.nrdl2lH3nGbzPOTkXIZa','admin','ak_9a948a07211d3788','2023-06-23 10:05:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@example.org','$2b$12$oIB3D3GisfDX90tKMCbe5zW1HNQXGq.z8nFkW8uOQ92SPTWu9o5WP','user','ak_2cf738787bc8a547','2023-03-20 10:18:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@corp.net','$2b$12$FwbkFXTvGx7dG7xfEchP9.xtf5vRo4V/96LxdxWJOgdKFmtM.Jp88','user','ak_c210191edc7f08ba','2023-01-05 10:04:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@company.com','$2b$12$3imCzYEI0vtXch9Y6Lf1Zbno3M66YGYR2hBTKCn9zBARfGDObcpCp','user','ak_4f9c1be2264079fe','2023-09-26 10:10:00',NULL);
INSERT INTO `users` VALUES (6,'backup_admin@internal.io','$2b$12$uC6.diopqGvovsy2aS0g.dLotauKxPpv6n6vdwY5k043zwFtZfDgY','admin','ak_91a0ede0e045b863','2023-09-28 10:09:00',NULL);

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

--
-- Dumping data for table `orders`
--


