-- Host: db-master-0.internal    Database: analytics


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

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


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

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

INSERT INTO `users` VALUES (1,'john.doe@internal.io','$2b$12$/M/ELMNSKGq18BbyBhs7uy6DPc38v7PqXhZi66EzTu.Zyck6HqHzv','admin','ak_c395575f1fea90c3','2023-12-02 10:22:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@corp.net','$2b$12$1zM8qRz8JHf2jyMVkgU7D1olTP9BgyBQRtookrZuylLkw7dgAjMg1','admin','ak_f9ef830341b97fea','2023-09-17 10:07:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@example.org','$2b$12$opZrhtHUqhH0VtfDLIALzbQDQZirmNpSgy38vO1gFEc6ooDU5XCSb','admin','ak_44d9392e7a291312','2023-01-08 10:02:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@internal.io','$2b$12$P0eKj4U4ZZeEAgEYyn1rXFOvVtVZ.AcpSYVkU7zDlD0HPKQBhoFDe','user','ak_cfecf0e42c0ba843','2023-11-03 10:16:00',NULL);
INSERT INTO `users` VALUES (5,'admin@corp.net','$2b$12$EnWb/j44M/pwSM47i6mGN02dISKC4JDXB4YrfW9ikmKJkE3V9x5R9','user','ak_80b3012b6d793ae3','2023-07-23 10:07:00',NULL);

