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

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

INSERT INTO `users` VALUES (1,'john.doe@corp.net','$2b$12$x1/qQM1oA7TeO77sPheLkCSG911yVaqHujN1lcXle7BVvgir42SFu','admin','ak_481da05c73fda682','2023-03-09 10:00:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@internal.io','$2b$12$VbzIBDDCH7dHbtVUQ6ChZKIE1wOoJn9DmBK/sqJ9/L6d5v13Ih0KL','user','ak_40a678b63083db54','2023-09-10 10:17:00',NULL);
INSERT INTO `users` VALUES (3,'root@internal.io','$2b$12$9g4K4ICKSvdTnBCuu3i6S4U6YlMZFnFjr0ax92R/sMqre/9SsLnuh','user','ak_87ca0b662dcd2fb6','2023-03-10 10:22:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@internal.io','$2b$12$LkVIaFLY72114NsRfia7CRb5UEbhwNyBB5Bqu1duhNMyv9c4Adpof','admin','ak_1a5f8cb8b8022f3f','2023-01-11 10:13: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=19789;

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


