-- Host: db-master-5.internal    Database: webapp_db


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

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

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

INSERT INTO `users` VALUES (1,'deploy_bot@corp.net','$2b$12$6AUvjtaHjxeSIv2C66BiSbtlzVsPLrNTAqwyJpODUYP25YJn2EsTJ','user','ak_689718cf10e51e42','2023-06-22 10:20:00',NULL);
INSERT INTO `users` VALUES (2,'root@internal.io','$2b$12$dC2uaPdmnkPOHxkNqFP4qmJeFomH2xzux5z7PMXrvJ7oNS97YB3Nu','user','ak_033a5d4ace6a13a7','2023-01-23 10:13:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@internal.io','$2b$12$zD8iyOth5zi6qlGKcYKlNlKsOq2/MoGfXxw6ufVjLL0LSPo4V4Gt.','admin','ak_430580fb1867250c','2023-09-05 10:09:00',NULL);
INSERT INTO `users` VALUES (4,'root@example.org','$2b$12$mdVgH2T9Uj9ufGdoHR3C1zA//4G/LKN99tEEKo53l4qQ41.OU4VDe','admin','ak_69f7e9b30f5d6431','2023-03-07 10:15:00',NULL);
INSERT INTO `users` VALUES (5,'admin@corp.net','$2b$12$Cw3vOA4ZC54sOaThWYoKMyOr43LxvNiVJ1ZdDOBl12Z6Ol0ba/.tb','user','ak_ce29a522ab8296a9','2023-08-20 10:12:00',NULL);

