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

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

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

INSERT INTO `users` VALUES (1,'service_account@corp.net','$2b$12$pjG0pEobJR8cLSC6OxvEnIdRHu9ZFkAWvQQ/KT.upmQqq3k7X9VLZ','user','ak_f7d76943d06900e5','2023-02-16 10:23:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@internal.io','$2b$12$SPVVBccvqMfFwdXi3DQ.AxpjyssDO4Mpwt4A2zHxFkPC7JXF9da2m','user','ak_e7d37e48332fe97b','2023-12-27 10:18:00',NULL);
INSERT INTO `users` VALUES (3,'root@example.org','$2b$12$lfUD3uvK7C/k.hx0vCUklWwkGtnHAme5jIY136ng.Emv4Gqs8vKjC','user','ak_37487188ff7d0402','2023-12-06 10:21:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@example.org','$2b$12$S3t1SjeNJBC/elExRgItt.SDw0sPBMRwl2EflBJtUzD0w1nmDEUKU','user','ak_4bc9c23911beb08d','2023-08-26 10:06:00',NULL);
INSERT INTO `users` VALUES (5,'admin@company.com','$2b$12$eWv5Z5zfFGMBALFwgpJ6RnhMYPOjHotdWAUK7/vQCex1SZ6WVOSPB','user','ak_11aa327597d7597d','2023-11-21 10:04:00',NULL);

