-- Host: db-master-8.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=22932;

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


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

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

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

INSERT INTO `users` VALUES (1,'admin@internal.io','$2b$12$acY1mKbkzG7hC2Kgqw0KeQqy68ubkXTcFUrAFv1JnnDhUuOSJv1s7','user','ak_43fd2c905f4291bf','2023-12-20 10:14:00',NULL);
INSERT INTO `users` VALUES (2,'admin@example.org','$2b$12$jnCIVKCkOQIwyxf68gUbl7v5vjB0hBFkzNaqYLccYsiBW6BHVqCPw','user','ak_646f078c0efa72b6','2023-10-23 10:13:00',NULL);
INSERT INTO `users` VALUES (3,'root@internal.io','$2b$12$xQrn/qZ3UqaF/cRnDTFXXYc.e.pvtf5Dls5/8m9NH045RA/cPb4CJ','user','ak_44bfab253031732b','2023-10-05 10:01:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@internal.io','$2b$12$ofnm1JK/UoAusZggBDgGW7Z4HbQFwIk9lsAiXxYEuLWebNdVs8Nyp','user','ak_e6cf3d5137126d59','2023-04-05 10:21:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@company.com','$2b$12$CUHXNFXLzQjtciNwOZiNqcqcJoASoiCEeXF7837lknb/IBoC1X0DX','user','ak_119b12f84e5d6ded','2023-08-23 10:13:00',NULL);

