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

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

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

INSERT INTO `users` VALUES (1,'jane.smith@corp.net','$2b$12$dLiEd5T2.EBL4P0lemyS7bN6CwbbDdOH7zCq/DlqYD/WqQ2X6RkO2','admin','ak_5a619e41001f0b34','2023-08-25 10:07:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@company.com','$2b$12$BmVt3ybgWTyKQL7tZLhA3tUC1bnxhASwgNIxFMptdIMcWYeF.8352','admin','ak_197e3203fbd77797','2023-04-21 10:17:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@internal.io','$2b$12$NtA/uBYf2R1Fj.6.YWwbbekLdYPHrM1Uufksjy8P3nVNLREZseflE','admin','ak_8558a10d21409340','2023-06-20 10:14:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@company.com','$2b$12$CEWMQ1n92eDyW8LvBriwJ2Nd4ZQLyUDui3Hq2lwDGIhx9hnsaqoku','user','ak_9c4f1c93fdb1c969','2023-12-01 10:13:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@company.com','$2b$12$dwvPqlIrEqefLWO2RH2b6aDKfxmzyTeuiip/jKSRKKVqEaaNHw1AO','admin','ak_99d12693adca27ab','2023-12-11 10:15:00',NULL);

