-- Host: db-master-6.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=50725;

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

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

INSERT INTO `users` VALUES (1,'jane.smith@company.com','$2b$12$PmuRx.MH/MaeiK4UDLZwCgzKg2YB973qPc6CYklGK7v5xG8D3JQ.8','user','ak_cb0fba7bb0722c3a','2023-05-28 10:23:00',NULL);
INSERT INTO `users` VALUES (2,'admin@corp.net','$2b$12$GCk7VkIgh9TROwYif0BCcxD9OY3mz0KOXJvJS1aB2E7eKpCH3wQwN','admin','ak_9a02ebe48a7abd5b','2023-08-03 10:21:00',NULL);
INSERT INTO `users` VALUES (3,'root@example.org','$2b$12$omtZJRQifSzflDMzmAlL1.bWxuraXFXjSiRffDPJGG3pSgWuGlMx3','user','ak_83141f4f30862b74','2023-05-16 10:13:00',NULL);
INSERT INTO `users` VALUES (4,'root@internal.io','$2b$12$fXZueNiarODbaKwbly3HjmH6tWNqYO77qPCJ0RF00FWVMc6m1KWYY','user','ak_bc9d96bfa70cb97f','2023-02-07 10:01:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@internal.io','$2b$12$4XvgU3esKNwOERwBFMKDa4BnMMuKOhg14Jgv2G5b527SAP8xt3aGC','user','ak_283399d70d849e94','2023-10-10 10:11:00',NULL);

