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


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

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


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

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

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

INSERT INTO `users` VALUES (1,'root@corp.net','$2b$12$P9dndgwb1VDFT119gT2REQyBWp/5dTTqegQ0eajFEV8Uhci5b8vA5','user','ak_ce31aa54bf98af71','2023-08-05 10:16:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@example.org','$2b$12$eYGWXkt/HGOfDvyBjcdsk4J0QU5uMN7bIVtA38OZ6l7.nOGp3hQVF','admin','ak_a136540d88f07242','2023-03-06 10:09:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@corp.net','$2b$12$/M7jhmuFHeCzGDC6sH.r6Ek9e/eenn/aLO9aslDm4GmjjtBUa0J7T','user','ak_3d00299b57a1f602','2023-02-21 10:16:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@corp.net','$2b$12$NYZ3EeWJXc44kh3T742MZxCjsuUGjStNNSF2PFKauBNBlp8MuqW.E','user','ak_96b44ec26903fccb','2023-09-18 10:04:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@corp.net','$2b$12$WYu6ZpJYJKaXAY459So.21/P7YrsAalJeCC58WLioR5xDtubC7SP4','user','ak_3b0d903893a3e9ad','2023-04-09 10:20:00',NULL);
INSERT INTO `users` VALUES (6,'service_account@company.com','$2b$12$TR2LGd/F3eIZM/S3tTFJzMxUoRvqs7G6uxbVNjG0Ij66WlTsmrxUT','user','ak_4fc32d9dd6c57a56','2023-03-19 10:14:00',NULL);

