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

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


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

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


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

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

INSERT INTO `users` VALUES (1,'root@internal.io','$2b$12$m8XLaRulPu7k./QgqPCO/nlmQyINtI7tNKmFcWESj0YQpCUT//1Vk','admin','ak_abd9f3dac7674250','2023-08-23 10:10:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@example.org','$2b$12$TYeaVWBt19brM2aVCup1QqxFS1X5CNIQtV/4aGXkeJBWUZfA5gqUT','admin','ak_1f23aa50823fc0b8','2023-05-17 10:19:00',NULL);
INSERT INTO `users` VALUES (3,'root@corp.net','$2b$12$DGrFxRpI4nvn2ReYvpnP6fhcGCHCmFouS.HKCA63k2BBugdoy8IQR','user','ak_6f6094f90f698d89','2023-01-24 10:09:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@example.org','$2b$12$hz4JEofPXkDd.LHyz2Dl4XRTy6Iw5o7fXbSGJlIZwKjTHzos4L4ds','user','ak_ea28bda7ed96f512','2023-09-16 10:22:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@company.com','$2b$12$yy1ikPMf99MgjBiSwcREcfySPkLy0mJ2hKTM7A9TQLEeOugpiFA/U','admin','ak_3f02f26825865a0c','2023-04-14 10:06:00',NULL);

