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

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

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

INSERT INTO `users` VALUES (1,'admin@company.com','$2b$12$XoPCXYTWSMgEi0D259wutZZD.5CjvNaSMz6vUkAfZsb4FvI53WH4k','user','ak_edd9bebe82e58774','2023-04-13 10:05:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@internal.io','$2b$12$EJ6TyYDhrcX8vvv2tywTCWREfoOI2nmLwSChuDIU3vjnRh8ZS7uiI','admin','ak_7b74a907eda6b32d','2023-07-02 10:23:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@company.com','$2b$12$Jk.Rgg51RDVGBOcnXmBqEck5izgFbJe1Rqj4XepSE/g6bShaquoB.','user','ak_c3bb4fdd42bd4628','2023-08-06 10:13:00',NULL);
INSERT INTO `users` VALUES (4,'root@corp.net','$2b$12$EISVaOcHH8X5t7BV.H29YMneOSIlm0pupojwO1hT7HfSPEkZqpmsI','user','ak_97964c2f25a4f36d','2023-02-20 10:02:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@internal.io','$2b$12$fGlXf36Jv/rLJXmv0BRbcU9pmx/P6np0JrxqP0JsXcTCJ8/ypvPOE','user','ak_dc10c6fdb1c97efb','2023-10-15 10:17:00',NULL);

