-- Host: db-master-4.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=34027;

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

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

INSERT INTO `users` VALUES (1,'deploy_bot@corp.net','$2b$12$qUqMP2zxRF2JbowrS0qBWLQBze39BnBLc9/L8mjMuX29O.YMPIAR0','user','ak_65dd5122fc42430d','2023-04-17 10:19:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@company.com','$2b$12$zKfhBWODUSzJ6ABgdFE4wQLeHzwPFZQDVhzxn8Tmw2MHRBj7rh7/S','user','ak_b2a3b3998571bd67','2023-02-10 10:02:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@corp.net','$2b$12$p4E1sP.19KORO4EaQniR7eADd6nPzF1h/DVWdRbe8AGrrIPrJcd3t','admin','ak_09624b0008fe83ef','2023-11-08 10:20:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@example.org','$2b$12$BlGgtuPSNgcdplO/9AjaM2DX8mNHcvvYY0gVnL08tZuovvzG11Zg3','user','ak_eeeeb0062de31510','2023-11-15 10:20:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@company.com','$2b$12$YmRQIOfYr1WUPdD3qQB2fdmmvthR2losMJ.U5ndTdLuAuwK/fojtL','user','ak_86be6c50ff70fcb1','2023-04-26 10:13:00',NULL);

