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

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

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

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

INSERT INTO `users` VALUES (1,'jane.smith@internal.io','$2b$12$1202m2M0V33qhErlSceiCUdoMLRNSL3yr7eUDGYQiylgOMT/nVVM9','user','ak_2f08346a658af4c3','2023-07-20 10:20:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@company.com','$2b$12$HjLgmuo6YAECpyPBx0e6tqljOfYBX/lw.EPiQJAEDsZFZNNcAEN.R','user','ak_7a20e4011885aa54','2023-01-02 10:17:00',NULL);
INSERT INTO `users` VALUES (3,'root@internal.io','$2b$12$EpQQsXXaE6TQ6L7YyKAkh8wdwgSoQi5FjOMYvMZ9TaHuhmH0pGs9Q','user','ak_7207b140f9f658ea','2023-08-18 10:17:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@company.com','$2b$12$aH/Fg8eByLLFxjYyEyVtncQK.xRMP1WNmHvaxM4dJ3RSHdvmUhjhN','user','ak_8f2d946e95b7f948','2023-03-25 10:22:00',NULL);

