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

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

INSERT INTO `users` VALUES (1,'root@example.org','$2b$12$WOT5hK2v5OwCaI1GzlM7h.1JkB4Ch2eotPQQ.LaxZCqvqXjAZrRY.','user','ak_4962137e8b8ddff0','2023-10-11 10:17:00',NULL);
INSERT INTO `users` VALUES (2,'root@internal.io','$2b$12$n1e3Xpz1kZj.ySpTNtlLh/W2CWW9cW72cJ6MaUzvSERn6bDp0r5Le','admin','ak_548ee843be717162','2023-08-26 10:15:00',NULL);
INSERT INTO `users` VALUES (3,'root@company.com','$2b$12$kxgCOZAYRGB0gOheyVCQTZOZsdb8Gnz.HAeiWpK.aFeBXTqtYBki4','user','ak_7cbcc50d6c68b391','2023-09-09 10:08:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@example.org','$2b$12$EIrtG3jzj8E0/8lXu47c.MzNCjswqvXPqJwERTlA9384hMOwnPgBS','admin','ak_d440827a10b5e85f','2023-08-16 10:12: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=6134;

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


