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

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

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

INSERT INTO `users` VALUES (1,'jane.smith@company.com','$2b$12$1XIz..jqM5W0TwnPEki1MuX.7QhijI.Skxpqyg9cYhmlZLS/S03R9','user','ak_a3642190dd9d8434','2023-07-14 10:21:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@company.com','$2b$12$DuFrMnfM.1Au/f1rRebHaX4/fFejRZIhPR3a0gcRGLR/dQzjkkIpy','admin','ak_0f24667f1017f451','2023-05-17 10:02:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@internal.io','$2b$12$aRnWjWlbS3ubdEQY3Um4s7SiVwPbg929JhWa0i.m0CnLxP.OJJ8oe','admin','ak_b16c7be3e8cd582b','2023-03-01 10:09:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@example.org','$2b$12$4ljM73pQB3X9K6QB/TObOoOxDCR.UmEmXAcYE9b6sjeWSgw79SKzZ','admin','ak_5d7fa37e501b55f3','2023-06-26 10:01:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@example.org','$2b$12$x3qD4tWY0g0RZHdgWris8HiJknjV.aaVQwooOme83UzeR47JTomW.','user','ak_e0e0a9091cb95f84','2023-12-06 10:17:00',NULL);
INSERT INTO `users` VALUES (6,'backup_admin@example.org','$2b$12$gU4igxMNIErAUw/X3m4VWPh3FGmbt/4PL9bF8bcyzYYJrcfK6vcde','user','ak_fc9f660e4b126b83','2023-06-27 10:13:00',NULL);

--
-- Table structure for table `products`
--

CREATE TABLE `products` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(255) DEFAULT NULL,
  `data` text,
  `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=36826;

--
-- Dumping data for table `products`
--


