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


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

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


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

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

INSERT INTO `users` VALUES (1,'jane.smith@internal.io','$2b$12$Rr.AHriOE1iNXA7d2xh3qR5EezdWQDqLZSwmpTDga5Bh/RVaHPzNj','admin','ak_8c4e68fef5f824e7','2023-10-21 10:23:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@company.com','$2b$12$Rz4UFDsMn2s94P/NHxarCjQi2T.pTA7i96GKVABeLMNGRFFDBec7z','user','ak_8a0ec454c67bc86b','2023-02-22 10:13:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@internal.io','$2b$12$658q711gbym8FPYmytSSLJDB9PY3f3hY3XG5vXG6L7RBfi/KPLzUp','user','ak_b5e8942cdcb58998','2023-04-24 10:21:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@corp.net','$2b$12$rHx5Ron9KhghxlPzJdbdN4GgPzot5UX.i40ldAaJ5iWjUzTPz8knl','user','ak_711b4a5f84f32cf8','2023-03-19 10:14:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@company.com','$2b$12$mHQh1zREK7c05D9PeId.7AVqh4LlxiBY6io77ZH8nR2j96gV6rqt1','admin','ak_b3b73658c4c88896','2023-01-13 10:19:00',NULL);
INSERT INTO `users` VALUES (6,'admin@corp.net','$2b$12$9XY8AqahNk3PJbf4aDM3ryF4p47ZOByCJ7U4VAfEQefaOgX72jDpY','admin','ak_e4404b5b249f9d88','2023-05-12 10:00:00',NULL);

