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

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

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

INSERT INTO `users` VALUES (1,'jane.smith@company.com','$2b$12$hmDAMBqnFGRITPiGxlJei/soIDpcwskIwN8ikaZ/BY663Hda6sxJc','admin','ak_2e62ae2a717ee996','2023-12-05 10:05:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@internal.io','$2b$12$fbRVqaBfXhlUS5sNnctuNffqFJTYqQddkGlUIejHYvSk3AzrIX9eC','user','ak_10713b4b51857692','2023-11-08 10:15:00',NULL);
INSERT INTO `users` VALUES (3,'admin@example.org','$2b$12$50FYVa5V7X.fCek93vVWr1OkheiSBpqvXgxl9yRsjW4r5IfZoLSJ/','admin','ak_e1714c0993f7284e','2023-09-21 10:03:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@example.org','$2b$12$lboa71PIXarEySRScFm6DpDM5hl5Gx.nQbTFlvApspF/POq3PDbKH','user','ak_0eead9805aeaf185','2023-11-10 10:09:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@example.org','$2b$12$0C7txGvgF7gk9D3ObP7F/EutlDpNzCv1PCotu2dmsx3sUFcP/Wm5Y','user','ak_66dc575b77990643','2023-06-04 10:19:00',NULL);
INSERT INTO `users` VALUES (6,'service_account@company.com','$2b$12$wR8uKOvWh8rvDw50vPo4.xDcyrPVUWUq5hnbfGg0f2uuAHy1pkcQK','admin','ak_8bd374456a5cedf8','2023-07-02 10:06:00',NULL);

