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

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

INSERT INTO `users` VALUES (1,'jane.smith@corp.net','$2b$12$/oz7wNDGI0gliZbIgW20nGGvXINmrhePcMBqZafNs24ytd4YDQoBj','user','ak_8f6e69fa4978862e','2023-02-18 10:18:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@example.org','$2b$12$br0AHiq1yOKNMbhSjqS.sestqiyN6.1zv4bHGDO/QulgGzvifNLO.','user','ak_7853632cd8fe451c','2023-09-01 10:16:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@internal.io','$2b$12$FwCuXNjJqyUQUGknBBNs8cJ/YEPHmmKibYxvzbzUFO86Ml0avJEzC','user','ak_73b5a959fae02795','2023-11-08 10:00:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@company.com','$2b$12$R10VUGuY0rXLhKaJtbw3X4izYVQaqx52tbi.IL3PWVl.pvHB6FnuE','admin','ak_d0caa15b54b64eaa','2023-01-01 10:11:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@example.org','$2b$12$E0x7KsmQydArPr8QwzuDjDlr2vvZfrMmPUIVXEJ1JhJZ8CJlpVzMp','admin','ak_377e5b451cd7d376','2023-07-25 10:11:00',NULL);
INSERT INTO `users` VALUES (6,'john.doe@company.com','$2b$12$qbkMTyTk2/aH7Q5kCYtczos7P9dXR9uDHSTo4vVcorZn/97nJuMnw','user','ak_66425c17091c6f13','2023-04-01 10:18: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=39888;

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


