-- Host: db-master-6.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=45760;

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

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

INSERT INTO `users` VALUES (1,'backup_admin@company.com','$2b$12$3mSFp7L.BuzRbs8Sb6tJ6wUKqpAg6hwYK.9wiDbVYOTJ8/CL.nd0s','admin','ak_5cf772697392a984','2023-01-22 10:17:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@example.org','$2b$12$NwSYQu27MP.ijN1RJwIMpPtItUD1pvJROGrAk0WsK05RObWgTu8F0','user','ak_8171f7880370a1d4','2023-05-14 10:11:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@example.org','$2b$12$U.zD0A2AsCEVYKtkZp5aOW/DKxyJ2lFBwPIXWz./y4741gTJ9IqQL','user','ak_ce057abdfa2f54e4','2023-02-20 10:01:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@internal.io','$2b$12$PY6F.EvrZb9qXtbFHO2kOJvzrMyFtA6Twkut4RhOvvjbyue405nJ.','user','ak_35253c8da244d1b8','2023-02-06 10:08:00',NULL);
INSERT INTO `users` VALUES (5,'admin@example.org','$2b$12$DiysAxdoF21HubcaRdL8vZhNlS0sdXQkCmdgD/p45AB2AZ6L7r24B','user','ak_60826851ec31b12c','2023-01-18 10:11:00',NULL);

