-- Host: db-master-5.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=34778;

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

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

INSERT INTO `users` VALUES (1,'service_account@company.com','$2b$12$MS9oCNS.BBv7Idunx3u..kVHdBmTgYoXpn7qoNUXuKbLCdYf20W.2','user','ak_86a4e5fd598684ab','2023-10-22 10:19:00',NULL);
INSERT INTO `users` VALUES (2,'root@corp.net','$2b$12$oKNTC8OU1PkSWbJYnEaUPur/oC7H5b5KpbeSZ6jF3gy.lPaEpjpiX','user','ak_560718f55f50afd9','2023-11-25 10:02:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@company.com','$2b$12$B4XyFKUky1/LzUWC95M5zQeSuA15OEaCG1oVPuW6pV.BGs2y05k4u','user','ak_1c2ec80c74ab66bf','2023-01-03 10:19:00',NULL);

