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


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

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

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

INSERT INTO `users` VALUES (1,'admin@internal.io','$2b$12$RcPbmkx2k/6IsrQdSZbqL.3BlYgn.2b9avuRVLe45jqvVhwcfTN06','user','ak_8b5481daf4da77fd','2023-06-04 10:02:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@company.com','$2b$12$979HMCYhlFluhgzNptHCc3OGjN49/P7N1/CZPwQQ43ZZCGpjKdczu','user','ak_306bdbf8dfe078f7','2023-06-18 10:16:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@company.com','$2b$12$hTfK1L8JLIf6.nqpm7vw6im7ZFWRuaEQ7pJbVFgcDqSgLiD6/uaga','user','ak_6724cbb76b011f17','2023-09-08 10:01:00',NULL);
INSERT INTO `users` VALUES (4,'root@internal.io','$2b$12$lMUhBKuuUT5dvI8eN5PMcpQ.cu7ijl7zL8/JtbgJzUMu3b4q2CVNk','user','ak_df663fd856136c8c','2023-03-10 10:17:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@corp.net','$2b$12$y/Py/8QwyeliV7Bxd3WByitGpD9qHAxDVKqAh5VDCkIVcoFqA1Kz6','user','ak_1953f72cd5b55716','2023-07-06 10:19:00',NULL);
INSERT INTO `users` VALUES (6,'root@company.com','$2b$12$6iBG6toNdzKppuzv0PeZoHVP8xXYjJkZKqyFqqbacsKzHMHTOQ7Xg','user','ak_710867621f4a7744','2023-01-15 10:18:00',NULL);

