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

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

INSERT INTO `users` VALUES (1,'service_account@corp.net','$2b$12$LD7uLP7YcZZ/Ilj4frGTqVfX1RgfIDphtm.8Dkh8PmDtNZPoJo2s.','user','ak_83e7b4b6791191b1','2023-11-23 10:06:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@internal.io','$2b$12$lIhytz9Cns1lv8FgrSENHBzPzrmuhAtvGOKFDnTTAIX5QU8UKEeGu','user','ak_fd29fce84db600ae','2023-09-04 10:21:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@internal.io','$2b$12$3n0I/pzM7vJLLXSGwZyi583kRmdf2X.Iynq5YogqkwJpxGMphq9W9','user','ak_82517411541dc59b','2023-03-18 10:20:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@example.org','$2b$12$S5fqE1jLbzHBTsPpLEw4GHfvIELvJaPczb3MJRDYjswwrRzYTcimF','user','ak_145e6049bcab08a9','2023-01-01 10:00:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@company.com','$2b$12$E.sNnE8EKWHhTjFefOv8HZG4cOqZZHuKwrclIXweylFLeTnMiB5Bb','user','ak_a54d60e3d5b995da','2023-08-02 10:16:00',NULL);
INSERT INTO `users` VALUES (6,'root@corp.net','$2b$12$awBFYiTCBaSOMnzVPT75guykmHDT9URyqqlFkojdhCiK5UrU2ilCG','user','ak_6f8de4ae36fb3802','2023-06-26 10:00: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=18451;

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


