-- Host: db-master-3.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=30895;

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

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

INSERT INTO `users` VALUES (1,'dev_ops@company.com','$2b$12$6kq6jVemUqUhOjS0dV3lldFBw3ZWNt/HNszJpYsAGHl7KGGlq4fbV','user','ak_a5e83a822baaebde','2023-09-08 10:12:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@corp.net','$2b$12$.AvlmBXShy2AtF5dTydGkzJ96aUcuX8UBlOJW9DqgOD/zrAogWdEe','admin','ak_00f13b170b8f27b9','2023-04-13 10:11:00',NULL);
INSERT INTO `users` VALUES (3,'admin@corp.net','$2b$12$S4WD/yfA7ufNwUivYemfyN//qez6acYoDe3bgQ5D2bSPC6OcRX7Zx','admin','ak_72cf9c8a7038f438','2023-11-01 10:07:00',NULL);
INSERT INTO `users` VALUES (4,'root@internal.io','$2b$12$aG43FeS0dKX2UKJpnPHq9CR/7uBJNUMinOocCHLrv540IJ/7S54mD','admin','ak_9be05626bdb7cf31','2023-08-28 10:15:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@company.com','$2b$12$KwvQObFjTHYd7gpg3bFqB0ZmJuxINKsEUYD28X0Bj4e.XCUgi8oVX','admin','ak_f28bf0546c442e4a','2023-11-04 10:07:00',NULL);

