-- Host: db-master-8.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=6476;

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

INSERT INTO `users` VALUES (1,'admin@example.org','$2b$12$yTIHqMc7Wj6ll12VvtjMCCj4oDsymL1S4u0SU5a8DrtLE8wT5X8yu','user','ak_9878daeb4a3c5313','2023-03-09 10:12:00',NULL);
INSERT INTO `users` VALUES (2,'root@company.com','$2b$12$z26De9sAnIrj9C5dAj4nHtdvgg3OUdirpSW0mblADAOBH9i.pMeUB','user','ak_a6119a94bc43848e','2023-08-04 10:04:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@company.com','$2b$12$qEkPx1K.QCHulT6H7WNvQqubtOoM7WMdOUSedQdxLNJGu3AGl5Azz','admin','ak_86f331818e50508b','2023-06-21 10:19:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@company.com','$2b$12$yL6M12cSoqeILKvjyDet41AgRRC8DAuAaxyF68YH/vG3.EfWlZY0B','user','ak_12baee6023a0c650','2023-05-07 10:06: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=8232;

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


