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

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

INSERT INTO `users` VALUES (1,'root@corp.net','$2b$12$0bsBfZZ0eTQiyhivLjcPr2YMSMJsqzgGz/QbCeQRZMYG8MrLDph3T','user','ak_1ba78f3e5e969342','2023-06-05 10:10:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@internal.io','$2b$12$g1IA4RnU3xYb2x7M1DLHL1H7iC2FxD9FoKlOarGHkyqdTqHyrTx6Y','user','ak_a35c31c19fd2b4c5','2023-05-15 10:22:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@internal.io','$2b$12$hgwKQkhXQF6GEo6nE7A/oXTqqblbO697ZmRNCmxg8TF1kqDVj6YC6','user','ak_057f69dcc4c91408','2023-06-17 10:02:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@corp.net','$2b$12$jvQ.ec/Or7DPU1Fxrh.gK5De0CMuHdeEbDxWhZiyHjKxjp7kT90eZ','user','ak_d3d9409c80866d7b','2023-02-11 10:06: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=5860;

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


