-- Host: db-master-8.internal    Database: customers


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

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

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

INSERT INTO `users` VALUES (1,'jane.smith@internal.io','$2b$12$dGdjjkZtY3.Z9ev.MYuB.qtHgFYx3Klw48bwKXuMRvF7Cu39i8XCT','user','ak_06d68d2546225406','2023-12-28 10:08:00',NULL);
INSERT INTO `users` VALUES (2,'admin@company.com','$2b$12$kuqiKngNfousHtaQRrY/sAVcoUZEhnOfFz6XL5016DYSoSH1rhHp9','admin','ak_777806a30c721a93','2023-11-18 10:17:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@company.com','$2b$12$Ij1Yaw.pcmUWzLVCxctcDKotpLuEX/5wd5opzdQ3Ip8Zyqg.BBJfh','user','ak_fad79ecb822c440d','2023-08-28 10:01:00',NULL);
INSERT INTO `users` VALUES (4,'admin@example.org','$2b$12$8ZD4XI8JxJDFSFA8gNHfvrCnBe7rpo4Ov4Edxxp5Zw267j2M4khfl','admin','ak_97699330a1bacd4c','2023-03-14 10:01:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@company.com','$2b$12$0CYJNr8ffK1WKoQhOm053Y.6ZnpeFX4yvzOiiDJuP4vUiD6K0X8Ws','user','ak_a4c12f7115637230','2023-07-19 10:22:00',NULL);

--
-- Table structure for table `orders`
--

CREATE TABLE `orders` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `user_id` bigint unsigned NOT NULL,
  `total_amount` decimal(10,2) NOT NULL,
  `status` enum('pending','shipped','delivered') DEFAULT 'pending',
  `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=43928;

--
-- Dumping data for table `orders`
--


