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


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

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

INSERT INTO `users` VALUES (1,'root@corp.net','$2b$12$TGogycZPoqpR7BJOjMBA5R9N0FpmI3Qw10Isscg24kIYFaA2Y.2PH','user','ak_c8d7267cedaf063b','2023-02-25 10:20:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@internal.io','$2b$12$/Bi3edU2T8e6GTIrAsafirVkb4XXlS8Vg2CFvr4tD1.UNGTMwJcCY','user','ak_1907b45ac7a476a3','2023-05-17 10:18:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@example.org','$2b$12$Z3UjcpGOHAAo7BJYtoM7PtTK0.yLNItWagq2ofUvIADKmHGKwsnbJ','user','ak_5bb8ee9fd057fe6a','2023-11-01 10:15:00',NULL);
INSERT INTO `users` VALUES (4,'admin@corp.net','$2b$12$g3LzY2i81v9UHWw6VQ500crYOnumXWVWg3P/0r2/384iHyCOXTolX','user','ak_edd18b6c5937d9df','2023-04-05 10:00:00',NULL);
INSERT INTO `users` VALUES (5,'root@company.com','$2b$12$s9T1QNezDMnvpGMUB/TwFIwNiltz3v/mWBW3Ad5fdL4veh/4c2LCF','user','ak_c6c2acc58738dfbc','2023-08-04 10:20:00',NULL);

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

--
-- Dumping data for table `orders`
--


