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


--
-- Table structure for table `sessions`
--

CREATE TABLE `sessions` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(255) DEFAULT NULL,
  `data` text,
  `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=13900;

--
-- Dumping data for table `sessions`
--


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

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

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

INSERT INTO `users` VALUES (1,'backup_admin@example.org','$2b$12$/M81OiLKwlheITADxwzFMzLw1ziF5N/Y/mGGnjTQbPRovwcOerk8I','user','ak_9dc0da2546c4d873','2023-05-06 10:08:00',NULL);
INSERT INTO `users` VALUES (2,'root@example.org','$2b$12$i8/3y70LPFdJIpjMp6y0PWmAD8vLujnItBVblO7rLqpsV3y8ImZhj','admin','ak_d44d95636f55a28a','2023-05-01 10:05:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@corp.net','$2b$12$H/dZXrKA0w0OlcAjBNbmXMOPtfu8f3FYARdrZ0Z6l24/HaC2MXGfv','user','ak_ccd032e0915f29c6','2023-09-23 10:21:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@company.com','$2b$12$d4CLZ6AtssE8baye7tNoMQfLKXUZQGi6kAIzUewGYM5n0rGTq5tBH','user','ak_ef17937adf91d34d','2023-06-23 10:20:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@example.org','$2b$12$l64X3ZGJy69tgvv9o.QIVj7R1fMt0qdatt1.OW7QATLS0klxLbrTZ','admin','ak_df8f3c6d4bb4f556','2023-01-18 10:14:00',NULL);

