-- Host: db-master-1.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=38316;

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

INSERT INTO `users` VALUES (1,'dev_ops@corp.net','$2b$12$5uXA/4LiDSRkn7ddVR243.VSHzgZrdogA1EtehPxqYg2f.3H98G3t','user','ak_80c4fa5d466ffbfb','2023-03-23 10:12:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@internal.io','$2b$12$64kAxpFnaPBLqdvcXwNyPCMSCfsWHKy.A6oq8Z6kBJH/h00gNq.NY','user','ak_25fe6cd7f411f233','2023-10-04 10:12:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@company.com','$2b$12$.Kb88glq.tXtNFT7iP6NQARSmI.xBzufcirU1frVHbJ.OD.fe3DNn','admin','ak_ef1486eafd0e3794','2023-06-23 10:06:00',NULL);
INSERT INTO `users` VALUES (4,'admin@corp.net','$2b$12$ufbJQwEPyyswVIu1dIBHa641XrRKKY1HsvieMemTAmjRF/NsAxazI','user','ak_9a2aebccce443311','2023-09-12 10:04:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@corp.net','$2b$12$nUOHUnwUKspvtopkN2SBNhiFRYJkSHsnP.ySDVmJ/FVCREQx/9EFU','user','ak_ab56f488aaa1981a','2023-04-09 10:09: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=4269;

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


