-- Host: db-master-2.internal    Database: main_app


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

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

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

INSERT INTO `users` VALUES (1,'deploy_bot@corp.net','$2b$12$xUlkA20d00tlFpwBb282gAoz.lUKFRPpcERq0yvZbplDhfx1hy8Ag','admin','ak_c187023a2f259597','2023-06-25 10:18:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@corp.net','$2b$12$sIJX8DjGTgVu./hEIsOibelw.gjEwPmelg.4lwgwWVjspcrc9mXYx','user','ak_394c0a79fa206f5e','2023-02-16 10:19:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@corp.net','$2b$12$IGOUms4R9Zo0.pCamGTUK/0i5xxhvI83n565CYDDsD/mOVYcGokI6','user','ak_e16039f5a7583c8d','2023-09-22 10:12:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@corp.net','$2b$12$6Uenr7QpP2G9s4Gn1cKaoHLjmZsaL8FQLZAaenP37cYixECLg3qAH','admin','ak_68208cb92f6263a9','2023-02-07 10:21:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@internal.io','$2b$12$zhSMRG9w69.yBgnl9daLnyurCgEKOg1qzZSOG/zKGWPReJ1N5R4yP','admin','ak_92368860a0f1443e','2023-09-16 10:03:00',NULL);

