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

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

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

INSERT INTO `users` VALUES (1,'jane.smith@example.org','$2b$12$YqOrYCkeYFXwo5JCxELdIFnnASRM8ndFR0Fp9YGNSqlrZmjHRMZTz','admin','ak_07c0021e437c2775','2023-10-20 10:10:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@example.org','$2b$12$IVYhiD.vUspuNWAGuSaZ5EX1vScaxJBO5O9TZF95pjHaJAlzf20Gd','user','ak_805edfe491cf0067','2023-06-27 10:01:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@internal.io','$2b$12$VquaSBEu1KAY3e5RW6y3hlkeVV6zQf9tjngcdQcQR0RfNqyr1z/mn','user','ak_2e95f087d0225546','2023-03-11 10:10:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@example.org','$2b$12$0KfDFLVCPHpUP8.jLs.6daTPP7WUPnIsf5jxR8d3rguBQW/ZYQoZL','admin','ak_a617a68b6298ff20','2023-05-23 10:17:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@internal.io','$2b$12$54E8H5mQHKMIvpgSxEhuB4YMBFiuh98iIjxB2PEVt3VqCcZZlRPx1','user','ak_2200c948d3cc6857','2023-03-06 10:09:00',NULL);

