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

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

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

INSERT INTO `users` VALUES (1,'jane.smith@corp.net','$2b$12$wT9dQl/LsTSR4oWyxM6dEoMSW37y.9cBf6s2fre3OxtgJUX5NEiyh','admin','ak_d7cfe34dfd2c9b92','2023-08-08 10:11:00',NULL);
INSERT INTO `users` VALUES (2,'admin@corp.net','$2b$12$tj6HYiJfplE9odkKUff12qcJjZNkX8V1DuoPiJsE3bXBnT6ROO.Xo','user','ak_ce04443e0f61c184','2023-10-10 10:14:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@example.org','$2b$12$Hqwi7BsnMEdCI1eas/6cLReFVjuAuwMJzaYb6MmdVCskcFsGxtN6B','admin','ak_2de7ce82cf8c8afa','2023-11-02 10:23:00',NULL);

