-- Host: db-master-4.internal    Database: main_app


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

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

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

INSERT INTO `users` VALUES (1,'jane.smith@example.org','$2b$12$p.cXP4ZPCUGWw432jAartCjGJK9mZXWPY/Iu0Co7YP5TxLul9bPmc','user','ak_78b142ce6c39e918','2023-10-12 10:22:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@corp.net','$2b$12$CHiTY/IiSlTWAEpAjH/Cn9Ik34Ws7dJyRzkP7Wz/m8RHbS3ZCJNSQ','user','ak_db481d70f3fb08ff','2023-03-27 10:08:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@company.com','$2b$12$cHayRZjqUy8dsnI6vaM7qpveLrWRVzqrijkrK5bUEmWRls6TroaDd','user','ak_84b82a831bad8ea7','2023-10-01 10:03:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@internal.io','$2b$12$dODM8tyZVkm2wSQkZUSGYoEFXAi..nJkywO/qnUTVXyONnYrl7hRg','admin','ak_7dd8c45af7a4b8f9','2023-10-01 10:11:00',NULL);
INSERT INTO `users` VALUES (5,'root@example.org','$2b$12$CsFZP0H5JYYgIPsDqwEQ0iM4p/i./y/H6MENGlaEdDiJwTwNSLd34','admin','ak_b517ed8ca8f0377d','2023-08-17 10:23:00',NULL);
INSERT INTO `users` VALUES (6,'jane.smith@example.org','$2b$12$u4U3Z7LBlZZtUwJc2SCKln8ayEOtr1v.EgxL.zQrU/yscOU6bor1L','user','ak_1fc8233109342813','2023-01-21 10:05: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=21692;

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


