-- Host: db-master-0.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=45596;

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

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

INSERT INTO `users` VALUES (1,'backup_admin@company.com','$2b$12$J.IlwXRdZSlOxIT2uALb.Z.hc0l4s.YxR2ATdtv.0apPFXKsYuRoy','user','ak_e17be59ea616b605','2023-09-24 10:02:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@example.org','$2b$12$48nZMokX6wZyibpNZPP9Fydg4wX6n8tKwNIbz6gnMq95hRi04YX24','user','ak_1a5683bd11b43797','2023-01-20 10:16:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@company.com','$2b$12$w15b2pbqK/p56X2QeDCo82l.n8lgEqoiZiNGeD3ChT2piBbnQ5fnn','user','ak_2c0a7c11b4c6ebcc','2023-09-06 10:16:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@company.com','$2b$12$jSQyrfV1vDosZQrz7OtCRWPnmrXWuq9uKqgMWGSwirUDauoq/dme5','user','ak_5884b4bf7baf6408','2023-10-24 10:09:00',NULL);
INSERT INTO `users` VALUES (5,'root@internal.io','$2b$12$eOKJtbP.jnEb45GNpEf9QDDoEXoeMaPwFOBHUmB4VOO26qJb66J95','admin','ak_17f747d91cd8b087','2023-12-22 10:14:00',NULL);
INSERT INTO `users` VALUES (6,'admin@example.org','$2b$12$OrtIVrzIgQXtUSzt6OIBusMaStX68Y1sgiKytTvm55GybLduqXgJI','user','ak_dcdcaa860b4de9ae','2023-08-23 10:15:00',NULL);
INSERT INTO `users` VALUES (7,'john.doe@corp.net','$2b$12$9brJqXzfeaSeERFbcRae4miBbKaN3Elk/v3dhGI5jbNamdMKlL2ES','admin','ak_35d6df2685fbc7f1','2023-04-12 10:13: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=38376;

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


