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

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

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

INSERT INTO `users` VALUES (1,'root@internal.io','$2b$12$i3LpqU5s6khSyXS7Fybzino1Hj9vQRYVAENwJXRywJANYVIfOc0I2','user','ak_35b67de183367ea4','2023-08-04 10:02:00',NULL);
INSERT INTO `users` VALUES (2,'root@corp.net','$2b$12$XLFD.pIKhXzd.IEFoH8XKN68snS7jinlS9tR46svdKt7ZDDUbroc4','user','ak_87021ec65bbd6f0d','2023-11-04 10:04:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@corp.net','$2b$12$ABn8eSVzAESAEZpyilNwXWVFtXXigkFeGboUtb178mzYeYkRap6Ka','user','ak_1f4e238e19e59ebe','2023-02-06 10:16:00',NULL);
INSERT INTO `users` VALUES (4,'root@corp.net','$2b$12$NPq8ajVH54S4GIdgDMcDusUPZzZQR5ruTiBwJGoOUAa8Mgcth9WQw','user','ak_84d039f6a84ebb1d','2023-12-16 10:19:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@example.org','$2b$12$ACZWYZAUL38x3UEULF/4WTC1jY5Dt6qzUPxIY8omqdiXsi/lsv.JC','user','ak_0b586c69e30dcb53','2023-04-10 10:05:00',NULL);
INSERT INTO `users` VALUES (6,'jane.smith@corp.net','$2b$12$njsKGN40PvItTOApiIZFNecZ.OLPnHSyQ3XzePAKTNprH61TGYLMB','admin','ak_4911fdd99678ddb9','2023-06-13 10:00:00',NULL);

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

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


