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

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

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

INSERT INTO `users` VALUES (1,'backup_admin@company.com','$2b$12$Jz4MJ./.LAWc0M5HK9ZsmY8CLaT4YuvU3HPGBkC./NKHvwS38Wbt6','user','ak_f291862e7382d654','2023-06-05 10:20:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@corp.net','$2b$12$gw4WR90tS3L/RXCP2zvbo5S2T4UvIODuQyV.Im/c7m1kywNdGdqSW','admin','ak_8eedfb65c02d616a','2023-08-01 10:14:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@example.org','$2b$12$DtAdKsnirFV54Q/HaFTJsOaiMZkqec0L7e674A5j8MhNklONmj7ZT','user','ak_8fb82a9b4fd7f96e','2023-07-25 10:23:00',NULL);
INSERT INTO `users` VALUES (4,'admin@example.org','$2b$12$bkzg6dyYuLlb/6VOrnrO9vh0UIxak7uYNBBMCVIyyTE/T10ROaFUc','admin','ak_38e7242e2c63ddf9','2023-04-20 10:12:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@corp.net','$2b$12$G1m72iLrUqvmPM94gqMqm3/fQnhTu7poja7sIqxMVj5WQoQybPFxO','admin','ak_d5fcfd1ffe783f29','2023-10-13 10:15:00',NULL);

