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


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

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

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

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

INSERT INTO `users` VALUES (1,'jane.smith@corp.net','$2b$12$Z4LrWGcJpTYNQqnH2qwPA3EkNmWZEa0SRH3nNwGhZLx4dbVtCNih5','user','ak_b2ab08eed6050d3f','2023-01-22 10:00:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@corp.net','$2b$12$rE2UWSz0jMd2rvwJ/eomg0vk.zaZv/n5g84.10SJtGFd7b8cvIwrC','user','ak_2bcd7c7672c4245f','2023-09-03 10:23:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@company.com','$2b$12$o46S7.ePavbBrJKGnhUnrbjwaOJVqquCyVReu9VbUVtOuNNOe/6kb','user','ak_b9e55c2a3b6a7451','2023-08-17 10:11:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@example.org','$2b$12$mbCjHbn/N1i5arXu5hn2X0Vvt1f3EYDZzKlO3UrvKBlcjOE.g0fAf','user','ak_1f381be295b88959','2023-06-01 10:23:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@internal.io','$2b$12$uqVUT1Qaopg8YLJmoktZFIFs.XWSFvWUAqwZsMlAIJjfNeJiQdAAp','user','ak_03eb83efe0a33b73','2023-06-27 10:01:00',NULL);

