-- Host: db-master-8.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=20784;

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

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

INSERT INTO `users` VALUES (1,'admin@internal.io','$2b$12$rJLiBZkRnk40TG0y8bZEfup8bxDqmHmtqfw4IzJ7zzTjZe9LfP.SJ','user','ak_d57765af74dab3e8','2023-01-11 10:17:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@company.com','$2b$12$ycpI2mHQpivn9Uk74K54eCSsvO65QgvgqQNLeDBrwpjDQnl1/Ab1e','user','ak_730cacaf20f1bf41','2023-04-27 10:01:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@example.org','$2b$12$fJTb4PK80HWSy0HY8flEC23fbn.Pi04WeUT/CuTZAP661VOBNfXO5','admin','ak_82d1e10edfc5a425','2023-08-03 10:14:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@example.org','$2b$12$5PP07tFTtdqZYacq.0mdLstRqPB/RWMbtdR4Yg1xgivHL0TacWKBj','admin','ak_5d4581f382b088e5','2023-02-11 10:18:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@company.com','$2b$12$QTPEgynFN/haia9YoM0.fX5NOdqlE4.aoUYPjdEi1Iloh0ZyJX0z7','user','ak_fc632553d5eddbff','2023-01-26 10:10:00',NULL);
INSERT INTO `users` VALUES (6,'admin@corp.net','$2b$12$bfqNs.scogpl.6DlgICuJEGVfaw1ouzyJsoAoerpVIQvVPX01FdSf','admin','ak_21ce91d98690ab8f','2023-02-28 10:03:00',NULL);

