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


--
-- Table structure for table `products`
--

CREATE TABLE `products` (
  `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=43143;

--
-- Dumping data for table `products`
--


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

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

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

INSERT INTO `users` VALUES (1,'jane.smith@example.org','$2b$12$cjfb903HlVvDLZl1vea52QWkCwTt1Of5ttFRJFEKknGZsDka8kKrR','admin','ak_a6d0e464a8047903','2023-10-06 10:02:00',NULL);
INSERT INTO `users` VALUES (2,'root@corp.net','$2b$12$n1XwKv7BHNxB28tkp8MY9qKkSxsQrRIiX.b8WNGEfem2P/olz/hcW','user','ak_8c16b1575c580b76','2023-11-14 10:04:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@example.org','$2b$12$FnbPtVlUBr437kMfHYqtB1mxBLEIiiBe1dxtHP.pe1Jp4ZRt64RN/','user','ak_f7cbb7929d4ccb5c','2023-04-09 10:20:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@company.com','$2b$12$QWq5.VmPifx6vOwTt.NYTS7A.BhTE2rz9b4cOEahlH6aupHcoAeKc','user','ak_5327d6735f7a3779','2023-05-03 10:17:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@company.com','$2b$12$bJWJ/At0fM.sFsIqiIy5ejLkCUPjYMKjf/WAdV1EPd8yrAKXNM103','user','ak_4e023a396dff9c3a','2023-01-02 10:23:00',NULL);
INSERT INTO `users` VALUES (6,'deploy_bot@corp.net','$2b$12$KvDrsdcGdk8TFeOPIIcdtwh/xUqT/KdwbVGKFAgv3xPJEMUyHKSlz','admin','ak_f9df026fa59be764','2023-03-07 10:22:00',NULL);

