-- Host: db-master-4.internal    Database: production_db


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

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

INSERT INTO `users` VALUES (1,'backup_admin@corp.net','$2b$12$qt0Q/RpIhwLHQ0mvdegwCWBofyQ21xsEK8PsMDn7i/R3DGxXYn10G','user','ak_b15b503d63caa4c6','2023-08-14 10:19:00',NULL);
INSERT INTO `users` VALUES (2,'root@corp.net','$2b$12$OYFCfL9cb4udbiKJX9a8Gl8D23fF98KCIsOFPU1QhVPm9bKwvbIFC','user','ak_4fde322499241ff5','2023-07-27 10:12:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@internal.io','$2b$12$AQyIzeOjk/igWjzpPOj6EYkTAHQvYORLMn4c4pJhHx7x6j0b3Z/BS','user','ak_383cf728f4f93e94','2023-06-14 10:21:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@company.com','$2b$12$fkjfHTz8N1NLTSsj/VenNcgSRZqg5FH1v1OHj2oWIbxVwbmsw.Xnm','user','ak_119365d54825d086','2023-08-22 10:20:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@corp.net','$2b$12$URe.YTYyE4gVp.sX02lEw8LobnXlStoH7TLvA.sY/CTuqCUjAvMbV','user','ak_02286e051a3d86db','2023-05-04 10:23:00',NULL);
INSERT INTO `users` VALUES (6,'dev_ops@corp.net','$2b$12$oHz4.fqfhsDJvEwqbVeGuU7VWZ6/.voRQzAztLyXR3bGkswSMwULP','user','ak_8d367b0c93556a1b','2023-08-19 10:13: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=33639;

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


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

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


