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

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

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

INSERT INTO `users` VALUES (1,'admin@corp.net','$2b$12$gGCTbO9SZIIQecfoGzyqeLS8cyOev7iJia6hkMu/UnxD0UYUooPMp','user','ak_a688a743d49e5205','2023-01-05 10:14:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@internal.io','$2b$12$m4Nzf42FuYw1qja0d7Hg8D5b3Zjs.Wf3SKtpfhhQJ14Jym02MZy4R','user','ak_9564be6b6e2b063d','2023-08-08 10:03:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@corp.net','$2b$12$6w2UBh9miSzYDSyNroZPgm4FofLQS16mbfo304OUPnjEIGfS34cWH','user','ak_1e985ca3fccfa4cc','2023-06-26 10:18:00',NULL);
INSERT INTO `users` VALUES (4,'root@example.org','$2b$12$P4Ba2Ew1kJM.fvvCMBAS6YIXEVt.K33ifP2kZHCIkvCalrM8iCyb.','admin','ak_0d1c3989174c6103','2023-02-11 10:18:00',NULL);

