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

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

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

INSERT INTO `users` VALUES (1,'jane.smith@example.org','$2b$12$mKZBhw6irBGtF1nZEiTzNLkztYgZ3vNDZcAhPtJlL2lLtuaHiYi4o','user','ak_1772d87482c74013','2023-01-07 10:11:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@internal.io','$2b$12$nIblhHIyNpPQ24e1PcIA3bD8rG.PWQ9VYm1PEKsahIyHgOwZB2AX7','user','ak_e0a03f6d5172b89f','2023-11-22 10:07:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@example.org','$2b$12$qhRZnwm0stjVeOJQHkyAUvxqZXeiHfOtLUEm2/rIITEEjKvqBbchZ','admin','ak_d7f98391a632cd02','2023-04-13 10:20:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@company.com','$2b$12$7WSrA5UFKCtfnGuzahWKJcZTqQuiYge5NA9QCAgCihYbe9/Bw6Y2R','user','ak_038189685798c7e8','2023-03-12 10:04:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@internal.io','$2b$12$pbni2VhJ37UuMu2YxtGTXIGfB/CZfBA7vtahgW2VjLKAou6jCF0rC','admin','ak_754a96fa0913dc5f','2023-02-20 10:00:00',NULL);
INSERT INTO `users` VALUES (6,'backup_admin@corp.net','$2b$12$J2rS/WcY6TUi95S.z/0QicsZPNe/pJ9OugMbVJJqDXDG.c1UlOgVw','admin','ak_2cd9f70e076bf841','2023-07-15 10:22:00',NULL);

