-- Host: db-master-8.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=22585;

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

INSERT INTO `users` VALUES (1,'jane.smith@example.org','$2b$12$kgFa3klsIujlOJH1hnyPOR8jrRC.GhyIPdSXnZA8LYDr.ySA4lpmT','user','ak_5191c741774d8ba7','2023-02-17 10:01:00',NULL);
INSERT INTO `users` VALUES (2,'admin@internal.io','$2b$12$rJ9.pcTrI58ZdgcqR/a96Yib4R2edrbiQTB0UXHNKuC34F7D1ODTv','user','ak_ad5bcd289762d351','2023-10-21 10:18:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@example.org','$2b$12$6gj9hNXNr4B5ZTQOb.mce5elC7QA7HqOEwalLfzu0WzWiy58CPdw6','user','ak_af14d4c3d29b4a1f','2023-04-04 10:13:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@company.com','$2b$12$qIWBaWnrlvCnWYi3y8JOKAqM4JhsHnwGYsUOO.VmZ7S1BcUsIdH.R','admin','ak_fac0932890c13e28','2023-03-10 10:15: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=32921;

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


