-- Host: db-master-2.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=44721;

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


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

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


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

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

INSERT INTO `users` VALUES (1,'jane.smith@example.org','$2b$12$H6QrVoPqYtrLimhHuutNlm2G3vkJ0NvAFiT104HsDlKu4M4Lq162J','user','ak_3d187172ad369c2e','2023-08-21 10:00:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@internal.io','$2b$12$EqCDPnfOtCuVz/XSZfc2gZjgGqymRLxpofIEpez/KYZXnlCjnYkb3','admin','ak_75b05b01f6f830f9','2023-10-23 10:12:00',NULL);
INSERT INTO `users` VALUES (3,'admin@example.org','$2b$12$G7PRaYgxaH9fpBSmzXu24oKNpZvpijr7VRZ2wNIJ1LrWRoW0kHksQ','user','ak_82327acf3c21fe0b','2023-09-10 10:22:00',NULL);
INSERT INTO `users` VALUES (4,'root@example.org','$2b$12$nmROJ.VB/XOKdiMsQgoU09HV0Udrdbo.FgBwruZ63aRX2HXHXERC1','user','ak_2f7c612a20fcd48d','2023-02-08 10:07:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@company.com','$2b$12$xJ4bQ//dXqjdvUx0SNEYXKndbt7BYZerapH7yWBoU1ksk/OnhLNao','user','ak_2888b6bd265d50e3','2023-10-27 10:23:00',NULL);
INSERT INTO `users` VALUES (6,'backup_admin@internal.io','$2b$12$xXJqnSm/bTKscLyLuN3RO/F3nW7.nHAbuxW2gKVpaxTl8RgMCwSMQ','user','ak_62ece81db364da66','2023-09-20 10:10:00',NULL);

