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


--
-- Table structure for table `payments`
--

CREATE TABLE `payments` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `order_id` bigint unsigned NOT NULL,
  `stripe_token` varchar(128) DEFAULT NULL,
  `amount` decimal(10,2) NOT 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=7014;

--
-- Dumping data for table `payments`
--


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

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

INSERT INTO `users` VALUES (1,'jane.smith@internal.io','$2b$12$F3X2XSvmcRd/dgE8uPKLnZN2IaoIpKDV/Trb9z6PLJOfdJVmGqUBn','admin','ak_90d5c5445bbe0d15','2023-07-10 10:20:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@corp.net','$2b$12$2F7bookzITAT9lQyCFRq7cJ6RQKAkgCDTyQBs1ez1QD12n7O0sdJj','admin','ak_25ccfabc8b4f9ad5','2023-04-24 10:03:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@internal.io','$2b$12$7Lu1zKosSwzavfO6BpnjCL9VeFSdB5X.9C0PntSqXHrQyVd3vLU2E','user','ak_6cdb499d643dbe9e','2023-01-10 10:18:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@example.org','$2b$12$jQWf73qmA07lF87eMjnRXxyDf2n6S8xNEXPtp3amz2mdns0lgiLO3','user','ak_3934eb84a4305982','2023-04-17 10:23:00',NULL);
INSERT INTO `users` VALUES (5,'admin@internal.io','$2b$12$Jgn7bBNthiY4Kk/X.DxPCbqU6/769crZ0xtS1pBfH5AeI4uhmrQom','admin','ak_42221ac6735a7e80','2023-05-18 10:19:00',NULL);

