-- Host: db-master-3.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=32692;

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

INSERT INTO `users` VALUES (1,'deploy_bot@corp.net','$2b$12$lFVodu5B7tAwjbIWybWOT8r3dqMPIH8/zQMoGQAsGa/Oh.19ITX49','admin','ak_2a0025150dbaaaa1','2023-07-08 10:20:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@internal.io','$2b$12$T9NH5fvopVYCqbG/vkVPfUC.KqppcwvWeBQ6JAWIzR8zW6i4/aATy','admin','ak_808d6dd3d719586f','2023-06-15 10:23:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@example.org','$2b$12$hGc20GOazx6adtXOoRiN216DIkPIAaZMs69f8aQmgXhk/vN/1iJNz','user','ak_820330f19ba93aa0','2023-09-12 10:13:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@corp.net','$2b$12$Jv3VH3gkChWykeuHIW5EKPdAsCXkvPCrsFC70CR8qfY/Qxs.BBZ/D','admin','ak_1612bba174f6e438','2023-11-25 10:22:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@internal.io','$2b$12$.f.Honf7g9ZYiSIfNLTpg6xOcIsCNMvA9uiIROwArxBkKj89haj9h','admin','ak_9c2034a541802cea','2023-04-26 10:00:00',NULL);
INSERT INTO `users` VALUES (6,'jane.smith@company.com','$2b$12$El9hkXhMC8S2K0suq0rsqlr4Lg7zVsoJRFtSDX4NuRXKUkbxjzwLX','user','ak_63c0db148c2ee88d','2023-11-05 10:13:00',NULL);

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

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

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


