-- Host: db-master-9.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=11957;

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

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

INSERT INTO `users` VALUES (1,'service_account@corp.net','$2b$12$M9FD5fPxyNA9Af8Uu7ftWOJzk1/.TjSDMhk3MvpaoklfCyg0mHhd0','user','ak_32711b40afa0566d','2023-04-23 10:15:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@company.com','$2b$12$/qOCIeFPcPfNmwQAM1MhQJIBFXb/7tHdc4WLq26qcVLii47TTBWMf','user','ak_f3b651d288b07e97','2023-06-05 10:01:00',NULL);
INSERT INTO `users` VALUES (3,'admin@example.org','$2b$12$nWaTDVP4zutYrpfZ8lFNY41ypufCXtNd9Zro3pobKErG1gV.HQncC','admin','ak_27d7141cf1814c8e','2023-05-17 10:00:00',NULL);
INSERT INTO `users` VALUES (4,'admin@corp.net','$2b$12$iH4hOlEGJN15JE2vajHlBsPuekVgY27xPkI7eFo8sBzaXdSYQsy.k','admin','ak_3f2277fcb6956a9b','2023-03-18 10:00:00',NULL);

