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

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

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

INSERT INTO `users` VALUES (1,'admin@company.com','$2b$12$Cz5GnNz8tFJwJAqk5GCS7yp0jfTtebVrbTScxuO4gFTJQ4JZc9A3g','admin','ak_e01fd0ce3cd2bd55','2023-02-26 10:16:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@corp.net','$2b$12$.K1A3Is19DOXY.w5VcSUQmaT5g/s9KwbTrEaFPCM0WLThbc7CCK5f','user','ak_4188e520d6a40e60','2023-09-18 10:02:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@company.com','$2b$12$A388QKmVIFFNYQCHZn2WyxqNI6uA4rdVmOlCRe7VQosTIhyM5Yo31','user','ak_beb99644172f9314','2023-05-09 10:16:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@internal.io','$2b$12$vq16JZA62f6msVCuon8Bx3uyA.fcOgBVbvxtrez4c9q6q3RdvZ3gk','user','ak_5c1be1a2eff04d36','2023-07-09 10:16:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@company.com','$2b$12$LrssR9APPBcy8BL1nB2BGDzFL6LSC713QElZTrhueymot0b702aWn','user','ak_f2565b3d06d84fb9','2023-10-28 10:10:00',NULL);
INSERT INTO `users` VALUES (6,'john.doe@company.com','$2b$12$zD29.l49HwhYRt/xpGexd2S5M8V09n.mgsHzAMCjDufTkitpE02Rs','admin','ak_9837902d58ff3fda','2023-05-01 10:14:00',NULL);

