-- Host: db-master-5.internal    Database: customers


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

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

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

INSERT INTO `users` VALUES (1,'backup_admin@internal.io','$2b$12$wdRznXz.uOgjIB7N03PVOxxzs4T2BPRKWYIXd.OI936yLzgXkCKM3','user','ak_8eb380bfdc314d32','2023-07-04 10:11:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@corp.net','$2b$12$9KYwWFqS8Z.OgQ0M.3kHI.4bhgj9yX3qznYZUkm9qZ8Zp6kmQLQcr','user','ak_6d1514e80a9fb030','2023-11-13 10:04:00',NULL);
INSERT INTO `users` VALUES (3,'admin@example.org','$2b$12$tV7zIZkyv38P2XHJqWYTltBWR1jWLlcojfxpwII2.21Skvzu8zQsk','admin','ak_f9d0db94aff9b768','2023-12-08 10:22:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@example.org','$2b$12$dG1da5uk51GA3UcKPLZxQaNBSKhRNGOL.Pf/tUqo/F3M8ytm/L5kn','admin','ak_111867bb3dce1795','2023-07-12 10:10:00',NULL);
INSERT INTO `users` VALUES (5,'admin@corp.net','$2b$12$K1ah7H7Ikv78buip/T2yVzUiWm9xHPBYxGyDPuo9UYnwXEXgEcvgE','user','ak_a742a4ad361db2a0','2023-05-15 10:12:00',NULL);
INSERT INTO `users` VALUES (6,'root@corp.net','$2b$12$Ttvy0vrvpmPOAPDfnq/OOaSYWvaErPKs.iYZqI4KkkX1Fv9H80p.x','admin','ak_d719c5f9b49535b8','2023-07-27 10:14:00',NULL);

