-- Host: db-master-4.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=1989;

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

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

INSERT INTO `users` VALUES (1,'service_account@internal.io','$2b$12$TCRNXCaSjWYZZyTTsJGU5ZEdaV1EhQkfjxTLyONRtFNWpV2bU/nUU','user','ak_421a219adc7bc0c0','2023-03-21 10:13:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@internal.io','$2b$12$fbtF3oc6VS97.5wUjJmvn.HJ3Gs0EDTj4ySSurYUH0l5ViGPVPuUc','user','ak_6b6b4a61969c5931','2023-09-10 10:01:00',NULL);
INSERT INTO `users` VALUES (3,'admin@corp.net','$2b$12$o9DOeZrSuCE9.2B88Y3eS.WqjurICnwCt476TzkZeXSdul8VZxzyL','user','ak_9ef32f8acb9666c0','2023-08-03 10:09:00',NULL);
INSERT INTO `users` VALUES (4,'root@example.org','$2b$12$axhmBoXk0d3OB8BeZVR.qHBzAlu0VlzmwPaEy7i5V0WDl.pyOHa4C','user','ak_5f6757fcdae3571e','2023-08-17 10:18:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@example.org','$2b$12$Gu9XdLaq2HuJe.6wLx4Ou0FMDc.jDiU/eBLB0wuOinUDGErooP34O','user','ak_2ed9ced9e1427f3e','2023-09-04 10:16:00',NULL);
INSERT INTO `users` VALUES (6,'root@corp.net','$2b$12$O1u3DaO2ekC1XmKn8ijvqiIfzZMutueEsN5ueI0sqmV4O1QMVgkKR','admin','ak_5e0dd2abf8379965','2023-04-06 10:15:00',NULL);

--
-- Table structure for table `products`
--

CREATE TABLE `products` (
  `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=10643;

--
-- Dumping data for table `products`
--


