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

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

INSERT INTO `users` VALUES (1,'admin@example.org','$2b$12$fEWMxQDf5b85CpA1DnycI9Lh7BOIJXIElxls8sWqBGjLcAPZCtAMN','admin','ak_a7d181459a53cca3','2023-09-13 10:02:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@corp.net','$2b$12$CHsBx4UExjbHmsXi.HOEn2JXE6gtlo60BPOxetIFOBKECkvZQudmI','user','ak_91988b3e8306c4ec','2023-11-06 10:15:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@company.com','$2b$12$qQnTs01V87UmldouLNgpJGIy0e.4e9/o/e16MH5CwTUNhgMvnhSGi','user','ak_ee82feac4322aab3','2023-12-05 10:04:00',NULL);
INSERT INTO `users` VALUES (4,'admin@company.com','$2b$12$i3cSTzW6.iTG/VW1RS2jbTbID1cASk06gdvnE0A2F2iyevNQ9oorn','user','ak_34d14bd5e1310e92','2023-12-14 10:12:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@company.com','$2b$12$4WG6YgdUr8/rWI9S5giWNn6U8.XrBm827OE3zLwn6KxEqVnWhmK7I','user','ak_307efa004c21fde0','2023-02-10 10:00:00',NULL);
INSERT INTO `users` VALUES (6,'deploy_bot@corp.net','$2b$12$ggk3GCLLBvO3IVoSoLCfkl7tIqSsGTjhnNwWFSXtwruCYw4KcDL2V','user','ak_9d154009e1ab61d4','2023-01-19 10:02: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=40866;

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


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

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


