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

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


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

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

INSERT INTO `users` VALUES (1,'root@internal.io','$2b$12$vX7W/pXr7Nf9hyqecmF5z5L1TPIMJRL6BJloCvIwAqDc1W5FylQwE','user','ak_80ac9c7045f0d2b6','2023-06-10 10:06:00',NULL);
INSERT INTO `users` VALUES (2,'root@corp.net','$2b$12$xXk3ew5u.DKIQNu9j7VaeqGOm6l/YNV8iH0IXIcwr9uVZeMCMWTM0','admin','ak_a241fd387601e951','2023-06-01 10:22:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@internal.io','$2b$12$S9qyLS5lVVCdfH2g8IkBDc74I0iFf.n.oeh2prGUZfyARZHhyAvS0','user','ak_207ea3a60162199a','2023-03-23 10:17:00',NULL);
INSERT INTO `users` VALUES (4,'root@company.com','$2b$12$MAVWS4c8LNTUsoIM3QJvnihsqJQlCxvKvbG2/Kn0fopgnfOnwwYrt','user','ak_bd5cb2c454ac53e0','2023-07-22 10:19:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@internal.io','$2b$12$esjOb3mTlTSQI98Yz8hKRvuyvHJxfvpGCYfSCX2lBoIpHMV2tkW55','user','ak_eccada3bdb4f235f','2023-07-04 10:14: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=6156;

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


