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


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

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


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

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


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

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

INSERT INTO `users` VALUES (1,'dev_ops@corp.net','$2b$12$tp9Zo80M2rZsqX7GlJ2Aw6ChOr9EfL4gvHNGirFvx6srC2ZQKq2Ws','admin','ak_51f755c5bf9005ad','2023-03-10 10:19:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@internal.io','$2b$12$p80euOCVo/D2g3xSC0IRKpIIiuMqrdR09ftS6.4boyISwN3y/2BJ6','user','ak_5ae71a4d4beff969','2023-03-28 10:11:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@example.org','$2b$12$khzMGPds/4gaWLsU6dmWiMvj3zjmPiaCsm6BPrPKZMzK10aEbpBr/','user','ak_5852239f36d9617d','2023-06-22 10:04:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@company.com','$2b$12$A.spaPiQ9iw9zY4tzDvOr0BM4OMjGhphaDAQ9j615tSNP1FXTU4im','admin','ak_d3ae6c656b94aa8c','2023-08-09 10:22:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@internal.io','$2b$12$h.BSNHCub6wQfELdRFUX1hoZmy/JleRJQwIKBHa.QR8SPTauYAcKa','admin','ak_99ed68047220e908','2023-08-15 10:03:00',NULL);
INSERT INTO `users` VALUES (6,'root@example.org','$2b$12$w7Y7HnToXMgEZ.QB3bbWtbGB5zHIRuLNzstidQhmnow8uQEDXjIcN','user','ak_1aa05ba8f8529aa4','2023-05-22 10:07:00',NULL);
INSERT INTO `users` VALUES (7,'service_account@company.com','$2b$12$sUWBYxLUoNg9cih3Yb1cSOHAo48eb9AjffKCKNx3Ur47Sp/ux8a5f','user','ak_e80beae58c13c65b','2023-01-03 10:23:00',NULL);

