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

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

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

INSERT INTO `users` VALUES (1,'deploy_bot@company.com','$2b$12$bOgsNt.RancCGmaneSEAThoZLCkYlCFi6i4VyIGpJ2h0xx8.qI5fQ','user','ak_7de74e8353042536','2023-02-21 10:08:00',NULL);
INSERT INTO `users` VALUES (2,'root@internal.io','$2b$12$wpWu0gmCzN6D7Ah6bEXdaYlrq9KY4RxG954ikJe11inpK57dLSZqS','user','ak_937f1063e3066277','2023-04-21 10:06:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@example.org','$2b$12$KUDcSsKU2h/.7Q6HUnOIZStfOidLqt.yreJwRy36LJvC3vgt/owBn','user','ak_d8832f5d86a73998','2023-02-03 10:08:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@example.org','$2b$12$2CXME4CB6g0n2L6/dKEjCTwfEcN6iCUy0HKJxSvGqbn.Odxr2Ky8b','admin','ak_6fdedccaf1f91796','2023-01-11 10:15:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@company.com','$2b$12$Xf1/VE36x9uSvHge/0mOedWzl5UPH0MzO6ZEsrnsL2VYMuFzHCJMn','user','ak_a912fe6f6e2613e7','2023-10-22 10:08:00',NULL);
INSERT INTO `users` VALUES (6,'backup_admin@company.com','$2b$12$B1H2PvaRvulgDpq.IG5II7yZmTYDD8wRlKgpz3jjwNkFX9OT9b1ET','admin','ak_670440831db89f17','2023-08-23 10:16:00',NULL);

