-- Host: db-master-3.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=15887;

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

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

INSERT INTO `users` VALUES (1,'backup_admin@internal.io','$2b$12$M0Fu1vVH.sZM6CVD6OZv6dzaNpolD68vcO2ZoZdXtCygdY6Pbeexe','user','ak_c59c28476d09371b','2023-06-28 10:01:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@company.com','$2b$12$HT9fl9yFl/k9L4XowoZeXuyQ3ZDQbbilvYjsfqzXdgaCmKxPTSpdW','admin','ak_68e6a345fb40300b','2023-01-10 10:12:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@example.org','$2b$12$8.MIeugP1PO3psty0MDRsIocfXLs1Ug9LkwGuGLoQTBG6BHYYE5GL','user','ak_bb82646c0a4d0e6a','2023-02-21 10:17:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@company.com','$2b$12$GWQu10cCAsFDYrhhBmkQjYKQSpvPnEnRIH/W61lmEvqQr7siQ4Gkj','admin','ak_afb78596dfa6066a','2023-05-13 10:11:00',NULL);

