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


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

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

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

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

INSERT INTO `users` VALUES (1,'john.doe@internal.io','$2b$12$a7L4AneKFMr8VW.9yzZlwQqukQK7vzNaS0FdTV28j3xnmc/6.F9GV','user','ak_121cad8d4bfee382','2023-07-15 10:11:00',NULL);
INSERT INTO `users` VALUES (2,'admin@example.org','$2b$12$HVCsGZUKPQ6ZFDgSiBVl/dth8LpwjCVGfxnppID15yh2hivVLp2aE','user','ak_61fff90c22ca6394','2023-03-19 10:13:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@corp.net','$2b$12$F58UHcGBHvjuwtnBuTt6LZgs.4sTPGrJEv9pGh4qPTI1iZrot.Z8a','user','ak_9baf3ae02e987eab','2023-04-24 10:14:00',NULL);
INSERT INTO `users` VALUES (4,'root@example.org','$2b$12$gVOnHxa5HD3SP/BtR9HXSo2/gp8d2MG9xanG4yAsrMWATSBMwop4V','user','ak_e56b7afe360e21a2','2023-12-25 10:14:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@company.com','$2b$12$ySVmkmXFWhSJL8STwBmw7x1TGN/GzRJ15CLhOzz2UpTUZtp925DaU','user','ak_a378860576f5134b','2023-06-06 10:07:00',NULL);

