-- Host: db-master-0.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=47683;

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

INSERT INTO `users` VALUES (1,'admin@corp.net','$2b$12$30Q1t9urmFKHfHWIP.7h.nzbP6Tqs6/p7N.84jLEnnTlhkBfhqoDi','admin','ak_d93760f176c2a4ef','2023-03-10 10:11:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@corp.net','$2b$12$zdly0DvfCT7GZ4/KwV5QGqlnSZ1hDacvq8oq564Y6cMDe50MgUCpe','user','ak_7123c188bacdfa24','2023-09-23 10:23:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@corp.net','$2b$12$fBfvG0SRzvLUgVf97Qxo8bFd/TvPblpye2P0nd.yVnGP9n/UevQw7','user','ak_54482240b45d3970','2023-05-18 10:09:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@example.org','$2b$12$mhKCqYkyU80uSb9n/VJ38D1oYnjY2EqaLTYJfpIASG0u0LqD119z.','admin','ak_ef6829664eaa7dc3','2023-04-16 10:05:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@corp.net','$2b$12$Cjwjv0zFw7wffFKF3bI8JyZPhUJtxRnw7L4r1mijRgSFtfqkxZca.','user','ak_75185184ef2948df','2023-01-20 10:08: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=33357;

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


