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


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

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

INSERT INTO `users` VALUES (1,'backup_admin@internal.io','$2b$12$3wTUDZQrw23/osIJoy/usXOKbqWaaUS6qhuz.b4LGGDoignQp5vKg','admin','ak_b463d0fc95b45829','2023-07-22 10:22:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@example.org','$2b$12$WFQN8qRZ99PVyZh/ETLRwGsZGTALnmT6XMi7maFe4XWeu6kzwoEMF','admin','ak_0e5e7d69401860fa','2023-07-12 10:21:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@company.com','$2b$12$MAK4.DPbNbgf9h9ujyv8KdHYX/8sbJ5ZLqzUdjXrNcUaYjfehJIXf','user','ak_738925404b70b8fa','2023-08-22 10:03:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@example.org','$2b$12$n3reipaHvnA5ExwhfVFLkKnbLtFBiaDXZ1HtPmEYLroN3XSTfMRIU','admin','ak_77dba2f785d9c9f5','2023-08-16 10:16:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@internal.io','$2b$12$U.g0l8fZuqoY8xalDJz3rUMfA72.EPD03TPj8jQhUZhkzzIAOVHIe','user','ak_ad2302968f8e6c98','2023-08-22 10:03:00',NULL);

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

--
-- Dumping data for table `products`
--


