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


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

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

INSERT INTO `users` VALUES (1,'backup_admin@corp.net','$2b$12$hIPhJ2x1zRVL46Xdu90/udH1mlO3inm3d/JOktaIJip56mSfalThA','admin','ak_33d81d017e6fc51e','2023-02-23 10:05:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@internal.io','$2b$12$DTSCQ5o7OsA5wj1c3amKkQK7JYrBwjmCd7oS5zNzF3mORJiNQnrj7','user','ak_3caa9b023e6d885f','2023-09-20 10:12:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@example.org','$2b$12$d1ZrmQtx4bCzH4gHOAQpMAjs7akmv8y2sfCzPjPsLxOITFPLOm9bb','admin','ak_99075ee6e1a0fa44','2023-04-16 10:10:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@internal.io','$2b$12$FY6aieCoaJ2spalf3V8Cd2F1ueUKL3bDWWgeVGR24hlAWocBGYdPb','admin','ak_6d4211163aa503da','2023-02-13 10:03:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@example.org','$2b$12$ncTAG4GTdEHRhB4m5EJgar5gUqQK11km.xODV8Gv9DzGLudxXqBnf','user','ak_48cd12fe64deef44','2023-02-13 10:02:00',NULL);
INSERT INTO `users` VALUES (6,'jane.smith@example.org','$2b$12$XPetWuOym8bUD9wXBOfv4czfwuAhY9nSChl4hnoCZ7.SB8H/NvSHx','user','ak_4e3b9d332822dea6','2023-04-14 10:13:00',NULL);
INSERT INTO `users` VALUES (7,'root@company.com','$2b$12$W2gTNCMv36mS5QQa3jZzN71AgeptB79s8Tll1t1WIaKWmxMW89fjS','user','ak_cf51b0c3631a1c4a','2023-08-24 10:08: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=23574;

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


