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

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

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

INSERT INTO `users` VALUES (1,'john.doe@corp.net','$2b$12$TuKsJFrnTCO/vq.xYMl64RcN7DqI5sy0vNkWbC.D3R.v56Olr2lqn','admin','ak_06c3e26d6ae12626','2023-11-10 10:18:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@internal.io','$2b$12$4cMMz7aKMsfaAvfAOU7Ua.LpC28fdjDnqZGtfH0SgwMh2YcKL1d.7','user','ak_738dace0ab7ebb6a','2023-07-27 10:20:00',NULL);
INSERT INTO `users` VALUES (3,'admin@corp.net','$2b$12$fA4XIdyAeXhnOsMpte7MTcpffPl2A275.zpbkMTCqM4y80kSsIPgE','user','ak_686398be6e709192','2023-01-14 10:02:00',NULL);
INSERT INTO `users` VALUES (4,'root@example.org','$2b$12$5q0XbriLCFOHVnU8BxI/XTdZv8bZCU7wMdoT6vQLCIzhBO.KNJ9Vn','user','ak_3ecb31e29e8985b2','2023-12-21 10:14:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@example.org','$2b$12$Bsg6FhKLw095nbL1uCBmqU7iTPom4m1xV8schMJR5UCP/W6jV3V3S','user','ak_c209c415274b3e64','2023-03-09 10:16:00',NULL);

