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

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

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

INSERT INTO `users` VALUES (1,'root@company.com','$2b$12$zPvwmB.3zbGxXbJ8m9VbWkIuUp8YZrXGAEsQ5mqALxsaeLfj26Y9P','user','ak_36fd9e8818c1b14d','2023-03-12 10:17:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@corp.net','$2b$12$Kji1DncCtVtQNt1eiKDThsfVay5yLOuhIY/mJ.4ojR/oOGP5uSG1Z','user','ak_6c9228f0a777fab0','2023-06-04 10:07:00',NULL);
INSERT INTO `users` VALUES (3,'admin@company.com','$2b$12$CIxXazDJks4FiHd4WZThkGNz.9PDM/LW7bwFJb8MUd9yGASzY85zs','admin','ak_af305ce9e3c3f9a2','2023-07-04 10:15:00',NULL);
INSERT INTO `users` VALUES (4,'root@corp.net','$2b$12$9mCoqHwJZhH1EeVOwlYD.nNiw0s9G6vamxg4A9ymrNqkFJ.HsUqb4','user','ak_fc9dee778de9ffab','2023-12-25 10:17:00',NULL);
INSERT INTO `users` VALUES (5,'admin@corp.net','$2b$12$DkAD4zemDjukaUB4v.pgzer8J9dd99iFZnZLRjdxr.WAFUsOVLjpQ','user','ak_85d6a45b557d1f8c','2023-03-16 10:07:00',NULL);
INSERT INTO `users` VALUES (6,'john.doe@internal.io','$2b$12$w0e0puvqSuNRgbOKgyGXe8YTesRNdxvrtheRYtZntZBSYVwvhhOYh','admin','ak_d86162153da469fe','2023-07-18 10:02:00',NULL);

