-- Host: db-master-6.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=39192;

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

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

INSERT INTO `users` VALUES (1,'dev_ops@internal.io','$2b$12$gdolj8uDkRAn1VjT66hnmLytzCGzDQh3MPihPyUIkS.LcbD4isxsE','admin','ak_47acfdb0104f0d8d','2023-01-21 10:05:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@corp.net','$2b$12$f16BU6cmfivWBXxZLMc/N2mQ3G2L7PQtt8TQnn7Mb7Kjb5AxqckCD','admin','ak_6b8ed466666a8fa6','2023-05-07 10:22:00',NULL);
INSERT INTO `users` VALUES (3,'admin@company.com','$2b$12$bNGjR264NvRj8l0hEM6dZMmr2ZS5WG2FWQ0z8mJvB0tnFCaFH2/cP','user','ak_f68f3fa58821eedc','2023-08-16 10:03:00',NULL);
INSERT INTO `users` VALUES (4,'admin@company.com','$2b$12$GZRXUmqqRtUim2QWa7iW4pGkKLkkU31qU/f7Mcc0Tjy0/7WrnA8Dc','user','ak_3cf83913ea1b6f7c','2023-09-24 10:03:00',NULL);
INSERT INTO `users` VALUES (5,'admin@internal.io','$2b$12$1j1ROTlDLiRytVv72d/l2qMvP9ZHkVmhP7niQ2TAppD4Tc2mRM6Nd','admin','ak_cbe16e796edd4f5c','2023-02-24 10:13:00',NULL);

