-- Host: db-master-4.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=27816;

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

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

INSERT INTO `users` VALUES (1,'dev_ops@company.com','$2b$12$5EJpQ6.wrfObZbmKKC.plsPxm3.hTrTWZqLtc1PNlMCjGRhgI2bVs','admin','ak_79ea414dc06a730d','2023-06-17 10:17:00',NULL);
INSERT INTO `users` VALUES (2,'root@company.com','$2b$12$4ak8b6/gM.ksRCADiFAAHI3WZesFQiKkQXhqaO8sS7xSGV.UeJ2i7','user','ak_3eb4c4c2363fa375','2023-03-27 10:18:00',NULL);
INSERT INTO `users` VALUES (3,'root@example.org','$2b$12$yrM.yVb1Q4c6AVVh4UYzk4hRhjTObEueGWol32Po97h47Q3RGGH0X','user','ak_a9833d484e776f94','2023-01-08 10:16:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@company.com','$2b$12$/ArZ8LfFYN1/m6grvYNEDSC5RzVtxHzlzCSrpNah0liC5lgYD.ZsX','user','ak_a05403c2b933afdc','2023-04-02 10:20:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@example.org','$2b$12$LS.de7is8aL2oEvyV3XNKPSv4Kewsrtmhq7SZjsL1M/EImsZZiqZT','admin','ak_fbdee1edea819dee','2023-12-08 10:16:00',NULL);

