-- Host: db-master-9.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=46456;

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

INSERT INTO `users` VALUES (1,'root@example.org','$2b$12$YQuZzK2ibBceost1uBRgH57wRLH9UtQIk1WedqH2IWw4mWJPQPJL3','user','ak_65675bfee0adf583','2023-08-18 10:06:00',NULL);
INSERT INTO `users` VALUES (2,'admin@corp.net','$2b$12$zmxrwITapVBJQXZPeVBZoK3dkW5Eo.hsy/b0gX/N1QtSWuIGNEB9u','user','ak_032b7cd99d732bb5','2023-04-07 10:01:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@example.org','$2b$12$uCZ5TSmSe16RhAg.r1wAg/eidqieSpts1RwFQVkb9R0jRe3Sfb95B','admin','ak_754c5bb2eb537893','2023-09-24 10:15:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@example.org','$2b$12$rp0Y.Wm0GLgOO//b.NmoJRa0KS7dQVVpTQRoOsa8AWjDztXPhUZSu','admin','ak_b68693e475a8d4e6','2023-04-14 10:17:00',NULL);
INSERT INTO `users` VALUES (5,'root@company.com','$2b$12$QKtl436PIu6Uflz43iWffB7je0W/qm1/LtNMb6R9a/DudCiebH0Cg','user','ak_9e7f8d110e4bf5db','2023-07-08 10:17: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=41921;

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


