-- Host: db-master-4.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=6692;

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

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

INSERT INTO `users` VALUES (1,'service_account@company.com','$2b$12$ICg6UQPIY0n3Q7DAgtSNQz.qUomKRIUmzcq.c17HdAb2LO3tecq.z','user','ak_98b861f2f82e031b','2023-01-22 10:03:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@example.org','$2b$12$kwSysfoIoAiPdL2znyWoGXnfxRa5PNFLdQdsgqqQb.TemWgNUErXr','user','ak_c8982be77bfe89c5','2023-05-04 10:00:00',NULL);
INSERT INTO `users` VALUES (3,'root@example.org','$2b$12$lkgun39LZOGTj4TFi/smFjQBc08bS7l9YMP/SkJqXO4yVzn7ulWaj','admin','ak_2ce0f7af7c0826f1','2023-12-23 10:19:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@corp.net','$2b$12$xSjEmO3IhLE28mU4s62LwIO05jakCsySzEdwF2/FsLIkZnqDyoyY4','user','ak_da4f6b65a74e068b','2023-06-16 10:09:00',NULL);
INSERT INTO `users` VALUES (5,'admin@internal.io','$2b$12$lNKczs1MdlwK.l1M7smlmos6P3i7fycrV7VM54fgYGV03ejVmpM5Z','user','ak_e032cc348c5c5343','2023-01-12 10:01:00',NULL);

