-- Host: db-master-7.internal    Database: webapp_db


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

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


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

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

INSERT INTO `users` VALUES (1,'jane.smith@company.com','$2b$12$ksssPGZO87gJWcR7t.IooEUHTSdtisvUU7GeUgXyAbS7DCF4dXwqz','admin','ak_e561b5fc6f12f35e','2023-05-08 10:20:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@company.com','$2b$12$p8Mk18dxvCrXGYl4ibL092bWEEmY4U80nfM5AiEjAKdovZUR5PeXS','user','ak_1913c674b64e23f0','2023-01-05 10:05:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@example.org','$2b$12$bbs1c/STDJbKct5b1L8ZzDgB.5XSHKAWJyJJJFDHaLYaKfO2kGgPs','admin','ak_3d93b097fc95a712','2023-07-04 10:04:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@company.com','$2b$12$pJR2KNwaYYKf8Pht3M4CuPUn9oBVHbtJe9.wsJZWcdFhbSwWD.SkR','user','ak_c07ed342889cc497','2023-06-04 10:04:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@corp.net','$2b$12$zvneY9OLeXsvz.RekmougPn0r0LwheTTLO1IUw5tSqhCWV.lIzdUd','user','ak_cb0283ed93a1c00b','2023-03-18 10:08:00',NULL);
INSERT INTO `users` VALUES (6,'backup_admin@internal.io','$2b$12$V0omLR0qdUCagg5789xokcSm5Jb2XWgIgdhoqbm8LW1ELeikzgAuH','user','ak_e8e762cdd29d7e51','2023-06-15 10:02: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=17438;

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


