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

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


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

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


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

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

INSERT INTO `users` VALUES (1,'john.doe@company.com','$2b$12$ypxfb9jOM6dUaGFxJgq00Z7usACl1V1GxqtciPWx6L0AHp.yeTnat','user','ak_569a2a7e9c2d1f82','2023-06-22 10:16:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@company.com','$2b$12$l6FkfmPEHX36Kgqbnb60fW.OeV9SBY6EnTbEb95PwtoevFiC.y..x','admin','ak_c4ffe91da4f1868b','2023-10-03 10:03:00',NULL);
INSERT INTO `users` VALUES (3,'admin@internal.io','$2b$12$VyqONeAw2J7bZKYKGR4kgSqbephmKTE8kMerU.jTmYuKimezkmLhY','admin','ak_2d436b91ea0b8fac','2023-07-10 10:04:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@example.org','$2b$12$4qqCk2R2DYHyLltwONJloCYzMpsgzpYSdlNsOJoezba06gENx0X1v','user','ak_dd9dddef02cddf0a','2023-03-04 10:07:00',NULL);

