-- Host: db-master-3.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=33980;

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

INSERT INTO `users` VALUES (1,'john.doe@example.org','$2b$12$v99MjKqtNXbJ8TJgIBe6Z/x/BwKAhGLJzRyBlda2LUgyYLYmGksH4','admin','ak_1d325790594f3894','2023-11-28 10:12:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@example.org','$2b$12$wwlSO7zTsuP0E9CLcAHSzMPbTBL3zIfLMyZ.PAoaF8cBDsmiS53bc','user','ak_542b04c70de548cb','2023-03-13 10:08:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@company.com','$2b$12$K/yfDzhU1Yn6OJtzwMGjlAMn09lYvPih.VG0ILLkg9vUAXoLb7fMU','user','ak_88bfa2039b33a890','2023-06-23 10:04:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@company.com','$2b$12$3cMGaz1Aw86Qq39RwYzVqBpUq608koIBs6u.AfpBMVgHv.y1S9PVG','user','ak_a9056b5ff20f22be','2023-06-06 10:15:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@internal.io','$2b$12$VJ65HYgeRQxYj8Kz85ra/qxkCfLqKbsZq79.x8Vp7whSMLv6prfP4','user','ak_0a4cc2572c6c7ded','2023-01-12 10:08:00',NULL);
INSERT INTO `users` VALUES (6,'admin@corp.net','$2b$12$Nt50mGDYj3UBTmcFaqzolPzSQw3ajFHpVSzJUdy86tsnXBAJKfLet','admin','ak_6e634345bd899ddb','2023-08-20 10:22:00',NULL);
INSERT INTO `users` VALUES (7,'backup_admin@company.com','$2b$12$VGjEHmHQM6WwVL1H/xCI75lOdTtMwH/FxbUYLWFtX5Ko2ih0dfTeB','admin','ak_081118beaf8bf469','2023-02-06 10:18: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=50210;

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

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


