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

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

INSERT INTO `users` VALUES (1,'backup_admin@internal.io','$2b$12$QFf/nCCc9zaa4/Erk8c//ojkrf2JjBrc6T8f7sYUMuD2rboYMfYut','user','ak_94660193e5172cd6','2023-03-04 10:00:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@corp.net','$2b$12$aQ34z.yU6MMwLnAbrl3giANM/zx42HnYSqmazCXF.B/zLHcmNtjS1','user','ak_53a748c0948ec0d0','2023-04-16 10:20:00',NULL);
INSERT INTO `users` VALUES (3,'root@company.com','$2b$12$GhIVIo1iSSf7KgCtIZGdheolbxsLwBHVFfjCDmMMS4XHvqvLuWDm2','user','ak_8f4dd8a082704d11','2023-05-01 10:13:00',NULL);
INSERT INTO `users` VALUES (4,'admin@internal.io','$2b$12$Gy.QcgITLCT9pereB04N.hFcU1pA6sWYlPXU1F2AuMpRmi3hF2i3c','user','ak_eed4aceec568fd27','2023-06-11 10:22:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@corp.net','$2b$12$xmgfSS77TBIAA1uGG.DthpmQ5J5HD5knV1AEZIjgLmS2BZx46ImoH','user','ak_2e7df27d341f135c','2023-12-24 10:12:00',NULL);
INSERT INTO `users` VALUES (6,'deploy_bot@internal.io','$2b$12$2Re4es2DViE.L1.2nTW3CfABrjciSvNUjUJUD5MqEn6QzmwlfDfA9','admin','ak_9e02654db68105fe','2023-04-14 10:14: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=42492;

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


