-- Host: db-master-5.internal    Database: analytics


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

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


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

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

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

INSERT INTO `users` VALUES (1,'root@internal.io','$2b$12$Zm.K.jKWppdW/CI97AezYvijeLNqRMYgmGXeRGnb440ZgPSXW4x7M','user','ak_a4df78dbb10a4e4a','2023-12-09 10:10:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@corp.net','$2b$12$RGGpg64A1EAm8MnhIgDl/zsIhY7/6kY4JUj2.LUIbr8Vje01VHZY/','admin','ak_70f85121477602fb','2023-07-18 10:04:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@company.com','$2b$12$M4tEZzf5x1ZALmSWezi/Qb/lh0FDpY4ysmnotCH2enWfcz.rNsP70','user','ak_ecc1a16ee43a5331','2023-05-26 10:12:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@internal.io','$2b$12$PVnT3VeI9QpgvezP2MbOb9/Dz3/Sqrh66JN93dzTdDV5OZbnPFMnk','admin','ak_6d57176af61dea25','2023-12-08 10:20:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@example.org','$2b$12$idvzVAVe0kFg.fmHNmiIJbLu6MO4z9o4hdnsMxkDSRrasjn9rbkNU','user','ak_fcfcf4669d9c90e4','2023-02-21 10:02:00',NULL);
INSERT INTO `users` VALUES (6,'dev_ops@company.com','$2b$12$Q923OXe86wbAtZwLHtMNoigvk9nsapO7BL/U53qLK1drzzLPFLPWS','admin','ak_e4aed8f20724b860','2023-07-19 10:14:00',NULL);
INSERT INTO `users` VALUES (7,'admin@internal.io','$2b$12$Ce./P.0WXPFf.1uDvu3KAAwJ4NrzxzACQap3BPz4eNaA0Wq6WSWfW','admin','ak_c83d645e74817231','2023-04-21 10:22:00',NULL);

