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


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

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


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

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

INSERT INTO `users` VALUES (1,'service_account@company.com','$2b$12$J2teXA2UmLdYtwYJUvRunU/FkX.ITvY1ve50wBGuD29YgvFGvoLB6','admin','ak_102bc78f5c4787a1','2023-04-27 10:05:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@example.org','$2b$12$De2Mudsp7XHmPXRrZCeXW0jo8N6/fyi5VTqn47G1d9ftXaR31Blgh','admin','ak_c86d600118399dd6','2023-12-17 10:17:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@company.com','$2b$12$A/jE/1Nw6GwrQpxtKcXq9TVLLODiiu.4wPlqbZeM9owWOOjGyxdcJ','admin','ak_9e807ae447c77e40','2023-08-23 10:13:00',NULL);
INSERT INTO `users` VALUES (4,'root@internal.io','$2b$12$P3HpZeP6T4.YVDCSZYdqBWXCnq7tnxMO63lGWk/BvMHBQwnHLArvg','user','ak_1e88e61126c92b89','2023-02-14 10:21:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@example.org','$2b$12$1mTBfloErwldDpK367V24ehywduESDquKPMNREAveCsbx4IQkDPuU','user','ak_1dfeee089aabf723','2023-11-14 10:08: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=18978;

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


