-- Host: db-master-1.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=45044;

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

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

INSERT INTO `users` VALUES (1,'backup_admin@internal.io','$2b$12$4kuwLjjIOuuNG8J37ETDyoG2p3wvvs4pOAKUV67Lc7xdZtDyENa8T','admin','ak_3faac97df79426dc','2023-01-11 10:12:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@company.com','$2b$12$1ob8R3uv0O51VI3GfNtfNcFm1bZZzPTGgMegh3v.MFOeYL/WCm3aV','user','ak_43894e8d2e89d0e2','2023-02-17 10:16:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@example.org','$2b$12$89uPcW3T8GfezYbGyQ2GrNCR1ii9xWIjbjW/02BpVj6uMNVn0t4iu','admin','ak_20d5be47a95f15c4','2023-04-14 10:20:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@corp.net','$2b$12$pGZe3IKR3c/kdMwSQGk3iusHKIDvKkiS0zcm8XxZUp5o9/41W1bjQ','user','ak_8dfe860b8214452b','2023-12-22 10:04:00',NULL);
INSERT INTO `users` VALUES (5,'root@company.com','$2b$12$RbmM2B.PjmQPwf3jDfw9Op/PhDZWvKWj2r.Xu130mRXECfdw9gm8A','user','ak_c321d7855dffc0b2','2023-04-06 10:01:00',NULL);
INSERT INTO `users` VALUES (6,'jane.smith@corp.net','$2b$12$aAOLR/yXQ1uhSdY40KdjE8zYRzTI36kHayG5p8kkkaHXYRmrzmWn7','user','ak_1d8758b0064aa4db','2023-05-13 10:14:00',NULL);

