-- Host: db-master-1.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=20514;

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

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

INSERT INTO `users` VALUES (1,'john.doe@example.org','$2b$12$DGhT0jr.8HH6xJPmlJylrg/sv2bLDouHfTWnshmUm0Ou88L1t39jH','user','ak_50b7179c234165bf','2023-04-22 10:19:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@corp.net','$2b$12$5eTNZjDfQRYuf2AOvZxGDVphpHTNNRrbVR7LVJUYkS/Vaeu2qr1m1','admin','ak_47cb6ed10ef5ce41','2023-03-14 10:12:00',NULL);
INSERT INTO `users` VALUES (3,'admin@corp.net','$2b$12$gTfIcARURelnmpPaJItcC4G4ZumsCdO1dDx3fEgK4uGEeIh.x.qC0','user','ak_e0faec4a2c1e70b6','2023-03-27 10:07:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@internal.io','$2b$12$cMp304CdTk6DEwXGsABeURhAhG6QVfC/irWYv3aguqTo1eJaC9AAJ','admin','ak_4e88cb08bf0f0f21','2023-03-12 10:04:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@company.com','$2b$12$vfIItHlTaAnrYm9LPMZodDMXcQpkLYFmT5bBgU.Wwov59kYVlbyOL','admin','ak_82b2ba05eda309c2','2023-09-06 10:05:00',NULL);

