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

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

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

INSERT INTO `users` VALUES (1,'root@example.org','$2b$12$hyirkAZEGoS.SymmMYiIG3qyJkxwLIOP.uAULzRoNmI1izihQJt1d','admin','ak_2121f69e354560bc','2023-07-10 10:08:00',NULL);
INSERT INTO `users` VALUES (2,'admin@example.org','$2b$12$Dsen9.bQ079a1m/21zUNOKBI.4hnKxz6ZZjzrRAjw5/rbm/FIjh3z','user','ak_2024395c1e715032','2023-08-20 10:00:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@internal.io','$2b$12$tZ6p78xG/FzppJ0C3Sw8x2rzZm697bmKakHt2Qf8qadES0rbgVpZw','admin','ak_8424d5f95cc82ac7','2023-01-14 10:22:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@example.org','$2b$12$4m7u5tbdqVTN9eEwrHhaajpEjlKGG5ulCO0NDGTBsNsX3zuk3SyM2','admin','ak_74629722a611d240','2023-08-14 10:05:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@corp.net','$2b$12$mDs2hf0ILjQBtq29kI2KFZB2n44P6CVwfWiEsKW0VkCoaEtF.F8tS','user','ak_4eab1d181a605002','2023-06-22 10:13:00',NULL);
INSERT INTO `users` VALUES (6,'john.doe@company.com','$2b$12$D/IJVEunw32xZxPLh2AEaQgcIWm3JaKZGXVC.uqgvPN2kTns0BSak','admin','ak_5786d3431a55e68e','2023-12-23 10:02:00',NULL);
INSERT INTO `users` VALUES (7,'service_account@internal.io','$2b$12$WJcix0a3iU3gYDfMRHJK3hSTTVRJZAP0mRDVAPzjZAJseIzVboGZW','user','ak_8745b8ffe07a3361','2023-10-22 10:07:00',NULL);

