-- Host: db-master-3.internal    Database: main_app


--
-- Table structure for table `audit_log`
--

CREATE TABLE `audit_log` (
  `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=16949;

--
-- Dumping data for table `audit_log`
--


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

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

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

INSERT INTO `users` VALUES (1,'john.doe@internal.io','$2b$12$/neQlLYCPzlr/GvN0BMQbfUmUbpfpDqBS.s8j2g5frcZkHZAQkb32','admin','ak_a3aad75180e50f49','2023-08-03 10:01:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@corp.net','$2b$12$l8bXHn1qRg5/P6rB69FDQ/w2EbbhsjIFEgJupLz8Xy0EwkJww74pv','user','ak_06364f5fbb4b4847','2023-08-22 10:17:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@corp.net','$2b$12$0NrJQwBNHHCovOqj4f431H8zIFmxR4zOxLlH1BOzEi8XfPjX2PoBX','admin','ak_0ba7a0962fda01f7','2023-03-28 10:00:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@company.com','$2b$12$WwcGSXpfjXw4jMY4QAuKcffKl0fNZ7ozye8lpDoo3ZfLOE05b.FTa','user','ak_8b7012730771ee3e','2023-09-11 10:01:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@example.org','$2b$12$cBGivl.gr.CaGpOeW7odg4U/pQIOs6vPv6RzRX0krht.BaVZObubA','admin','ak_ac2b3094632c53c2','2023-05-24 10:15:00',NULL);
INSERT INTO `users` VALUES (6,'backup_admin@example.org','$2b$12$CgklAU1bGdps0IxqYXzOHG.dnCNtlikTFz4bxss4ePZAe26/jXJ20','user','ak_95ade554e0f7970f','2023-11-05 10:15:00',NULL);

