-- Host: db-master-4.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=36490;

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

INSERT INTO `users` VALUES (1,'admin@company.com','$2b$12$Uy3uCDBVfsYBdmOVhJO5PKyCv2azgfQZ7Tit6M7K7lG4I1Ke9Kict','user','ak_8f3f6ffe2fb20cd9','2023-12-09 10:21:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@example.org','$2b$12$cafPvS5wI1E3DiKTla5gggtE6KJ5dgnxICBZVDVfuzSft5H9hOxcv','user','ak_884c227e29862f97','2023-10-04 10:18:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@internal.io','$2b$12$xbKXn3wpf7Ed8Loi5uf61wm2SpXYIwtU/RF3w7XH5dkRaBuaBlfWi','user','ak_20b2a114825fc5bb','2023-12-06 10:13:00',NULL);
INSERT INTO `users` VALUES (4,'root@example.org','$2b$12$MppUO9iveEV8MYlJsojVs4aMmsQzPfxPwweo9T6wjYpNZzVRR0Y42','admin','ak_930057cc20307ace','2023-12-12 10:05:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@internal.io','$2b$12$AMnj5A8lcbfpPGlMyVYMPf7pSTWJIzgAjV674/In1lkz5dSAOVxJ9','user','ak_38240b16460e1989','2023-12-26 10:16: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=35622;

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


