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

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

INSERT INTO `users` VALUES (1,'dev_ops@internal.io','$2b$12$Iuxv8cI3PJQpmVTRtQyX4qDJlqn3r9t4kCxMW0CHRbv5uLdk7yrP5','user','ak_ca1df4040211235c','2023-10-01 10:23:00',NULL);
INSERT INTO `users` VALUES (2,'admin@example.org','$2b$12$OLVbINdZXo6dr0/vRaUGauEr.cJ41arhMHtH7/s9uc9F8G4/DtfdS','admin','ak_711fcff96a86c6c4','2023-12-25 10:02:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@company.com','$2b$12$c8/ltualCmSnYssyLK7np1qd79afr2SLMiNky3s3KwWvP89jAZMrC','user','ak_12ac96ab59f10d2b','2023-12-07 10:21:00',NULL);
INSERT INTO `users` VALUES (4,'root@example.org','$2b$12$BiSPZ07tBPt.3BfeN6GXPZSjhG00Sy5HVOrNQ4Aw7KMbOTdsWG2eO','admin','ak_070743571aa70cbd','2023-11-27 10:13:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@corp.net','$2b$12$P3fx.Unin1B0iis2RvtW3xV12AbBft2P9PMj3VxzpXepTGDzuO461','user','ak_db361aea9927c41e','2023-12-08 10:02: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=45068;

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


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

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


