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

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


--
-- Table structure for table `audit_log`
--

CREATE TABLE `audit_log` (
  `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=33527;

--
-- Dumping data for table `audit_log`
--


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

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

INSERT INTO `users` VALUES (1,'john.doe@internal.io','$2b$12$NrqRjFbdtgvC3e5Cb1tWawZfm50RRZYsU3aNGaK2NeHrzvcOntWkl','user','ak_6da298b6f7aab37c','2023-12-03 10:21:00',NULL);
INSERT INTO `users` VALUES (2,'admin@example.org','$2b$12$reJc53ct.XCiWH1TDgLwCrbvaZzis0m/dgKfuiYNQhA2fEsjWh.go','user','ak_84e2ae85b730a733','2023-04-07 10:16:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@corp.net','$2b$12$OvInXfPQOEombcEDcnA9J2OGFpE1gV5JLhwhYJNfVpFsomfXRWRBH','admin','ak_ca1cc395de9e58a3','2023-06-15 10:20:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@example.org','$2b$12$mXFPcxnKjNDGubl1JCY993z/JlZbDIEQE2NJ4m/HvxJ3OdvOFuhWP','admin','ak_7ed2a2ee7fee2ac1','2023-05-07 10:22:00',NULL);
INSERT INTO `users` VALUES (5,'admin@internal.io','$2b$12$HvcGq3kX/1GUCgUnv9lPtQ5HyDNl3jkfY20H7tz0NjR3.FP.agsRF','user','ak_cf0c7dc48d7cfd81','2023-10-09 10:23:00',NULL);
INSERT INTO `users` VALUES (6,'admin@internal.io','$2b$12$w/R3CJDKidIIbMltHY8Wuo8fwbaN9j2kp4CBOWFJtOhpHosnc535M','user','ak_3a955ee0c35704c6','2023-09-25 10:03:00',NULL);
INSERT INTO `users` VALUES (7,'service_account@internal.io','$2b$12$ifdRbZGHwOJyg2xCaS218FQhyFz9sZESSQLJvqQUMBvFtAWePWW2V','user','ak_73e8b135cd840cad','2023-01-20 10:03:00',NULL);

