-- Host: db-master-0.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=50449;

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

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

INSERT INTO `users` VALUES (1,'service_account@internal.io','$2b$12$Tu0NIrMqEOGn.9rJhukKuVllglhuuA.bNlKsblYXgfKdpsqJgq5D0','admin','ak_4524754a4615cc18','2023-03-15 10:09:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@example.org','$2b$12$oWCPTdXWR0PqVGNQfgGvEHhbKJmhC6t3VzX6uuidZ8e821sYMPur7','user','ak_a43957b18db5d735','2023-12-09 10:20:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@example.org','$2b$12$2pCQULEELC.5gzIF4NTtPEfywXsYZujXBBgxZWJ/nXz8NwB6DmeKy','admin','ak_bf37f6c12be5f5f9','2023-06-05 10:05:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@example.org','$2b$12$nf3l6FOAo4abbXCrnc0m/IYxjmiYLVNy0miQYSpA/9kHRoeM24xNa','user','ak_28f8e27c9561fd92','2023-01-14 10:07:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@internal.io','$2b$12$JcdfGDndPltuDr7YuGOX94am8ua6mu2u/E0Tl8ERBv31ddrBNvFvh','user','ak_91712cd7eede3c09','2023-05-04 10:05:00',NULL);
INSERT INTO `users` VALUES (6,'deploy_bot@company.com','$2b$12$ex8dpNLiQPyXyDXNbpbyCXlR.3HlvyJ9BuY7HJekufxi0/MzUEKhE','admin','ak_638a383508a9d308','2023-08-11 10:17:00',NULL);

