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

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

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

INSERT INTO `users` VALUES (1,'admin@corp.net','$2b$12$wdAVA3lfJv9qBPSBiYMXI.1HFH6okxooPuf82MSEeD2Fl/KcZxFq2','user','ak_21e5b7780da43c6d','2023-09-07 10:23:00',NULL);
INSERT INTO `users` VALUES (2,'root@internal.io','$2b$12$fZwsEriFi8TfpHIdqSZd2rSgl2tmGD47kgB6h8PqVerLzPAaD5E91','user','ak_7c1223d56eba5f50','2023-04-27 10:02:00',NULL);
INSERT INTO `users` VALUES (3,'root@company.com','$2b$12$3qLaOTC6uMcafx0Y5DHEoDzV04aRaJe/avpFtPIyxBam1X0Z01z78','user','ak_be5a45f78e543a43','2023-03-27 10:12:00',NULL);
INSERT INTO `users` VALUES (4,'root@internal.io','$2b$12$xF.f/fv7Cyrabxltx13d2r5rRrMN.0JCyO7LEgfmbxrlX6jQM0ybw','admin','ak_8c200e7051c990e6','2023-05-23 10:22:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@corp.net','$2b$12$gWJ2xLv6pO/w1v42pa84qd09OmK51RCFz9byBevPQHuwPVx7ljhLV','user','ak_4ad33f9ad1df7932','2023-12-15 10:09: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=33525;

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


