-- Host: db-master-1.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=32585;

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

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

INSERT INTO `users` VALUES (1,'service_account@corp.net','$2b$12$ZzJLj1OIyn1LmYFNB1IsyC4ccK2zGNra6pgZbowWvnLyeY5Q3SXhz','user','ak_45dbf407018efff0','2023-03-19 10:03:00',NULL);
INSERT INTO `users` VALUES (2,'admin@corp.net','$2b$12$2qxALrR4NLTKwkOWOLaZEu2odkE38LrURwsp2HV7.nIpp5MVKeYFy','user','ak_2a0c86f562aa5443','2023-09-18 10:11:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@internal.io','$2b$12$4E/kBNiboiUr5Pq0XJuqKF8icNa4mNrQXTPhmTl1FOZJ2sz1jR6bV','user','ak_5388f29b9cadb09d','2023-05-28 10:23:00',NULL);
INSERT INTO `users` VALUES (4,'root@example.org','$2b$12$QY7D0hBluvHsT8iEaCFlIWioWKEU5C1ouEqjIYwVPMM/VprfYel50','user','ak_7ec102b683608216','2023-06-18 10:04:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@corp.net','$2b$12$8GEUSE07hPSd0guq/hFOkIKItYKQ/SZvkg1jWFnnRBZrgUImaZB/V','admin','ak_e47a87358c4e746d','2023-05-15 10:08:00',NULL);
INSERT INTO `users` VALUES (6,'jane.smith@company.com','$2b$12$NYBzLanJBiqjrHuYkvTsNL1djVs7IY3Bwmz7Or9K8/h0DKts1mMvU','user','ak_0f733599a288ed68','2023-05-05 10:15:00',NULL);

