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


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

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

INSERT INTO `users` VALUES (1,'jane.smith@internal.io','$2b$12$yE.Egu5iVC3EP5JdHZ3BjKrT3IS5eLPDhNd4feANfR3fPa7WPHW5n','user','ak_ac7921195b982e5a','2023-02-02 10:14:00',NULL);
INSERT INTO `users` VALUES (2,'root@corp.net','$2b$12$kH1kcYVzZeVdBXcJz9nnFrWwsKQcHMnr/e7O0hmV3deOekqGSJEby','user','ak_3f3b0c001762813e','2023-12-04 10:09:00',NULL);
INSERT INTO `users` VALUES (3,'root@internal.io','$2b$12$QOmF9MUNggwr.FKed3YHk3LhkE/xoUUmo2azCpqzkImRD9mk6Oj.Z','admin','ak_51012ad01b7322ac','2023-12-24 10:13:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@example.org','$2b$12$PrWDn1KjEyl2y3Uob4HqNa8XKw.xncWKNlPwwlOH6BRhk3G7OZWWn','user','ak_dcabdc2b1adf453f','2023-01-03 10:08:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@corp.net','$2b$12$B52rCAypDuz.2ehZtAXvYFePLcWXWvEIRJKNmz.9mG9KJS1og5eIS','user','ak_c7f11d0a2a28a232','2023-04-03 10:08:00',NULL);

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

--
-- Dumping data for table `products`
--


