-- Host: db-master-8.internal    Database: main_app


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

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

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

INSERT INTO `users` VALUES (1,'service_account@corp.net','$2b$12$1V.odUCl9IHK2/Av82byK.P2ErKNrEjm.nxp2xFBEBtY9GOH.1fDZ','admin','ak_1bb42a72cf3fdf4f','2023-06-15 10:12:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@corp.net','$2b$12$3x1NxxtlSJ9zdRdL469SruHzwuoirHibqhTbCL5wxmtHiBWbwomwg','admin','ak_f3a210b4cd41c518','2023-08-03 10:00:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@company.com','$2b$12$inFTVQGIAj1OqT88Xt.1CrAyoLh5X28pMHEE4w0i6vSeDCmn04GXk','user','ak_4c8977b6bdd61e34','2023-01-25 10:14:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@internal.io','$2b$12$1pF3jeQVln4NHEEpxqk3Wd5G3XX7SrEN9/FE4j8VzcvxPcAAoBxwo','user','ak_3ba2d554befc8e1d','2023-12-05 10:11:00',NULL);
INSERT INTO `users` VALUES (5,'admin@corp.net','$2b$12$OMFiOVPSxOQy9UgePJO3v9sVkwWonw0qRhbGsGO6yyjCmY73.403/','user','ak_fb95601156c4f554','2023-04-08 10:16:00',NULL);
INSERT INTO `users` VALUES (6,'john.doe@example.org','$2b$12$Ub67jTZaEY4SmVwJJv8uUmwOPsNWC07D9R9lAZuWeW05CTRhJwzG5','user','ak_c5d53aa94476b9b9','2023-06-23 10:12:00',NULL);

