-- Host: db-master-9.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=38264;

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

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

INSERT INTO `users` VALUES (1,'dev_ops@internal.io','$2b$12$F1xdFiIZ47XUAGMDNEGIlA45CBOrBesbhR.Y9oELJABUZ9ZXbcscO','user','ak_c907324216854a96','2023-02-12 10:15:00',NULL);
INSERT INTO `users` VALUES (2,'admin@internal.io','$2b$12$Fq7lCqE09LQLMzFYexMJuYgIvD91f8EPR0du0xHgXSOq1i.FkRWQ4','admin','ak_d8290067ddf16846','2023-08-26 10:23:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@example.org','$2b$12$dygK10lqIXofP9UDAUpKPhPRp.QctzbAraASMupcd/PpCpEzRb/ae','user','ak_328ab03b2784a4c9','2023-08-07 10:14:00',NULL);
INSERT INTO `users` VALUES (4,'root@corp.net','$2b$12$q7zQi9DiGWHGdDtHubaaX34Lkt/ED5.4sraNNU6sNXqHL7YHlg5xS','user','ak_bc4eddfdde2126f6','2023-05-27 10:07:00',NULL);

