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

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

INSERT INTO `users` VALUES (1,'service_account@corp.net','$2b$12$ZGfHdMkjqaKg4jpHCvilGNGhr7impTzdb6N7lj0wG6ntC4PwXP2wz','user','ak_0a43b7361d67c476','2023-07-25 10:18:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@example.org','$2b$12$WdAtrYdvBkG.b2glzTLLbf6wQNPmk6Jd1zzZL4T9I2/.WLketuyij','user','ak_edf03143667d9db7','2023-03-05 10:17:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@company.com','$2b$12$OP7QsJOLV0s.rHdHSpN7lW1GxH6EkdkPuQLIAoTG0W/9wg33kP2mg','user','ak_e251dc639c816657','2023-12-01 10:11:00',NULL);
INSERT INTO `users` VALUES (4,'admin@example.org','$2b$12$9cwuWfGeKS7CRNy35GmBlpeZc8Eg8Z/t.N5CK43qEY5A5p6c.Py9F','user','ak_7abfcc2c3ef1e7d2','2023-11-10 10:12:00',NULL);
INSERT INTO `users` VALUES (5,'root@internal.io','$2b$12$1ozjF9Kpc5MGLaknU39l3MZlaSi8iB7AMrUBRKaDddNtEoawWqH3f','user','ak_adb9bb98e987d906','2023-11-09 10:22: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=24968;

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

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


