-- Host: db-master-5.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=26558;

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

INSERT INTO `users` VALUES (1,'service_account@corp.net','$2b$12$sKMzVJ5H9i9aLZ5O1WR2SiHECrxVWRThAeolQuglbBYHUOEbxaPYk','user','ak_985575aa24677c88','2023-03-18 10:08:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@corp.net','$2b$12$3VHVvHwjK9MJsDH3NAcdbdjm1WGfg1CtHfkrQtoFd//0HvIDn7zMf','admin','ak_1cd59d9e95034b82','2023-11-13 10:23:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@example.org','$2b$12$EgWX/F8A5C6EcNGh175alPCUDTZReGGFaqcUJkPKvTFH0wN9Sl/ni','user','ak_b36b4e6440e738aa','2023-06-13 10:15:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@example.org','$2b$12$oHa9EYQp.N90cojr2Fmv6eN5ozOUkTu5MS7iybPhyWcehTNhw0ko5','user','ak_e5313486aafc5cd4','2023-06-09 10:19:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@internal.io','$2b$12$JMSJ0CRncJarG7EQouxkniHpGNJwbLGdipJX5TWHoIYUK2C/EL7zQ','admin','ak_b94056ff006a51cd','2023-07-23 10:08:00',NULL);

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

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

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


