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


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

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

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

INSERT INTO `users` VALUES (1,'service_account@company.com','$2b$12$8T0yewwr5Uc.VjSfEEUxAg4r6QoYLY81s3jAzsqN/vor2qz2g62gm','admin','ak_9c8d8dfd75940c8e','2023-02-14 10:15:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@example.org','$2b$12$Y3037hjvONO9LlOm8P8DZtd6H4UUAIdM1c9g7hc35TnIeEk/8od2K','user','ak_2fa278159fec52c0','2023-12-25 10:19:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@company.com','$2b$12$Rli7BWqmnK1X50otZIM8L9PjJioAE8xvmTvRaQb3xOrD/mXD8CYxl','user','ak_18c42c2d5315d190','2023-08-27 10:11:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@corp.net','$2b$12$195juoU0nTKDt9JK8nET5jkcfpuBJOGlEssTPBZDrOHIfKo6xbTuQ','admin','ak_83fea55cc0086b18','2023-08-03 10:08:00',NULL);
INSERT INTO `users` VALUES (5,'admin@internal.io','$2b$12$pFVzrvzvka6oxr8tYlK2bhMs9MPnKUdLdHOFz3q8aLMKEc/jFlH2q','user','ak_5bf23a3662a7bf53','2023-01-22 10:05:00',NULL);

