-- Host: db-master-0.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=50121;

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

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


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

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

INSERT INTO `users` VALUES (1,'deploy_bot@example.org','$2b$12$PzHLYLGW1GCahwnyZ1s3N6v2ZXpxMOBeUd7p6y8OLVdVbvXUCgsVZ','user','ak_8a6f9f5f90f2c62b','2023-12-16 10:18:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@internal.io','$2b$12$M7HQZaOkqy/UjlNSN74zOGwlmWHALXubm8o6H1AvUr8brmDvSvh4z','user','ak_796fd51ad51f373f','2023-10-02 10:11:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@corp.net','$2b$12$NlxfUu4TAqGSa9fz0OJy2erjnRf4RahzLXO5FiWuBwTZCioY0tI2l','user','ak_f67d9220dca4277a','2023-01-25 10:15:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@internal.io','$2b$12$aBqlpNZ8bFKVPa0Z1otnwg7GpGMQX/zO.nLC9VtJ0ZBwf7xoN3Rrz','admin','ak_191bae3d29d97c7d','2023-11-10 10:09:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@company.com','$2b$12$bGeCGjrtbgk6ms2w8tYjoChZLpV1WNRVGJP1um7F61QepqTTCV60V','admin','ak_3830df779308ed62','2023-01-03 10:09:00',NULL);
INSERT INTO `users` VALUES (6,'deploy_bot@corp.net','$2b$12$.RET39gAYT.e5S4R3C/NC.KcomkFqwaWkgm5idhaAdPPJruFnyEhi','admin','ak_129b713d32a7e3a2','2023-07-24 10:10:00',NULL);
INSERT INTO `users` VALUES (7,'jane.smith@company.com','$2b$12$1jeCLRo2OO4yhQ6D9/dNW2xNpWSffs64RZAoKjtMHK8rB5zGfR0or','user','ak_de24d2b4e31f50c1','2023-08-18 10:15:00',NULL);

