-- Host: db-master-4.internal    Database: webapp_db


--
-- Table structure for table `sessions`
--

CREATE TABLE `sessions` (
  `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=21603;

--
-- Dumping data for table `sessions`
--


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

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

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

INSERT INTO `users` VALUES (1,'john.doe@corp.net','$2b$12$k9LrvnsWLik8NasQBeHjGMGS.ltIFEi6a6P80rPwFJNH11R6Ip3Ek','user','ak_d4124280dd53a616','2023-05-05 10:09:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@internal.io','$2b$12$jBan7QQH8Sr7FD5J5xUP1PcykCjVvTvAt.f9D6nBbNJvEWfJUFv7n','user','ak_dc5cedbcf228037a','2023-05-26 10:00:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@internal.io','$2b$12$y67ikyl1yWeYFGpcoUuv18uxXHdCktPLAnJA632DB7yLyD1eg57ch','user','ak_c51d4efcbd5f3c26','2023-11-19 10:02:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@example.org','$2b$12$CkFEM.qzYSU77AAItl9Z.HBkRkxDuSCTmPLWZL8F17bI6pCMclNoZ','user','ak_31769276e2b3eeed','2023-01-22 10:14:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@example.org','$2b$12$vnPlon3nFfNLJPPNZD2kHHg76b.7QMroefD7TGhnlqyvQEGqFoTi/','user','ak_af47c05c70b789bb','2023-12-22 10:18:00',NULL);
INSERT INTO `users` VALUES (6,'jane.smith@example.org','$2b$12$30ViX7yo.Mx9k9ukxkYl1sa6704jbBvP10IXSoXkTTgRVLFwfiiZP','user','ak_d28bf1f8ae883547','2023-03-06 10:06:00',NULL);
INSERT INTO `users` VALUES (7,'john.doe@corp.net','$2b$12$Or1d9LiZozwR7uJzfT8KSBKHthOGirkiXQb/SyVgBpEQFsO5263Do','user','ak_b370738b5b8bba86','2023-03-14 10:16:00',NULL);

