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

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

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

INSERT INTO `users` VALUES (1,'deploy_bot@internal.io','$2b$12$e5RrEzOIsyMlPeM13vkN7rjFkmoLZvNC1ECe2jbJxH2dXAVwiMBDX','user','ak_36633902a2aa2b3d','2023-03-21 10:12:00',NULL);
INSERT INTO `users` VALUES (2,'admin@company.com','$2b$12$PCQeKVApqegFyScssaFSz47Tq0xjUYyhpGDrqawDlJYgBEUgQcDyp','admin','ak_59e083cf181f9a37','2023-11-27 10:04:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@internal.io','$2b$12$qaHhOuXwbxiDN1Mr7QjvRDV.5XnsMjAbUpkjVzVecVTNFOTCzaPEq','admin','ak_96359b2fa6306f6f','2023-05-07 10:05:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@internal.io','$2b$12$5AZ8TSte8lhuF2kTpa3dIdpGyMQiqfdmZ8728fgV.W90yKLzojHQi','user','ak_7172045b1b5b5507','2023-10-18 10:18:00',NULL);

