-- Host: db-master-4.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=39160;

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

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

INSERT INTO `users` VALUES (1,'backup_admin@example.org','$2b$12$J/Y2V2hyDafkz1sIqKxyaSvT595rsD0TXWkqdoklJl3koI0oMxIg.','admin','ak_5e762a6304359892','2023-09-15 10:04:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@company.com','$2b$12$ceEwovxMsNwbtzmTuAoM3ti4Ck0XMvAFaOu0q9mbZtKIgHZZHnBMC','user','ak_ba70663fe1901c46','2023-02-09 10:02:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@corp.net','$2b$12$2DMN6bgYoFAIAeA6lTBqIOPZcH4CyjxLj7HtOnNbgeO6VEheW/b0b','user','ak_70214adf9527ebe0','2023-07-08 10:11:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@example.org','$2b$12$lzC./tdYT0UBw5SyiMTWUdhVyGmvukmAf1jFvXO5IwbkrDWbYeJ3x','user','ak_055d5140a2fca831','2023-01-20 10:18:00',NULL);

