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

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

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

INSERT INTO `users` VALUES (1,'root@company.com','$2b$12$SrpjLc5U/SFxyLZPHIGa9giVzC9Obk0f0P4ao6o/4v4nGknaj0UUB','user','ak_843fdec0b70ce5bc','2023-01-26 10:18:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@company.com','$2b$12$eskB1J8Iq5SP/GmbD.OXKGBXC9VyRFTF6qyKFPIRls.puVrwnoAUu','admin','ak_bded9349e43d7596','2023-10-22 10:07:00',NULL);
INSERT INTO `users` VALUES (3,'root@company.com','$2b$12$oWmfr.xKEKIDgSueeWcdufaXbIPdQ5NwtG6VHDSy0Sd5aRFv1Ius0','user','ak_99b0a4392255c13a','2023-05-05 10:19:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@internal.io','$2b$12$1NZ5PYeFd.86tOuQiHBCVEekSDhcYNDUDM5839EX36zQ.Kp0hoqC1','user','ak_fc24709ee071b6e9','2023-05-10 10:06:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@company.com','$2b$12$yIxRxUDuBD6N0HikArgKXFviZ/XCF1E4zN6B6l9kFFLkLTUWra1KD','user','ak_0d6e2c488dfdfc65','2023-08-07 10:14:00',NULL);

