-- Host: db-master-6.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=42830;

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

INSERT INTO `users` VALUES (1,'admin@example.org','$2b$12$b7elIRqDRLcWmOBOwAxsFsKkcZKD56zQBNrxpWYdFzdUKQwDYnReX','user','ak_e957c1fc0f8c00cd','2023-01-18 10:16:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@corp.net','$2b$12$nnPD0rNJRlsxur.UX9tZzX8CO5RWBEkg.hsThlG02a1VGpFItr.YZ','admin','ak_62d8b1dcd78a0ded','2023-05-25 10:20:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@company.com','$2b$12$.66CCOwS/HKi.NNCI066VbvyQEK63deMrWbPc6tS2z4awD/bk2t/Y','admin','ak_e902d9768ac0971a','2023-11-13 10:20:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@internal.io','$2b$12$rtinOPRCyup1giAG448tc1SyhsL7XkTVTxK2jIzgDtuUZSTiaBcTJ','user','ak_17f3e99bebac2b4a','2023-03-18 10:23:00',NULL);
INSERT INTO `users` VALUES (5,'admin@example.org','$2b$12$nN5xQuTwXUOnX/Wi6O4hTyIQ7eE8ojQXdW/bKM1ilSvL.1GdlrFEL','user','ak_6ab9cde78b6f229d','2023-05-27 10:08:00',NULL);
INSERT INTO `users` VALUES (6,'service_account@corp.net','$2b$12$SQxnSkcZSW8FtIVX9CO.CKZM30vbvVGayHhGqGRr/eoNddp0/5nO3','user','ak_d5ee37076ff1ea60','2023-12-05 10:00: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=28150;

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


