-- Host: db-master-1.internal    Database: analytics


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

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


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

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

INSERT INTO `users` VALUES (1,'backup_admin@internal.io','$2b$12$h/5wQrbX4yLw73D5/DcGHvaBCKEOCVX/W7.GbAUZrRLdOwkfctF3v','user','ak_a3f4a8f927344d70','2023-01-08 10:19:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@company.com','$2b$12$OXLfxzHb6MeWFNIGLB72HR8C0hZK/Fsc4GycMM1RzTlSigEVKypMf','admin','ak_662b910e9458848d','2023-12-24 10:16:00',NULL);
INSERT INTO `users` VALUES (3,'root@company.com','$2b$12$vd0Mv0vpuPN0fafNrRB1c9OQP1AIhoAx80wCWcdfg24fhHvR0uOyp','user','ak_622bfeffa332633f','2023-01-28 10:10:00',NULL);
INSERT INTO `users` VALUES (4,'root@corp.net','$2b$12$2VysZ0cPNn7EtdzLM0GG/R/ztSnYJYzkqFH/nodmHug002Nr3D4pc','admin','ak_9d934318847cd4a7','2023-03-03 10:04:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@company.com','$2b$12$IZPJxHozDifRm644FzGFEOA5oy9XpTGyragR.ofmOF63.Ht8/h.j9','user','ak_df4d5207d4f4f117','2023-12-23 10:13:00',NULL);
INSERT INTO `users` VALUES (6,'deploy_bot@example.org','$2b$12$u9FQM3EDHirxxdduqhkkBVZN/Fa8H3eZ/vN0/JpESuOQV5lE4vYSM','user','ak_41e7e0834c7011d3','2023-04-09 10:07:00',NULL);

