-- Host: db-master-1.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=48028;

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

INSERT INTO `users` VALUES (1,'backup_admin@corp.net','$2b$12$fNcspGFqoItSDI5WIHUOIerLX1P.0Fj0.pmtqdftsJEmQNFTLtkhK','user','ak_3cc052cf07ae1ba9','2023-09-06 10:05:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@internal.io','$2b$12$UCZhnu60Cwlc9kqrhEuAjlNSvb5Xfjcr6D8xPx.FmqJIKMW4e7qnf','admin','ak_cf214c21fbc5794e','2023-05-12 10:23:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@company.com','$2b$12$.fVtTl3EpP43K8iNkBheykecxaKOB39.qJTw0b/CuoluOlUPcU6cJ','admin','ak_45699bd854de13ba','2023-08-26 10:00:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@internal.io','$2b$12$M4sPUyNMYX1ObLcMV0aOpWvPY5qCOtSZ9/9isvYnZutjANuCSgJ5q','admin','ak_9c0002e9074ba228','2023-09-15 10:10:00',NULL);
INSERT INTO `users` VALUES (5,'admin@example.org','$2b$12$zECzmGD406CeXQ7elMF3FwEQ/l9cZ31i2m/7NeMwogBS4FTfc4CVq','admin','ak_2bd56975284d4872','2023-03-13 10:03:00',NULL);
INSERT INTO `users` VALUES (6,'jane.smith@internal.io','$2b$12$JtYrc6p0zCl2GmVKnbu4UoXKYOriAnM4DekS4VYIWEInbPhrrt8mK','admin','ak_620ae63c0cd81ed3','2023-04-15 10:17:00',NULL);

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

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


