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


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

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

INSERT INTO `users` VALUES (1,'john.doe@company.com','$2b$12$5D24z.c.FfGPBOseMC4srAXqbKwhE6YL0pHJFi2k2/Dwf366xL/SH','admin','ak_67b900f9fbbfb7f3','2023-02-22 10:18:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@company.com','$2b$12$EXmLUqIpQNzJpP32X5daeBh/Ir.SK40oVZNYJ.vv0mm9RH04YqxzD','user','ak_0c9fc3aa8c8f76ec','2023-10-25 10:23:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@company.com','$2b$12$qyNnf54Fz9MN8lrhYpDFCvp1cz.qvUfZglj.XG3Vod9LvMiNFmKSS','admin','ak_676050d2eb37d536','2023-10-23 10:11:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@example.org','$2b$12$RFeTBGDJV3ke4VosXhEEwkYIX8ubjvgZs90dije31MAuFIlKRq4aQ','user','ak_2d40baf73263bf2a','2023-02-23 10:11:00',NULL);
INSERT INTO `users` VALUES (5,'root@corp.net','$2b$12$SyHcLaoulOp1SNwLxbWuF4JGjZ0q.mG76IFkmsDdPl6am7LQ2ZfCq','user','ak_203a286f8e6ad818','2023-12-12 10:12:00',NULL);

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

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

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


