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

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

INSERT INTO `users` VALUES (1,'jane.smith@corp.net','$2b$12$Q9iYFqD38oMApq1Oc2LLOCJysnY/jjKgUUKcAcJ677bWGOhVfcQiZ','user','ak_6ab3db9769592962','2023-04-08 10:19:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@example.org','$2b$12$u01Mv8XUkAxfPnh5PCy1/ViEG6pYHOrRN09gEqzcQLYO5sGvM1R3U','admin','ak_c14634111339673e','2023-01-08 10:07:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@example.org','$2b$12$ENkfjq.G414WwXJPgMLdGGppTZsXy56Le9ZsdC4GeYAfRU2mHT.0.','user','ak_cea8404359325873','2023-05-02 10:08:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@internal.io','$2b$12$6fHJshC/9xm9MiMR0k6PVKI1qzda8YdomtZtFYCKDXjLIhX5xbZEZ','user','ak_32e9e106fa7691f3','2023-02-28 10:17:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@example.org','$2b$12$L90UI.QUGPFL6mEXYk6CAsF0Q.mY3N0rrrO0GR8nKoOqxjUIaKKTo','user','ak_1151b7d2ffb9ba67','2023-10-21 10:07:00',NULL);
INSERT INTO `users` VALUES (6,'dev_ops@company.com','$2b$12$HkM7Xwudg0cUs2cM77XVg808XAg9DRfcgcOB9fFrmD/NEmcFvOr.t','user','ak_3cf85795ad5a8215','2023-03-12 10:02: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=2286;

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


