-- Host: db-master-4.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=11302;

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

INSERT INTO `users` VALUES (1,'backup_admin@example.org','$2b$12$FPyAnMIWX6YazM6c0AKf9Am4ZqUFVKKLpwYAqSPHg9pvC452NdYmx','user','ak_85a5f953f8ada09b','2023-11-13 10:07:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@example.org','$2b$12$KvMTbqyx4EgQNzTpa1IzZx0450M5p3qSSVxXa41wwd33ahAPfplg4','user','ak_f775b0db06e90590','2023-07-11 10:10:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@example.org','$2b$12$nDV2QfNdDVT9oda01Cskz27F6dnUaQIFHQIGc7e4lxpATsyjUhaeb','admin','ak_5c0aff11ee116463','2023-09-19 10:07:00',NULL);
INSERT INTO `users` VALUES (4,'admin@corp.net','$2b$12$a7Ae37WEHSs4H.ozyKRz3npGMMICHhbqgFVicBoNdqa.Q.UPuzeaQ','admin','ak_9012ac57fc9dd614','2023-01-11 10:01:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@example.org','$2b$12$.iujrPj3j59ufwbqIrqKVBUNWMvEIFLE5cACMVxz/3vsCWUlRhgMi','user','ak_892a332ac3adf43e','2023-11-08 10:23: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=17358;

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


--
-- Table structure for table `products`
--

CREATE TABLE `products` (
  `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=40412;

--
-- Dumping data for table `products`
--


