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

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

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

INSERT INTO `users` VALUES (1,'deploy_bot@example.org','$2b$12$pQIow/45TIOiuB6g8ePi0ZDcoeRnnEdmXF06TeWgrZ4UkqMa137Re','user','ak_a89bdfe3b12dc0df','2023-07-04 10:13:00',NULL);
INSERT INTO `users` VALUES (2,'admin@internal.io','$2b$12$5gebcNxU6kxYZiSLOM4pj.pEZG5q2FjcdxjZPV/HIhfJVO83vUTpP','admin','ak_8feac01b22c6b524','2023-11-20 10:04:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@corp.net','$2b$12$Wa0pvO7dzTThoNv7j.u81lo3KfAUp00TGIP7V1XP1D9affI4t3vex','user','ak_f5acb69936015ac7','2023-04-03 10:20:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@example.org','$2b$12$Yy/6QyONzOpl0iIhSfgdsJVJdZ4z5t/cKeVHOumZDMvjvJA.kiD76','user','ak_0c0b2cf2dd98d58d','2023-06-28 10:19:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@example.org','$2b$12$I563Ndarnugt0rmgaL68A3Brh9PoKCK2XFDnL0H4TNHXSz5KL9utx','user','ak_765ea542413f269a','2023-04-10 10:11:00',NULL);

