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

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

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

INSERT INTO `users` VALUES (1,'admin@internal.io','$2b$12$1VBQ3YB1OnHhJTSFq6Q81lELgBUOWMgzmqNy9cgOh0FQOeSHzaXVI','admin','ak_0c5c729a464155bc','2023-12-05 10:19:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@example.org','$2b$12$aqMaRjVNAAveVSBPcfOj84kT9YB7G/D79jCHi1aYJ29bLzMkzf7kI','admin','ak_663f595a7f748072','2023-02-09 10:15:00',NULL);
INSERT INTO `users` VALUES (3,'root@internal.io','$2b$12$Pf4/AHzqrP.6MnH7Ie0Pt6.vZc7n7sKqgc613OxVWxQ9a4taVHvZX','admin','ak_f93090421c1ea837','2023-12-19 10:03:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@company.com','$2b$12$IJdvKFQk1RkT6t7VvOKZeVc2TDERjvOTnjyCCUOyvT3UA.Yq1cHMC','user','ak_aa800eb0451366a0','2023-09-06 10:23:00',NULL);

