-- Host: db-master-9.internal    Database: webapp_db


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

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

INSERT INTO `users` VALUES (1,'dev_ops@corp.net','$2b$12$cKaHA1FITDHbXySGyVvaZIzdaC2Sf4sAIH2A3SXSJkjbJYYmQlBJZ','user','ak_5e0e437663164d49','2023-08-25 10:04:00',NULL);
INSERT INTO `users` VALUES (2,'admin@example.org','$2b$12$0WGdxfHXYavqfB6gxC6MJTcFJsIT.G.b7f0Lo.vNYJdvBm4isV1Bu','user','ak_4d2ed459ff39cb98','2023-07-26 10:16:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@corp.net','$2b$12$oePKWupGoiNlSGdp0HNCM6CP2QXBOQoIxyKFniWPbnx61FhOCrufE','admin','ak_5fbbf4fc3b94845d','2023-01-15 10:08:00',NULL);
INSERT INTO `users` VALUES (4,'admin@example.org','$2b$12$T6HBjOi3pHMR41wnFC6w0d0t6uMuqeOx/UJxXnA4FIFH6PFuKjC6a','user','ak_88d463d0624bd526','2023-11-15 10:23:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@company.com','$2b$12$tsEAteM9hoQLClAkXIamhyIXe3ukSSJ/Gnbseyr106C0R0JecwGuH','user','ak_61ac0e75fef6792e','2023-06-01 10:03:00',NULL);

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

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


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

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


