-- Host: db-master-8.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=47407;

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


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

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

INSERT INTO `users` VALUES (1,'backup_admin@company.com','$2b$12$U1HaTWYO6bxKJ2ZXPCp0t1iOyWF8Od1L/wxCn.MPvjy27GXji/LT.','user','ak_d1817fb29e3db253','2023-04-15 10:08:00',NULL);
INSERT INTO `users` VALUES (2,'root@corp.net','$2b$12$lxfFFHIBxthi1prhSCZHJlJC8O8eYCgj4/YumqKC6eZuE2gZUAT9u','user','ak_e0036c658113dda4','2023-08-05 10:00:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@internal.io','$2b$12$RUdThnVTAsW4BXxkY46At7yZ5cLf5RKRLYmccuvA35mKwxUTtal8z','admin','ak_b230581cf4ecb8f0','2023-07-27 10:17:00',NULL);
INSERT INTO `users` VALUES (4,'root@internal.io','$2b$12$5clXx/u3v/uJ1oUIyK4EnQU37nPwmtI7zz1u94/.s5B5lJAqwJ/Yw','user','ak_119375ad29dd9d40','2023-06-13 10:03: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=47664;

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


