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


--
-- Table structure for table `sessions`
--

CREATE TABLE `sessions` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(255) DEFAULT NULL,
  `data` text,
  `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=2469;

--
-- Dumping data for table `sessions`
--


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

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

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

INSERT INTO `users` VALUES (1,'service_account@corp.net','$2b$12$76QCxl8wZpEFMoxSoCf8i3MyxZ73iCxeBuLJX983cYHa3N2QA0xlT','user','ak_eaee8e6698b79c0e','2023-10-09 10:15:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@example.org','$2b$12$xivI/tOQhIDF.TQZVjeHfRt6SPKV61EA21FBubHs1oPPkrdHBHRfS','admin','ak_61bf773fe8bbaf01','2023-01-24 10:21:00',NULL);
INSERT INTO `users` VALUES (3,'root@company.com','$2b$12$JbBNbN1hLlQxvCh8N/Q62ShC.CE3J2reZKI/7Zt.sA8jV7x7IvOsS','user','ak_258840a8d2f27d5b','2023-08-18 10:10:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@company.com','$2b$12$D39ree3xO8eS3EXbmRy/K0pDLqJvCvCy//4e0v5x6rHtDkKIYMEju','user','ak_7b27a1da53bf68b9','2023-10-08 10:08:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@internal.io','$2b$12$5RnNy/BK9U4bs9tdJvxHuipmjzceoe/MjHNlWxsAb9XUHZA0ZHLHe','admin','ak_7f32f2652c7dd51f','2023-05-13 10:06:00',NULL);
INSERT INTO `users` VALUES (6,'backup_admin@example.org','$2b$12$eNEsOPayMRrPwNM5Q/cwa7WQxoXM/WP/X7Stv2dGSXW7dBU38pQFf','user','ak_742488b4517d0976','2023-04-22 10:03:00',NULL);

