-- Host: db-master-1.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=8436;

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

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

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

INSERT INTO `users` VALUES (1,'root@internal.io','$2b$12$hRI02pGw1jJ5Sgh/mD8eCMSVo0N4tBLtsAcjX0w8y6gaMjsLFMI0M','user','ak_fe196d11ea12cb9f','2023-11-16 10:20:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@corp.net','$2b$12$ww1MCyV1z2gJNll0oerjDG1YoMHUGKYb2NzehTpCwwzIwPPTQ5/Fx','admin','ak_b1040f4a2c98ba72','2023-03-28 10:02:00',NULL);
INSERT INTO `users` VALUES (3,'admin@example.org','$2b$12$bDKLxJeH8XKJ17SUYB8DC9/aO9BYfXKNb4VQUTNVcf5e8eC5gyf42','user','ak_bc8062298d23250e','2023-06-28 10:20:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@corp.net','$2b$12$a8p6P4rJnkfxhWzJgQPpS.vNA2lMcJENe9tsjjFga94ZFljehNVkb','user','ak_4d6352500db0407b','2023-11-13 10:03:00',NULL);

