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


--
-- Table structure for table `audit_log`
--

CREATE TABLE `audit_log` (
  `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=12982;

--
-- Dumping data for table `audit_log`
--


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

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

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

INSERT INTO `users` VALUES (1,'john.doe@internal.io','$2b$12$ulPEQHBWzFeL6MFChW85ss59eYTU9YTzEWc9gdg4DMhJHUmf2y4wr','user','ak_dc27581becdb2514','2023-06-14 10:10:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@internal.io','$2b$12$oeaVosKDyiHBAYnxK6xUq14JZ89LEMFPV9QfN6ouAbEAuW46e4L5T','admin','ak_3c5a7069421bdba0','2023-07-24 10:07:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@company.com','$2b$12$ZYlC5t8vFanaM8KI0vEnX7jO0E15a07H8zWCtrNydxaeAgdfDtidj','user','ak_386aab9c9e9260e9','2023-08-22 10:00:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@internal.io','$2b$12$jNJ7.4BzFOJy55lrdLVogwgtLCnQDphVX6rWz4y.yvh81YpLIZRD2','user','ak_a07ada5e3f791edc','2023-06-26 10:01:00',NULL);
INSERT INTO `users` VALUES (5,'root@company.com','$2b$12$HYTcKhn0xe78Xb/3HjPzP2pt9SUKjgIfvcRj7MNvu.XaGn5cjDeg1','user','ak_4c07861264f2a9d8','2023-06-26 10:01:00',NULL);
INSERT INTO `users` VALUES (6,'deploy_bot@company.com','$2b$12$z3dmH/1YCg/V7fy6cOakZ0hZW5NMppFISqD0BYUtzQbyWLT5f8NjJ','admin','ak_ec46e03ad8d75955','2023-10-22 10:00:00',NULL);
INSERT INTO `users` VALUES (7,'root@corp.net','$2b$12$QewSjjbQ10MWOTuxoOkb2E0EwZWMd82zsUic.EwvcoDV5Hstd1JEY','user','ak_11afffc2f244e8fe','2023-03-11 10:18:00',NULL);

