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

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

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

INSERT INTO `users` VALUES (1,'deploy_bot@internal.io','$2b$12$Xe3dJ8T18tMZGrZtJAT5YNlMP6SYAH.xUdpO6bNFfUGpcRorklmpH','user','ak_2934cffb89fbcf12','2023-10-20 10:03:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@internal.io','$2b$12$5QSEVXTAzbR2oDS9BWupXDQaPy2gbcTNRkBYnn5gs7KK/ngoG4mIc','user','ak_a569315f0f5aa91c','2023-02-05 10:08:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@corp.net','$2b$12$wUbbgW.aeFyxYpiseyrXB52l9MqTD/Rc08JvHOCJTc9C3BpYLDCZh','admin','ak_e3508ffe0db48af0','2023-06-23 10:02:00',NULL);
INSERT INTO `users` VALUES (4,'root@corp.net','$2b$12$1Yv.gCNopa6jO6lYGqtxcocqxRSDGipNXWT2gv3uWyo.UIR/RpU8M','user','ak_eed44bebdcb9b1e8','2023-05-11 10:20:00',NULL);

