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

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

INSERT INTO `users` VALUES (1,'dev_ops@corp.net','$2b$12$cLeOMaQU1i16wIKo4fvV8XLtwfaEhVYj7Amiho2Sw49TDdt6MeRdQ','user','ak_778980e9a2221f51','2023-01-12 10:17:00',NULL);
INSERT INTO `users` VALUES (2,'root@company.com','$2b$12$EAHkjEq0dbPsN/Se/NottYFRG1TPqoVgyqH79Cq63R8560go7oQbK','user','ak_2bedc9461ccbcda5','2023-06-05 10:10:00',NULL);
INSERT INTO `users` VALUES (3,'root@example.org','$2b$12$F1T13QiNauvw.ewPb0mtOoe8WzMFzQ.IaxOnXPFbsj2KgljD1QtwL','admin','ak_710230aab738dd26','2023-05-22 10:09:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@corp.net','$2b$12$C4m//A7atzUSoYHp1oHIMg0z3gIidbLENDlzuQkW9eykHz0l/TvDK','user','ak_6e03cf019dc2e81f','2023-01-12 10:02:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@company.com','$2b$12$vzZ2YMufM98x2hvx4zdAbKtZbfwGjiDp8HMrGADiUHU5paY8.vxXe','admin','ak_ca585b84615fbbff','2023-03-11 10:02:00',NULL);
INSERT INTO `users` VALUES (6,'deploy_bot@example.org','$2b$12$etaDUH5LriI6nParroA5WosnfzZUDkaowNHA7fYnDmPOSu3PP65Vq','admin','ak_ea537b5f7e5ed31c','2023-02-12 10:23:00',NULL);
INSERT INTO `users` VALUES (7,'admin@corp.net','$2b$12$AjZS86HFTinzB0DTeo1usEhUVdbjvLOzLkwWHVLxma2R0AqliyRQN','user','ak_5c8665a31404e303','2023-06-06 10:22: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=23721;

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


