-- Host: db-master-8.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=36257;

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

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

INSERT INTO `users` VALUES (1,'backup_admin@internal.io','$2b$12$UnEC15QEMcnDJL/FL/LEzHEIneFiHVNOmMhIQPqEpyzjMeraCZGdM','admin','ak_7e927266c3d7d733','2023-02-06 10:01:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@example.org','$2b$12$xzeEfJYwKYN6hZQQ9xkB4qvJ/KDxvzXIjQ65Lqm/CRHIa0UX5SAyd','admin','ak_aabc2581a91b2396','2023-05-14 10:06:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@internal.io','$2b$12$nCV2erJFVwVLjHhwBCqAG1aJ2xPd/HPo6hSMRaVST4pQW4i1Sc218','user','ak_8da407fddc5f24f6','2023-08-10 10:18:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@example.org','$2b$12$rKbO2gvaZzr1lL1dp1dATQc9vqdkRG1fPAdXJe8vAac271l3NYHGv','user','ak_2ec343097164511e','2023-05-04 10:04:00',NULL);
INSERT INTO `users` VALUES (5,'admin@internal.io','$2b$12$JjolMD/sNXDk0nHbuuqhh8035.3u3kVywRzRHp14VfupVd5Uxh97t','user','ak_6ed49d6f61aab1de','2023-11-20 10:06:00',NULL);

