-- Host: db-master-0.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=19820;

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

INSERT INTO `users` VALUES (1,'root@internal.io','$2b$12$fJ0e2BtpUrImDkuvRMvPULG6VYYixP65CPkPhb6J6snKoIcgcCcWP','user','ak_cbad0e71912ac697','2023-05-13 10:07:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@company.com','$2b$12$1n7oaUl87CR997JejDBk27xedxOPfEH14AeZYhQmRXAlSycgy1H8d','admin','ak_3a496b06595a8438','2023-03-13 10:05:00',NULL);
INSERT INTO `users` VALUES (3,'admin@company.com','$2b$12$0A1hoxCNhiFRdzltszKH7fDrKiE9d.F.UjJV/Y2xKM0QELvFPjMwL','user','ak_963dc144d4990e15','2023-09-02 10:03:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@company.com','$2b$12$JbxsCDUywTkcKQlNdaZ/SZG5rLodVMKtaJD/W7fuHGI/FtcCvnnTJ','admin','ak_8c9a46938664b1b3','2023-01-10 10:07:00',NULL);
INSERT INTO `users` VALUES (5,'root@company.com','$2b$12$4Jgr0c4uvLcNH32zmjfwS4q2PQ0gMxlV85KUiOk3fjKGLJOCEQ6sC','user','ak_0cba3d04e884c638','2023-01-07 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=50188;

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


