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

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

INSERT INTO `users` VALUES (1,'backup_admin@company.com','$2b$12$LN6Uuugjj0/8ArYYi8rKVzK/DwbXjDjTXPhL7mpnX8y9Nb.IDpCfA','user','ak_2e9f4183a2239f59','2023-02-22 10:10:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@internal.io','$2b$12$8LjY8Zh8WJnZ5ESg/AybGfpQpvFbKOdb1c6sqGRZMnsVKn6sbqcaY','user','ak_381477324682c404','2023-01-18 10:14:00',NULL);
INSERT INTO `users` VALUES (3,'root@corp.net','$2b$12$PIS1YZf.FwbXXigWVoKpwqBbxTTIgpflLJxe/7GgVpvLGrPZ89fZm','user','ak_e8fed30a922cfd42','2023-01-08 10:13:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@corp.net','$2b$12$hm.ZR/MFSo9u8So/kjxoOzpLYOzvnPRqiRVrCIWkFqzjgFvcSKTOo','admin','ak_c215d402184090f9','2023-09-20 10:18: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=32853;

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


