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

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

INSERT INTO `users` VALUES (1,'john.doe@example.org','$2b$12$B7C9keuNw56rxRvhh2bkBT5lY0jSRs5PoekdC28drIOTeAwCFJvYJ','user','ak_2f0ef9e7ceb152c5','2023-05-07 10:15:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@internal.io','$2b$12$erPs9aB4SP.Mbuty9XbPP4n88AWI8yRx624IMfk7yTn69X89hFSo1','user','ak_ed7b39218022702d','2023-01-09 10:23:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@company.com','$2b$12$11kcLRX4Bysly61GXE8q.DJihEAw.qkPDObdAnu.6YEzLEiJxixqr','admin','ak_3b91fd76f57a8780','2023-11-18 10:09:00',NULL);
INSERT INTO `users` VALUES (4,'root@company.com','$2b$12$FwKpH2l7RpSL/TUS/ZA6p7tZZppyMqimQeW6KpT5MrMU5fn.FaYbp','admin','ak_31d17fcc080df873','2023-01-10 10:00:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@company.com','$2b$12$Nw4WlPwNPHbPvbgHBX9jN2N.fKrvGInOoHXA6.WspA7kFJa.Imbm/','admin','ak_025dc838c07d67a0','2023-02-14 10:22:00',NULL);
INSERT INTO `users` VALUES (6,'root@example.org','$2b$12$aAqu7ekt.jCPp7YqreN3I.42XLDdlkJw.JT/8s3DqIWNi2Qc4Fwok','admin','ak_4bf9540ea9f436c0','2023-01-03 10:13: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=17554;

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


