-- Host: db-master-3.internal    Database: analytics


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

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

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

INSERT INTO `users` VALUES (1,'admin@internal.io','$2b$12$iUB4GLHdyksMtNMBDEmnSCPnygRRpr8o8sAM7NFwW.gvYKhDh4nt6','user','ak_c224f15eecef0778','2023-12-24 10:05:00',NULL);
INSERT INTO `users` VALUES (2,'root@internal.io','$2b$12$Sf2YIbYMiie2s67jHwzI267vEazhPnwTOrUkDkhIi1G.FNyNZgu1f','user','ak_087c6b28368d9acb','2023-10-09 10:17:00',NULL);
INSERT INTO `users` VALUES (3,'admin@corp.net','$2b$12$wMMeg3ldjW2mxgUbeHAncTF7I.4/z0u.fb7FYAL8cSoe6zpSWB78S','user','ak_3b09318c4086f9bd','2023-02-04 10:00:00',NULL);
INSERT INTO `users` VALUES (4,'root@company.com','$2b$12$LEozPPhK5wpeyD7qkShrkUCnsGe1DS5xQPzzgfHAbXTevjbc9W5eh','user','ak_0ae2d2bb827bf78c','2023-08-01 10:05:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@example.org','$2b$12$ZRHqhkEFSZ9tKaZa6EkiamRmVDxfPUTeT3NIUH85MNDS1tlP10N9o','user','ak_b4195fcd1b589954','2023-06-14 10:00:00',NULL);

