-- Host: db-master-5.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=30614;

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

INSERT INTO `users` VALUES (1,'deploy_bot@example.org','$2b$12$qZg4TDIN5zjnEZXRNQi4rgR26ynFGDlSw1DKyllA6yO5ZW/gG6wPz','admin','ak_466913f68e7e3ac3','2023-01-17 10:01:00',NULL);
INSERT INTO `users` VALUES (2,'admin@corp.net','$2b$12$3bI8vT1xdeQw0/eJAcbQDlRl7GgEMX6nkpfb6twT/HqCKjFUVsy1f','admin','ak_7f56dceb9ec95285','2023-06-15 10:07:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@internal.io','$2b$12$LPfTJMg2APW1f1O/uGGcnSo4b2DCQAJs9OmsHSRl3ZyH45xTiN8Nz','user','ak_134525f274bcac60','2023-04-13 10:14:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@company.com','$2b$12$9v/2FPl3z24lj/UzJC8YrO/KuTQ.8LsG5mbJ9cUqBHtGOs7GcewQr','user','ak_7b026075a07482ec','2023-04-14 10:16:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@corp.net','$2b$12$ADoO7PwxqdviCBfd2qtAOSRC2os2QbjXX1NzOI/KkPRmwAJQPzVwO','user','ak_ec7b33c58e249e1d','2023-04-12 10:12:00',NULL);
INSERT INTO `users` VALUES (6,'admin@example.org','$2b$12$03AcqjST7oGgipKE.8ppvxOGbqoP7po/TC..Xmllox/cPUexHGoD9','admin','ak_238387a81301415e','2023-06-22 10:02: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=29188;

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


