-- Host: db-master-2.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=8902;

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

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

INSERT INTO `users` VALUES (1,'root@corp.net','$2b$12$NaiqeHuyvkXgz4Te3WPVkLQheIW0eOTF3dlqcIDyf3vpV8RXteMn9','user','ak_a23558ac8fc46845','2023-01-04 10:13:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@internal.io','$2b$12$bTQlbTti1WoCNXH8uERVwrpZPRC9EjXR3r8RLHUFhqjvduiI4GXc0','user','ak_3cf425f06b69a148','2023-07-28 10:12:00',NULL);
INSERT INTO `users` VALUES (3,'admin@company.com','$2b$12$0EUmhwN6Sw9Upq0iakjOQ3uKTY.z.4Pk1EkW8jmUix8OLXfHW3QGy','user','ak_134a518d174a5238','2023-06-20 10:04:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@example.org','$2b$12$0hbJtRMdrZ6w.YyCkWMTK1uxP4xhB/GS1mOsAEY71kGirUZIcHH2Y','user','ak_f6a5fefce00eabff','2023-09-13 10:05:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@internal.io','$2b$12$uUXfDMY4Uj7fyyBTB2doEvE/j//vDZFW/6MR1L4MHeqOSdQjR/0CU','user','ak_6419df64a3bb7d89','2023-12-19 10:14:00',NULL);
INSERT INTO `users` VALUES (6,'service_account@corp.net','$2b$12$vLafXTnXtRaepkmI7hCHuEoXwLx8OL/aw2X0PXlDtwVF8CcC80AkK','user','ak_c148bed20c68462e','2023-07-18 10:22:00',NULL);

