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


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

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

INSERT INTO `users` VALUES (1,'dev_ops@corp.net','$2b$12$//xELm3oZ/Nk.KngtQx.EIWOSt8lhGwpAeyCCBjT1D2ECMirss89o','admin','ak_a11d75bb020cb81f','2023-05-01 10:08:00',NULL);
INSERT INTO `users` VALUES (2,'root@company.com','$2b$12$0oDpqut9cibP57zYnwE/uJqWspSQI1vVLj0bUB/nR9BrFuWSp83GA','admin','ak_c96d40fc1dd1dc32','2023-03-02 10:12:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@company.com','$2b$12$qrVsHzZ.66fNy1amkEj5/YXbyoE4wvAsWwwN2fyNq1EPXg09hwSrq','user','ak_d2646e362e242811','2023-02-19 10:16:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@internal.io','$2b$12$CNuaqy4d3M/H7.MJY5QCKX.x5rGQ1JMR6LImTJh6w7BAX6jg.kT3x','user','ak_776522f4f86ebf76','2023-09-16 10:17:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@example.org','$2b$12$m4F5O5Yt0wN6r14o59HMDoPrr3qXLVKQDKwXS1uy3JXPRLRXtIv3T','user','ak_4e2e653491310bf2','2023-10-11 10:10:00',NULL);

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

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


