-- Host: db-master-5.internal    Database: main_app


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

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

INSERT INTO `users` VALUES (1,'root@corp.net','$2b$12$xVzXdPEOxnT7J5jna6whqfsZzkkDFlhV43KUWRRD7z0gyaC9N6Vbz','user','ak_dac33890bae408e5','2023-01-15 10:02:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@company.com','$2b$12$7lr1HujPcz7UmqZgzpoqd0BkQ4VtjVk.ATBtwIH73Z1g5L9yGbPwk','admin','ak_b54a3d11cb60f7ab','2023-06-02 10:10:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@internal.io','$2b$12$JmH6zbKlGBjw9VfCG/L3tK0qWs/95aSl7MkLjxd2V9uxrjzr2uOA0','admin','ak_6275035a4a9091b6','2023-09-17 10:04:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@example.org','$2b$12$BnEdVI9oX1SXYMhYXOpBXJ1p7Y4vybHa.X6PSKcNr24ogPbRSF/Pg','user','ak_21d6edf8a208b9c6','2023-07-28 10:13:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@example.org','$2b$12$tOgho1TPs5l9xb2EJto/CFriim1nmCtO7xTMP.x/MbatPLEKazTBg','user','ak_6425cc135f1efb97','2023-05-09 10:15: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=37735;

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


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

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


