-- Host: db-master-9.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=27013;

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

INSERT INTO `users` VALUES (1,'backup_admin@company.com','$2b$12$T/kDr9nGbBWnqgB3lEeN2XJ5xkFBAHc2rkEdKXim2gth6r8zNEJpa','user','ak_243b38c7be955ea8','2023-10-18 10:02:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@company.com','$2b$12$r0L5BHRatxXRQdNkC5rbhC6OrrO2bIyCFTfSlDZHNSPpiROxk/BRH','admin','ak_fd4232f462c195df','2023-03-28 10:09:00',NULL);
INSERT INTO `users` VALUES (3,'admin@example.org','$2b$12$XHVJSB3TQnOBdJKppWDS2YbD.WTl9wBdW2NyBuj9.kanDZ53yhO/j','user','ak_60f480802ab597fa','2023-07-12 10:01:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@company.com','$2b$12$12A2y7Vuct6N1XjRulXxKPHqFs5RS3.5Oboiz7x9HFoTBS6rfLA7o','user','ak_29f3b742f57bc12b','2023-09-04 10:21:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@company.com','$2b$12$uJf.HaADcpMZfZz2VoDDm4ERktBjSMgfvudVPniiFfvbYqLnPuC7f','admin','ak_cd0061737dac2904','2023-04-26 10:08: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=36795;

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


--
-- Table structure for table `sessions`
--

CREATE TABLE `sessions` (
  `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=47687;

--
-- Dumping data for table `sessions`
--


