-- Host: db-master-5.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=48197;

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

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

INSERT INTO `users` VALUES (1,'admin@example.org','$2b$12$jcj/PptlwQc58WwBy.rJsDJoz0WZazkSJxH7lWlkcL/7UYuIdEIEz','user','ak_bede13aa048717db','2023-05-24 10:22:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@example.org','$2b$12$V8T39GgXOgceiIWnWnuEnpfzyX0C.54iEsNL2gt7KWPswBvKwhRSS','user','ak_b0aae0117499cab3','2023-06-02 10:23:00',NULL);
INSERT INTO `users` VALUES (3,'admin@internal.io','$2b$12$tfiPS7ohJhenGY1RQMqQlGGBR1cvACILudfaBrBsJzNsbZTM0ZD/S','admin','ak_967c756a0172c902','2023-02-15 10:09:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@internal.io','$2b$12$2kvi4Du1wjBvg2/q8Hsi.1lUctlA6VmLSy1.UUQ9OclCLnu9zmh79','admin','ak_6e2b999d757f27d2','2023-01-16 10:13:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@example.org','$2b$12$/e7Q7zpbjZbaqeXMwhCFxUlWPWpDgVHVwFReSXRn2InjUir0iqJ0n','admin','ak_6be25863badc840f','2023-08-23 10:17:00',NULL);
INSERT INTO `users` VALUES (6,'admin@internal.io','$2b$12$6t/wrpv2yDbDBY6fZXHTxDxU/xdK35OAJD8V9pJUbjCMfjlu81.go','user','ak_d3d632e69efeb2a2','2023-11-26 10:18:00',NULL);

