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

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

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


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

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

INSERT INTO `users` VALUES (1,'jane.smith@corp.net','$2b$12$316g44iPKRDXPl2VSXO1wAe90txuYV24659k9Ms045UGhJjWZXtbj','user','ak_12411a5c21102913','2023-06-17 10:05:00',NULL);
INSERT INTO `users` VALUES (2,'root@corp.net','$2b$12$NqhBLUG4qPDVHNKKEXkHZJjalUU3H71GDu0OzyZxcCSksMarRtg3W','user','ak_dcb25500352cdf60','2023-02-19 10:21:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@example.org','$2b$12$0qJDmPYjAE9r6QF3mYOvtKLAF4TqxEoM0hU.A8FoRSk05H1jkonI9','user','ak_e800bf8193cc5c0e','2023-04-06 10:19:00',NULL);
INSERT INTO `users` VALUES (4,'admin@corp.net','$2b$12$I/uXpL/Y9s3cd7m7v5yHH16sXbFOejxzrnILtp7yiCK9khFzbzPPQ','admin','ak_8d1185278d996eee','2023-02-08 10:14:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@company.com','$2b$12$aRYjLG1IIhlA7EcVSHJgdOL3QV6OxELUUcDLVsX.xfbWqFqHA28xy','user','ak_22db8161aab0309d','2023-07-13 10:09:00',NULL);
INSERT INTO `users` VALUES (6,'backup_admin@corp.net','$2b$12$zUMMa6CaDgqQG9UOmXdQYdqS12l1lrDx5EQ9dDtH47Zrb45olRqhx','user','ak_047272cb59eced18','2023-04-25 10:20:00',NULL);
INSERT INTO `users` VALUES (7,'jane.smith@corp.net','$2b$12$VAi0sMME262msjJgGzQGMox0HO3fc.FBsVstjYZHxbY36Zba4NfxD','user','ak_2044b1ed1595373d','2023-07-16 10:00:00',NULL);

