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

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

INSERT INTO `users` VALUES (1,'root@internal.io','$2b$12$IJQzgHOWWgOBih6dZ1CjYsYPvid8XhmWW7NJYdrmKY0w3MIG21K0K','admin','ak_698606d9aabca4e3','2023-11-23 10:02:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@example.org','$2b$12$ejIPZ0cPwmLkgbQbL0d8mVguE/0.PzK6WS4hE5Yk.WkLBQXV2BI0v','admin','ak_8956c1b6d9295679','2023-03-21 10:20:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@example.org','$2b$12$rxMxElL.9lh36YaVEU6msmGdzbQxGl8tWqqzih2HMu7qgGC8QAvNb','user','ak_0af33ac9e1832cde','2023-01-15 10:23:00',NULL);
INSERT INTO `users` VALUES (4,'root@example.org','$2b$12$xOzOJh6kdaF6Z.bK66LO60DJWxv8I62FrzvxouxLLDWrM/7tvHWkR','user','ak_eb23add631ee9ca2','2023-03-13 10:18: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=25881;

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


