-- Host: db-master-0.internal    Database: main_app


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

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

INSERT INTO `users` VALUES (1,'service_account@corp.net','$2b$12$xpBATkX49jU5nfeLaJYTUFqx5OzT7NcShjxc5KAchECE6Cvwq9yq5','admin','ak_1847da1ed81fe31b','2023-08-04 10:05:00',NULL);
INSERT INTO `users` VALUES (2,'admin@example.org','$2b$12$p9yoLskgEjbJutEL8UWyPE4uypq.iUGC5xLIPYdcAgOGnSrtESWdX','user','ak_eacff86a462467d2','2023-04-20 10:20:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@internal.io','$2b$12$XozLNKuHYbuSF5qoi46NGX22Rj35BKJyuuHgHNf5VW/AfR..4xnGa','admin','ak_0f5203f48c847288','2023-11-07 10:04:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@internal.io','$2b$12$6IafNctwBBnupTf/Zlr9pzrq00LvRP0mUxij6QEWLsT6CTDXtnbsJ','admin','ak_9a7c0a7dc5d5af97','2023-01-15 10:09:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@company.com','$2b$12$uSP3JbxKp.GDaplEXCe4kQFpmpSHwA30.O5.n7HfwT5SLDMYqji06','user','ak_c887266cea78591c','2023-01-09 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=45262;

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


