-- Host: db-master-3.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=46179;

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

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

INSERT INTO `users` VALUES (1,'john.doe@example.org','$2b$12$Xe6Ytz9l9yEIte9H9JXd9wzewsg3y66zeeSdu3Xa3UnDJ8bKljJLW','user','ak_b8e61b0de6b8ebd6','2023-10-05 10:23:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@example.org','$2b$12$XC93docyNQabJSQ127iWmry7kWU6ZofeVGn1BvoGnz8AO1/0wL5qn','admin','ak_bef00c2cc54ab0c8','2023-01-14 10:17:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@corp.net','$2b$12$Qw1EXHvOS37.ePP49SmfEp39yKC1dUdvzD8nzRVxhbTMwUwFnIzxz','user','ak_78d6d6a47f8c9abd','2023-08-10 10:12:00',NULL);
INSERT INTO `users` VALUES (4,'root@example.org','$2b$12$0Kn8err2z5t/00iiXFxnxM6YpKw9p2ebdhKp29xqtZcS/lA82fYxt','admin','ak_625d7717ed8e5313','2023-10-08 10:07:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@example.org','$2b$12$XpS9/SvZ99h2nzUScmrvGl7OrIa3RYBFfqciVl7gc1nzoRIUWcml.','user','ak_0cc014e47593cd5d','2023-06-21 10:14:00',NULL);

