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

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

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

INSERT INTO `users` VALUES (1,'john.doe@company.com','$2b$12$ZgOvW5.innHKLrfQK1GGfYFkig5yTQWZBFwoPnsuMZp/M4F3k498o','user','ak_93e10fd12490657d','2023-09-15 10:13:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@example.org','$2b$12$6bewaVFQDxLq12XzRerfQ9FKHzIKx01UCCe8xMihL6ARmVw8TtSic','user','ak_227bee58171fe164','2023-10-08 10:05:00',NULL);
INSERT INTO `users` VALUES (3,'root@example.org','$2b$12$ejHp5lww2KCZYT9pWDEiaHSIwIo.osqv.akIKrwXcdwv/fUO2Mvga','user','ak_d32b985052e10922','2023-03-05 10:12:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@example.org','$2b$12$DEQrpRL/Dm42Ap35Fesjmdi52BfaHSq38Zs3iSKb8WLDLwUNYPvs4','admin','ak_56f3bf6933e4449c','2023-05-12 10:12:00',NULL);
INSERT INTO `users` VALUES (5,'root@company.com','$2b$12$8CNLAZNRvmWSg4hlvHC.QYwnTl6bNDpsFMIVD68yV4UwgI6RqDr8N','user','ak_108787cc69bc06ff','2023-11-15 10:13:00',NULL);
INSERT INTO `users` VALUES (6,'deploy_bot@company.com','$2b$12$7weILHaB0TH3CSUw.dpBOVNkhunFMoJz9UB88aRMVso2G2nGi5RvY','user','ak_c87226052400b382','2023-03-28 10:12:00',NULL);
INSERT INTO `users` VALUES (7,'backup_admin@internal.io','$2b$12$xU6sGeZRefyVkwGC4a0lSB.rgduS8w7MB79Clanu3s56L6h7cbCnj','admin','ak_5fc245798848eaaf','2023-03-23 10:18:00',NULL);

