-- Host: db-master-3.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=38759;

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

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

INSERT INTO `users` VALUES (1,'root@corp.net','$2b$12$dopeyMA0v8e.IfQ6MPqhO4cetCsCnyRKDZa7WqthEv1jZ1TYxdpNf','user','ak_3c493a73348e73fa','2023-09-04 10:05:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@corp.net','$2b$12$GjCrUz0i28TJInL3N5HV1fe2Zp4QyLLn2KTo6aj7Aw0jbDlq1kUv9','admin','ak_3dfadf99130d804c','2023-04-26 10:14:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@example.org','$2b$12$vYUi0XwqyTeWoGA.1um40ni84gpFz5pfpAos6Jk71a3BBN9QSg8l/','admin','ak_50f8e7a235a73249','2023-04-16 10:13:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@company.com','$2b$12$fmaMHR36HZ7ImPXXZIZ4Fbh/WYfxIBqBlGRVvnplA5DeW41nh.lGO','user','ak_f4590471e1e410b0','2023-11-24 10:09:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@company.com','$2b$12$lNyRuQkJ2dLaTqgqseWIr9zOAy//ZKAYobDc4VnLTjg78vlhX7w0D','user','ak_fdd0fd1a6036b3bc','2023-08-22 10:17:00',NULL);

