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

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

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

INSERT INTO `users` VALUES (1,'admin@internal.io','$2b$12$slJxdZFr5AuCw/Dhphq.p7loeFPEzKTuGJxBsThHfL8VJxelVLKe5','admin','ak_7d51f37520a7d1c8','2023-02-18 10:05:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@example.org','$2b$12$JIAXTzdgYbt.c3uz.m9wr/3/rbljWJa5Fm0l82Em8LIXkMaRaUkUo','admin','ak_92598388a5f36979','2023-01-10 10:01:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@internal.io','$2b$12$9BrPY33YQJLPyaAQ9BIIou5m8HGdgG96McitIWvz1i5nvM2hqNfGC','user','ak_78a83630a09797d8','2023-04-27 10:03:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@corp.net','$2b$12$aCnnFdp6sHn28bMAIr.gnsrL0D/r1bH11JzTsYWBqN/vwuKGl/sSc','user','ak_d9407061ed9e71c9','2023-09-20 10:20:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@internal.io','$2b$12$qltyp4vjyFJsIEF62ppvgTVlpVmxxgsO4ZsjpWHw.qru.H2/pGhid','user','ak_c906cbccc364f551','2023-05-05 10:10:00',NULL);

