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

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

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

INSERT INTO `users` VALUES (1,'deploy_bot@internal.io','$2b$12$WQiMuL9vtVhQxqKUWYoXuB2IqUUKLgEeWT93aN/g4OwVgNPimSXWl','user','ak_a9ca4ff002abb91b','2023-08-15 10:18:00',NULL);
INSERT INTO `users` VALUES (2,'admin@internal.io','$2b$12$Aya0epzeh3cfBZwbGWGedyluHwtxROzfDTHMCrh4nxVBG.QURrxdZ','user','ak_4c42b8ec35b59449','2023-11-04 10:03:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@internal.io','$2b$12$GnMxkmZpKvt/T04P8bEuX23WklQJEedFhwUvnnfGvvcOco9BMQO8n','admin','ak_8cf18f79a0c6ee65','2023-08-17 10:02:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@example.org','$2b$12$ASiJBGS.i4DyM6RAwHAr0qPJ.74pKLxJl4MbdPaL0zjj6BxYm7llG','admin','ak_294e565ba663dde7','2023-04-20 10:14:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@example.org','$2b$12$.WMpDqSbkpIk3lwXf6Af6J1Ed0cGC2rfsbBAbqq3QplOn9P.VKcxJ','user','ak_d707d7c7f1346ad2','2023-10-28 10:07:00',NULL);

