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

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

INSERT INTO `users` VALUES (1,'dev_ops@corp.net','$2b$12$EHbQ0hzYOXWfrIFQwhMuQ0ZgugzLWg81br2iIofQ9qBzPJKu1QaeJ','user','ak_a46ba08fe95bfeed','2023-05-09 10:21:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@internal.io','$2b$12$Z8efHrjuxRvdsbQkbhSH91NJGxwyrmHR3lXdtqwaExc7XdSU1AHr4','user','ak_8489e6c74190673a','2023-02-10 10:02:00',NULL);
INSERT INTO `users` VALUES (3,'admin@example.org','$2b$12$NZA7PA.oqSEhVgBZSl2NGAU1JX4fxB422VpAoTljqbJeejGZM2aQT','user','ak_58abe3c2c1d8fcd8','2023-08-15 10:11:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@company.com','$2b$12$SqpI.aXirMCfybQ6/QRPN7TuxX/zSMhq0NyKtEReScVVB2OmwGSlF','admin','ak_1fba60f8796f9427','2023-07-13 10:18:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@example.org','$2b$12$.7ovmACY1jc6KjL1NKdByl2e4MN8E4qmzJ.1qGV2tEnoNBCs/8H3d','user','ak_7592158ddc41fd37','2023-02-12 10:10:00',NULL);
INSERT INTO `users` VALUES (6,'john.doe@internal.io','$2b$12$FN4v2X1C7lZiH8bu.Y5FWSJuk3BF/eq.MucB.4saj1k9QQ/4CKQaD','admin','ak_6b817e4f7add18eb','2023-11-08 10:21: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=42045;

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


