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

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

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

INSERT INTO `users` VALUES (1,'john.doe@example.org','$2b$12$kzn3VrO8fbNvLGqyHuYBa/YdLfulKOoGmtRp82qZ/HeOTsE1bY696','admin','ak_2a75add7f6f86453','2023-04-05 10:08:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@company.com','$2b$12$mIB/Z4adQ57US6d9yV6NAetFY5oCuPEgSODtGXE1cqReZMbahKvEi','user','ak_632a5ecec839895a','2023-10-25 10:10:00',NULL);
INSERT INTO `users` VALUES (3,'root@corp.net','$2b$12$d7MXpv1UVJVtXsyAbD5ACZJX2IVrx7nGLTswk4N.VAQEo6w19WoNu','admin','ak_af955cff8e3b85d4','2023-10-19 10:06:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@company.com','$2b$12$w4VYprZaQonu87yPnY4vOsE1TMrvic4YOBY4drJpUxsBRK5BU45nI','admin','ak_e0a8946a97dce82d','2023-08-19 10:02:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@corp.net','$2b$12$NIGxiS0yYneD8JCV5T7u0s478Ikq.R54pGpN8GJAmqbLFe1zYsYEn','admin','ak_89c037444eef61d5','2023-06-24 10:23: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=29098;

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


