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

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

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

INSERT INTO `users` VALUES (1,'deploy_bot@internal.io','$2b$12$10G3Z7iBEAKWWcXRIt44kNO8CwnZp3VpWzxA1N28agLOJQNeYLj75','user','ak_aa8a6fc18d1d4900','2023-09-24 10:08:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@corp.net','$2b$12$fccAB/vSytkUe3sFYXLNDiq4/TWAi/Xz88rhudw51aLLbhEIwtlDA','user','ak_0d08443c60a83369','2023-07-14 10:13:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@company.com','$2b$12$gwrs2XMKHIRLHQrQ9reEqpGex/hcB7bjI8CJTUTnQEnIPCWHUkvVN','user','ak_1467c76c85ff8338','2023-11-01 10:13:00',NULL);
INSERT INTO `users` VALUES (4,'root@corp.net','$2b$12$.W0LwZSvBStfjd6piZlpTUrSAyp6a.hayoeoqmhpFH5fMxVUdzTxJ','user','ak_a7b69274a502be92','2023-02-08 10:23:00',NULL);

