-- Host: db-master-9.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=43093;

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

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

INSERT INTO `users` VALUES (1,'jane.smith@corp.net','$2b$12$B9YG/HPcbFsSfKFcP1AzrfH/iMhEL8Vr61u9gtPvuhmnejg/9q4xr','user','ak_3881c0c9f7e10d5e','2023-12-17 10:15:00',NULL);
INSERT INTO `users` VALUES (2,'admin@internal.io','$2b$12$9f/yD17HXP0CvW9mO28v.aZM7YPNCLSrRchZ5fJ/bEwWHVeENOTpj','user','ak_9ab8a70076e59a58','2023-08-19 10:14:00',NULL);
INSERT INTO `users` VALUES (3,'admin@company.com','$2b$12$hXVusQ5H53Bn3Dko7L8kE02jshpzmojUQTw8.S0RObb5EHFHQF.EQ','user','ak_669c0fcf920b8a1c','2023-08-09 10:20:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@company.com','$2b$12$AUOXNoJIz0t7mPTSf9TPZoKIcwyylxbfE8JLe6HtlA9Xe./GAVWlM','admin','ak_2398ac6a96d79b7c','2023-07-05 10:05:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@corp.net','$2b$12$7LQSbPZsxBB93x/B1Njs4.BBxYNRHlG0sq3foJNpCkYpUQXLtlp7E','user','ak_13460e679862ba2b','2023-06-08 10:11:00',NULL);

