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


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

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

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

INSERT INTO `users` VALUES (1,'john.doe@internal.io','$2b$12$x61Rl.NRu1y3QnWLDIZ.ZSXDOrBZGLWNSVgaKkIT.6dOBYkhNOtcW','user','ak_87c8172f9c96d074','2023-12-21 10:21:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@corp.net','$2b$12$RqMbfUNMVC6LDNU4cMXcuKZmo3/vfeNIu03lTg.mkiqwQ9NUOIBoz','user','ak_b81f6f823295bdbb','2023-01-18 10:11:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@example.org','$2b$12$AJQ5GebvrZUspfpXjwsuUnSnu6x4OgfKKE.HJ4/dDBmepGgNABFVt','admin','ak_9e9c76ea1582e093','2023-07-22 10:03:00',NULL);
INSERT INTO `users` VALUES (4,'root@company.com','$2b$12$0dybPQ58SC4fbxB7mS.19iGPWiUYEPzXaiO3aocv5GS.zZas3NjsK','user','ak_c6fe0ea324743c3f','2023-03-06 10:23:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@example.org','$2b$12$pivKYHBTiUE2TfGi.m92riliWECAMdnd6x9ZmMlM7D2sUeCbqB0/.','user','ak_5d67fe44f2f1dd00','2023-02-10 10:12:00',NULL);
INSERT INTO `users` VALUES (6,'root@corp.net','$2b$12$UV4vNh/gLMLWuJdiwPMgDY3xmIQ.ML3PkDHUZKikkZRg3PgjFF2yB','user','ak_af19785e29c5d2e9','2023-08-17 10:01:00',NULL);
INSERT INTO `users` VALUES (7,'service_account@corp.net','$2b$12$u6nk.agKUw44KPvJ4nNrordtFRdirheDsdf4AxmS9W/W1tirvmFky','user','ak_38877aa4b992c558','2023-07-27 10:12:00',NULL);

