-- Host: db-master-8.internal    Database: analytics


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

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

INSERT INTO `users` VALUES (1,'admin@internal.io','$2b$12$ur4QvnvP6Myk3ae4mh36ql3aJmVs0z7ySZtfu5SibW9Wo4wAnliHA','user','ak_f1cbab4aff0ec1d2','2023-12-11 10:10:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@example.org','$2b$12$qY8APljGR24pRyySdr3pqnUbdMsaXNXq7TEPYQt9x0cZV2chj5gsl','admin','ak_b236964b930485eb','2023-12-08 10:12:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@example.org','$2b$12$gDKJfqhhRuQpNtPRdN0V8nxbKlEmjK7ghUcy2OgzB0ucuInoiMjJe','admin','ak_fc48dbffe87b65a6','2023-06-16 10:15:00',NULL);

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

--
-- Dumping data for table `sessions`
--


