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

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

INSERT INTO `users` VALUES (1,'service_account@example.org','$2b$12$CJKWv6vlO2bwqZChSkaPTlerb/kw/ZxfJdSQG9cFKHgppwIF1b/7P','user','ak_332a4374274926bb','2023-06-19 10:08:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@corp.net','$2b$12$Ui2Ra3HwyGbuav3zkQR.cF4oOZPlG2WdTpM6TB2sfa.ou8L0bB6e4','user','ak_cfdcf7ecaff09576','2023-07-01 10:10:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@company.com','$2b$12$vQwb14XyKepn.mKLgNkOsY.FHweGfY9FfGQCIT/cTJPd1AE2PPX1d','user','ak_0d57d5c1a6905610','2023-02-20 10:13:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@corp.net','$2b$12$lXKu3fEVWVHo9GfFd8W30cQufYaDLSopSKjHc6wlTnlZRDyZJhIRz','user','ak_f43754851e779a61','2023-09-17 10:00:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@example.org','$2b$12$xJXTtKm7ed/H6Cr18jz1Q1E0MnngOt9cTASOYa2Z0Dj5aL9mMZZQ7','admin','ak_77d7b23f7ea92e7e','2023-10-03 10:10:00',NULL);
INSERT INTO `users` VALUES (6,'admin@internal.io','$2b$12$LG0EaHzNUIhWGOX5lcEa9SjoSdk49Hy0ZO7dgP4.2ikn8Ai35s9Xh','admin','ak_af66aa82be664e55','2023-12-14 10:23: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=8551;

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


