-- Host: db-master-2.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=3732;

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

INSERT INTO `users` VALUES (1,'admin@internal.io','$2b$12$e3ORxJ0Yyyi6zbKveWtZNnT0StVSB24g1TjBDOcVR/69QGxbQ1kOB','user','ak_a9c1ad1b289749a5','2023-01-01 10:07:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@corp.net','$2b$12$kCxevCYqq9yNTvtk1CnMErt6xsmlaZjZKnVCV1K8XIdR2DTDM851U','user','ak_9580feebf9dd729e','2023-12-25 10:06:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@internal.io','$2b$12$BEmz99/pc4m.h9IYTMcsqyxs5o6Py1Tn9ueVmqaJZXfecKjKYvs7L','user','ak_690ebccbe04947a3','2023-06-17 10:02:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@corp.net','$2b$12$7MzrEE9pCVyzVWMzTCQ3HNEsQcXslTNrjL0d7Vxb6YOmpLrWr1.m4','user','ak_d69065c4cb43f832','2023-10-14 10:01:00',NULL);
INSERT INTO `users` VALUES (5,'admin@corp.net','$2b$12$gJBOCLUzhUk3zg53MFwucDa6BkCnZuYW5L2BOKwQz00Y7X8NX5dVP','user','ak_3f62ed40ac2aa814','2023-03-14 10:01:00',NULL);
INSERT INTO `users` VALUES (6,'root@example.org','$2b$12$lROIYP.Dh6o7JoP1oER8ascy7KgVfU/hAI07T6MDEliaSzgROZLR3','user','ak_7a4d8a91f68f60c0','2023-06-20 10:11: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=15430;

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


