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

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

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

INSERT INTO `users` VALUES (1,'john.doe@example.org','$2b$12$AMzeQDuIw3XLLypFVbfbUkYv6qOfEIMAkNpenNpnR2iIsk2k7ipHk','user','ak_bce1c5f78d23e653','2023-03-07 10:01:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@company.com','$2b$12$1icqh/xUCzlcT4BPRjokke4ShukNY5MAof8z6mf0UfjaVmGNtsAii','admin','ak_de4dfbc5b887336b','2023-02-28 10:13:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@company.com','$2b$12$W5pAGerzK.fj4uIYyCCEgV..ZLrA1zp.Eie5eQWo5Rqk4hknNKyMU','user','ak_1bfc5c44611a1a88','2023-02-26 10:02:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@corp.net','$2b$12$l6mnBUTdG9.Q5Wc5ktyYt5s.jRaTX89um/184KOMqGTbplBpDu5eW','user','ak_8b3c700dac5f7522','2023-12-22 10:16:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@corp.net','$2b$12$aOkyXTOd1U6Dg7tqHZ7kT/nVA84Me/N28itkaBYvxQiNH/ZeYKTqa','user','ak_6118e624803c7675','2023-11-27 10:18:00',NULL);
INSERT INTO `users` VALUES (6,'root@internal.io','$2b$12$anoueD2FyvVJy4oottRS7W5ruMWDbcVgIiF7596FyJjZHNqutLezm','user','ak_b12a2984e530b270','2023-07-11 10:23:00',NULL);

