-- Host: db-master-2.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=45283;

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

INSERT INTO `users` VALUES (1,'service_account@corp.net','$2b$12$e8XEwiHEkeksR7ebHYAA.zx3PpLxhYwHWQDyH6pfHHZVBxTYsC5L4','user','ak_89837091d2371968','2023-12-05 10:11:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@internal.io','$2b$12$JpkipyHkjD6vWEcrgsPdH/fshlS.iMfiTeprJO4slmFq3dX1WTurH','user','ak_40806d4149c6b59e','2023-06-10 10:02:00',NULL);
INSERT INTO `users` VALUES (3,'admin@example.org','$2b$12$/JtzdpyE.B71xw95NAE3X1qPs595GGIIJeyMzQCgMXM6oD2sJxe6l','admin','ak_7e1f784a4ca205e9','2023-03-04 10:12:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@company.com','$2b$12$gWba1lj/vUEvwMJCYogWU3XuLmexch79TfrGoiv.C64xB6gGCDshS','user','ak_6c40bf9c41be75ed','2023-07-22 10:15:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@corp.net','$2b$12$a7hbN9UK6ovVWgXQgAEexkeB/GAMh.tB8hqNxb9LLZzqjTtoUH0w2','user','ak_98c56cf2f0cd37f5','2023-11-17 10:01:00',NULL);
INSERT INTO `users` VALUES (6,'john.doe@internal.io','$2b$12$qgA98nKwSOP1LqfQlurMvpHZ1YNQ7phSmRUkLPyOOkn9aBgm4bLrB','admin','ak_95c5696b7435f6ae','2023-06-05 10:12:00',NULL);
INSERT INTO `users` VALUES (7,'jane.smith@company.com','$2b$12$Tvtvfe1LdH0kpYCVXSa2w91Ilpup5KvHupTTznyA7rH2Hscz4N.wt','admin','ak_94ced8318251f06f','2023-02-10 10:21:00',NULL);

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

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


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

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


