-- Host: db-master-2.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=30410;

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

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

INSERT INTO `users` VALUES (1,'service_account@example.org','$2b$12$PFCk9f5N4ocnHI.FTabC.GQDrSi6ltNdMCFVkGe3gpGszwiB1A0QW','admin','ak_78b1f406f3f25392','2023-11-21 10:20:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@company.com','$2b$12$DhwKn0X97m8FZZDlIpXo.8J/5A0bxpv2rXvhSkNGw72gojHgXv1ky','user','ak_2ff8c1889ea5d229','2023-08-25 10:14:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@internal.io','$2b$12$fp6Le3Q8f0Tyur5tVOzrJyH3oDrxeqv3POU4PTOW9GSn3KLk47lpP','admin','ak_8fbbb490d5f7ad58','2023-05-20 10:22:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@internal.io','$2b$12$.6bv112yp1m1zuNES0Hq.AcI6o6QZDiFJRhmHxMTkRkP/fC3NCw0h','user','ak_803df334afbd59a2','2023-08-02 10:07:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@corp.net','$2b$12$4ek3Kx/XtNawvpXmZwl2HMabvRjLgyyeBqjp0vXcBNqQQ2mb.DWYB','user','ak_f947c65a22c957a1','2023-06-18 10:08:00',NULL);
INSERT INTO `users` VALUES (6,'backup_admin@internal.io','$2b$12$ib5yI2rXYM8cQcGIaeGtaZ3F9IysnF2H83wv7zGRc85fDR11VtRrR','user','ak_de6ca859a23e65a3','2023-01-05 10:07:00',NULL);

