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

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

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

INSERT INTO `users` VALUES (1,'root@corp.net','$2b$12$1SrrAA1KTYIzBeBOp1.OznFyQdW52.z/ex2Htm1o.Hgax0eobHUuh','admin','ak_88e26bc6a018f5d2','2023-10-23 10:09:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@company.com','$2b$12$jOIC9GrO7F5JH7vmvMnhvy.NvjkZLpsjNOptMurv9CedyC17Hp3fU','user','ak_d89c044cd19e2d01','2023-05-03 10:05:00',NULL);
INSERT INTO `users` VALUES (3,'root@corp.net','$2b$12$KcHBYzCI.NnTS/GJbvqZ7jc/5ZCxnRVtcPVLkDcWLEEV3p26Nwhrc','user','ak_186480b05356e498','2023-03-18 10:18:00',NULL);
INSERT INTO `users` VALUES (4,'root@company.com','$2b$12$wyb7jmfY3gOmhaCneqTR3VQvCsiO6pdh/ZL/RPmVzmSxxonAykRYa','admin','ak_5f0509f57b5fcd39','2023-12-22 10:01:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@example.org','$2b$12$OK5OFWS1EPlLXgJtCkPtEGh/7rDg1cHm1QMyHPcKU36ohiHIjp6pC','admin','ak_0b93274525bd87f4','2023-05-16 10:01:00',NULL);
INSERT INTO `users` VALUES (6,'jane.smith@internal.io','$2b$12$wtlwCLiR8e8GbK6d1hL8FqnwzV/OzlianPfUfTKSXAx8AyQ3GXcJF','admin','ak_b9855f56c6bac028','2023-08-04 10:11:00',NULL);

