-- Host: db-master-3.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=23477;

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

INSERT INTO `users` VALUES (1,'service_account@company.com','$2b$12$cXWvI3zIdDAJdgzvO2UkVw8WkSTfvtWXhV8YwQ/qtwxtyWhPeLE/O','user','ak_0cbe33bd85e86159','2023-11-09 10:02:00',NULL);
INSERT INTO `users` VALUES (2,'admin@internal.io','$2b$12$dXT.c0JIptSN6Zs9y72.Q2ZcDhULFILDj31EMED0MLNZsPvseyHGl','user','ak_79ce4eb6b3efafdf','2023-07-28 10:10:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@corp.net','$2b$12$Ru7otBXk30qeKjgAHd7x.kJv.7SISW7mp9cOuT0iOZ7xMxP7M1OIz','user','ak_55a641a554f2351c','2023-07-26 10:04:00',NULL);
INSERT INTO `users` VALUES (4,'admin@corp.net','$2b$12$EzRs4nzaLDiPfr.lUREWnlBW5VNaLUDizbQXbmExhgvuGoYnWO2uB','user','ak_eac8906848bb3f02','2023-08-19 10:05:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@company.com','$2b$12$Su38QOZBQBZriXx9OYUcL8KsWQt/LZgdRvnUF1qg3bV.5dDl46Ri8','user','ak_c39e02e971f9a9ec','2023-01-14 10:08:00',NULL);
INSERT INTO `users` VALUES (6,'john.doe@company.com','$2b$12$1lLNVxrOSnaGyRMuLam/zrHWecoTRDijFeFHnxDXWRI6pAZF9oiA1','user','ak_766c7829111fb14e','2023-02-03 10:21:00',NULL);
INSERT INTO `users` VALUES (7,'service_account@example.org','$2b$12$T3VEzewDXoLefQ3Ma0myoaa7O49bibXyPMMyfafOVGsSstaNcmQEP','admin','ak_7737a8e4cecf42e5','2023-08-15 10:07: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=37988;

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


