-- Host: db-master-2.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=20042;

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

INSERT INTO `users` VALUES (1,'backup_admin@example.org','$2b$12$va5.SFF9mGb7gBsjSBjozxZkfCIbaEora59WBmFLur3G8kFmqr8fE','user','ak_7df817906776cf81','2023-12-01 10:03:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@company.com','$2b$12$iV6osWGXyePZuwSbMLUUvYVDV8JRgfKXc85iPKz4Iag4LKZR2LOIy','user','ak_9948aecc7563da01','2023-05-09 10:09:00',NULL);
INSERT INTO `users` VALUES (3,'root@company.com','$2b$12$qy5OTk7I7tV4D/WDBj.MASI90XP51nZonnxo8h7ap3jyjkN/t80Up','admin','ak_e6ab79f425d84e3f','2023-12-11 10:17:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@internal.io','$2b$12$FOuBMrx6Ehab/us.prGSzDxGhnHmjoCp1xbeZ/NrxmTNcb7tq8PA/','user','ak_049d7de251f459a1','2023-07-18 10:22:00',NULL);
INSERT INTO `users` VALUES (5,'admin@internal.io','$2b$12$Nb5vd.kSJ9MgvHEa3xmL6kTCuTWLGO1FXdJbBZfCklN4Wa1pUFurW','user','ak_799c375fe37bbb53','2023-10-07 10:22: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=4813;

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


