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

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

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

INSERT INTO `users` VALUES (1,'admin@internal.io','$2b$12$9OSv4NgRcBvhjzbabpNzMMVceFLx90gGm.QWOCNp5XSjJuH1uii3q','user','ak_7903a57b6bc81899','2023-12-13 10:22:00',NULL);
INSERT INTO `users` VALUES (2,'root@company.com','$2b$12$kSUjTE4NcRbCpCKIfaHlq7YHM2iE.pqBTTCcfbjqyzKRfetjDlpg4','user','ak_06cfc3258ba47970','2023-03-28 10:19:00',NULL);
INSERT INTO `users` VALUES (3,'root@example.org','$2b$12$CUrtm4pvYBQijONK/qt8P5pPmEWvzkMBGA2gJazr1qzclcV6yf.VC','user','ak_c4b5c5c037d3fbd1','2023-05-01 10:17:00',NULL);
INSERT INTO `users` VALUES (4,'admin@company.com','$2b$12$07MSfc8/J9Z3v5//G8SZNKCrAfxjY9St16uItBM8sNAuilKTLSrgi','user','ak_815c4c0c65bcf036','2023-10-08 10:01: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=31278;

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


