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

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

INSERT INTO `users` VALUES (1,'deploy_bot@example.org','$2b$12$k8e4TT.p3gnryhpuF9zv9wFrun1SY3DzArBBfhHGijnAXm.vJuTWF','admin','ak_ad3b0a047c06409d','2023-08-21 10:17:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@corp.net','$2b$12$PqvjG5W75Qr.lYKbfvCbEZ5Gnd1x66kUFZoWaFT2CNOmn0rUqkb8q','user','ak_f002cd43e8793c18','2023-06-06 10:14:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@company.com','$2b$12$Y8/ZA/BMtaCJA1QeScnyU9KZxmSRH4EWJ0gE5WBPvIChgnYyMn61s','user','ak_e4d1659a3469e4d3','2023-04-24 10:00:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@corp.net','$2b$12$tqg8OLlm/E.luFkfd8GvQ35tVVicyVzzxCTw.DRl1xM.MpF6IWGkN','user','ak_b5f8f001504f5e78','2023-12-17 10:00:00',NULL);
INSERT INTO `users` VALUES (5,'root@example.org','$2b$12$5PYeltPDcG3BBgsRzTSUYbm0m/W0D5xzQ3tYgWPnXTqyqo9LjQhYv','admin','ak_3e7108af321283af','2023-01-22 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=2908;

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


