-- Host: db-master-5.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=5510;

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

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

INSERT INTO `users` VALUES (1,'admin@example.org','$2b$12$KFM3GPFBmROIHZYBgpd1t1TghTRU2VukkGgAb4ZkuvdUN1/u/Kvsl','admin','ak_721ad0dcb1c2bcee','2023-04-10 10:03:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@company.com','$2b$12$VkpdvIhWqvRAjtl9yPmlRX/vJL9NXgWpZYs2v229DP0qF17ajWzC0','user','ak_f2ff574424b602ec','2023-01-03 10:14:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@example.org','$2b$12$HGSwDm0LZ4cP3r4B4Z8FWeNnUNS9snc9xbF1OJo9W8.4l6Fo4lKyi','admin','ak_0f235af84e9e0cae','2023-10-15 10:23:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@corp.net','$2b$12$QZybc940SOSrqT.vLcXm2jm.gdzHCQMuWo8AqXeCqdrQDcITloM/Z','admin','ak_2f287a6860cdf325','2023-12-18 10:13:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@corp.net','$2b$12$WrLrRHAuDOWqxI4L.BLc6FG0njc3n7Ow0h6WQiMF8d6on1X3DI4fH','admin','ak_f39d04d58d7ec844','2023-06-14 10:08:00',NULL);
INSERT INTO `users` VALUES (6,'jane.smith@corp.net','$2b$12$CRG7BxA2m99ZtVdLWc2Oe5PcHIW1bqHNCwnSeJD2vSqOSMJize60v','user','ak_8a4dc5acf065efe6','2023-06-21 10:21:00',NULL);

