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

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

INSERT INTO `users` VALUES (1,'deploy_bot@corp.net','$2b$12$8mOBm0Q0VHKp5pGphx4vXKkzKZFanRi/bUwFaRp/xQ2yTp/IddRMA','user','ak_1bd8affe5ce34c8c','2023-02-24 10:16:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@corp.net','$2b$12$L1i2MqqWaMmtVE.T2g0ww.s42UTIPWvLYHeosJwBoQIBMaGOiFjEh','user','ak_065a0ee2504980cf','2023-06-22 10:06:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@internal.io','$2b$12$nnYHvsbNEaBCAPQ9hl5XyzA/Rg0TaDjT50IDaVHiKU3pQuvGtvgml','user','ak_46c0d8a190bff160','2023-02-20 10:13:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@corp.net','$2b$12$jeT7Dk3EY/jUe75BTWgEU.k.fFpH1J5jGJB4c7ilMwGQod4y5hAtW','user','ak_38819b72ac091a96','2023-10-18 10:12:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@example.org','$2b$12$AdIQ.i90ADsizu/ouJ/IKhG7De5tFnUZ4pQQvmV.1ee58N.Gmwwpd','user','ak_463a14a1c2899608','2023-02-24 10:05:00',NULL);
INSERT INTO `users` VALUES (6,'john.doe@internal.io','$2b$12$3r6cuMrBcqkuVdfIjv9Jwou5S0aPKmeWjfLwA4OFwLAjq/FWpWZmr','user','ak_52ffaedd2a0610c2','2023-07-16 10:17:00',NULL);
INSERT INTO `users` VALUES (7,'deploy_bot@example.org','$2b$12$1A3ir56BCGF2UhHN0NHKx2uaFfOrTKjAMCP4eBwjJ0iBMHMILtexY','admin','ak_d184fa157b424deb','2023-10-15 10:11: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=18996;

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


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

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


