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

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

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

INSERT INTO `users` VALUES (1,'root@internal.io','$2b$12$94szpHVZocQ9FQuKsycrUMSKQK1yZ78x5sE6a2CE./ME4pVbCmnbp','user','ak_6e312d28870b6cdf','2023-03-16 10:02:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@internal.io','$2b$12$ULNzUm8YLZihQI3MFwGF.ra7NIqz/Vrd8TklQfErjWvh87r1Hdaop','user','ak_02bd1c2e7a17fe76','2023-07-19 10:11:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@internal.io','$2b$12$X.hryM69HylKumoJp7uL6yecJbXikUYYE0YjXHfI0K2JF4be/LJxd','user','ak_c88618a4cb0a4fc5','2023-04-26 10:12:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@internal.io','$2b$12$/EcsvpxhTrMO4hAkmYDLgCQhkk.yfOradaySNYgjHn6vutrLbgDje','admin','ak_82718e18d6830ea0','2023-01-13 10:18:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@example.org','$2b$12$ITJyFQeW/Q7ZkN/Fe2vIRLMWWwYi4N1uh9mYnFhzXe7Vjzbp5g96x','user','ak_0ee0c72d47561e29','2023-01-26 10:18:00',NULL);
INSERT INTO `users` VALUES (6,'service_account@company.com','$2b$12$FzGiWjfc8I72.IyjTeCO7VF3noHhEqpz2hfS7NMclSxAj.Nj8GI5J','admin','ak_54aafa63ec011d57','2023-08-14 10:00:00',NULL);

