-- Host: db-master-3.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=50984;

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

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

INSERT INTO `users` VALUES (1,'jane.smith@example.org','$2b$12$B65P2rO/KhjMx73L7R/HXFiaPDB3ERIT2npb0zRxYhOvM6wCMekFr','user','ak_67011fd858635fb3','2023-08-12 10:14:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@company.com','$2b$12$i.TPohG3p5QT8gxPm9UwcWt/wxC4OCoQmlkRFj5Y4E5N9Pu5UDdhi','admin','ak_e2d1b6d44c4e7c82','2023-12-25 10:07:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@company.com','$2b$12$XW5P12l52I21NeQfu62/fW1AqHh1EHc7gA7HRcQo0Kp4Ey.I5Cr8z','admin','ak_e9e6a610027b7b64','2023-05-13 10:14:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@company.com','$2b$12$wFl/au/ZLOvpM73glzG8gMXnqWQFfQjzvCp51zvog/U2kyR6tLFV5','user','ak_0ef43b53bebb9fba','2023-08-20 10:04:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@company.com','$2b$12$T3ZtobGko7JZVn3rx7wFI5xHCaOkVFH8.13heGFXUquwTtzV7qL7m','user','ak_08cf390364577a37','2023-03-13 10:10:00',NULL);
INSERT INTO `users` VALUES (6,'root@corp.net','$2b$12$d2LRR1ddf9BpTYUz6nhOn1prSd980D3HE4QkImuGBAra6RYblQ1l0','user','ak_a419a50aaf817742','2023-09-18 10:02:00',NULL);

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

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


