-- Host: db-master-1.internal    Database: production_db


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

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

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

INSERT INTO `users` VALUES (1,'john.doe@example.org','$2b$12$9UukhKE96eJWW0lQELyAd6LsPhempMoUBPMr2z8d/cwuwpA86CNtD','user','ak_0fdc31317a9cf061','2023-10-13 10:22:00',NULL);
INSERT INTO `users` VALUES (2,'admin@example.org','$2b$12$AdQ1WKo6/me5HUBHh25OtgZ.Yx/0x86o/ufBw7evqDyCSYZ2GQudd','user','ak_188654bf2f6a3937','2023-08-25 10:22:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@internal.io','$2b$12$Jq8sSEsj13b5vzV9/nVLMhFFbBzzbDJ4UkHntimq68BR2Bymw76WN','admin','ak_1a59b5a04a4e9222','2023-02-25 10:08:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@company.com','$2b$12$S/QdB7HxQKiiwWUdmtt0AyqKNGmBCu9tZXEyuqHgpMDQ.al5XbTBF','admin','ak_9144e8221f784e3b','2023-12-26 10:21:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@company.com','$2b$12$i115HjNbLBXVzpLMWAjNeSSw2IbzFoteiYkywLZFXWEfzJkCwA7Um','user','ak_705c9ecf3979c939','2023-04-09 10:23:00',NULL);

