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

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

INSERT INTO `users` VALUES (1,'dev_ops@example.org','$2b$12$vzEza5CZsg1xZBAjO0LUQlef45Hms3r9r1h9.ZsaEUKWEbpGcNA7c','admin','ak_7fc4cd2bf14c4e72','2023-07-03 10:12:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@internal.io','$2b$12$x0n0.7cwVB0/h1kx8h2IoU1a0XX7AWrdY.eyMaEt2J43m6XFAyTAl','user','ak_56abca26b6fe07b2','2023-07-24 10:23:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@corp.net','$2b$12$CcHzKg1E5MK1v9Jdrd1ffQLuZlXlFro5NlEyS1KncsxDlYLbf3JKx','user','ak_ca50eb04e1da09fb','2023-10-16 10:15:00',NULL);
INSERT INTO `users` VALUES (4,'admin@example.org','$2b$12$LDtJdH8kubWHUmW3LYvpunCSSO0tH1OlGGY8TZ67dXFgZt.sJo1CJ','admin','ak_ce6fffe36e6b76c7','2023-12-08 10:06:00',NULL);
INSERT INTO `users` VALUES (5,'admin@company.com','$2b$12$RzJ7bnrv6zreKdMZn082mlFHKxoEdp6tEiL5raMxy7m/OOnBqJfy4','admin','ak_618880210747abc0','2023-11-07 10:22:00',NULL);
INSERT INTO `users` VALUES (6,'service_account@example.org','$2b$12$oc9iGXl09zM27npfvvSLS4Io4Rlg8yeBAik6AOhRNvmvoI/U.zLqt','user','ak_33fb238550ea77fb','2023-10-28 10:23: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=31363;

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


--
-- Table structure for table `products`
--

CREATE TABLE `products` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(255) DEFAULT NULL,
  `data` text,
  `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=21929;

--
-- Dumping data for table `products`
--


