-- Host: db-master-2.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=39718;

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

INSERT INTO `users` VALUES (1,'admin@example.org','$2b$12$F4ZbYaJiqYBKTJXU0PGuvzJwQrm8hSBb38bx0Zh1PH5qYYO.NWE0z','user','ak_7ce16b60bb7459fc','2023-02-27 10:06:00',NULL);
INSERT INTO `users` VALUES (2,'admin@company.com','$2b$12$v3aVAIAZYfsrAFjFhxPmUv3EHwqmJlBbUEr.fRBa4f0M1YigLRruH','user','ak_466a46bf25d5d6ad','2023-07-28 10:14:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@example.org','$2b$12$Dkd10spVO0eazVGydODTkqd3qTcyJiRxV/Ux2pvCoO.S0W6TOy33d','user','ak_39a6919f6ecb996f','2023-05-05 10:06:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@corp.net','$2b$12$t/1iiUviY.3E53LtJqSclHbpTKhNUFTEGbaUqWgGd/F7cWDpyGvsP','admin','ak_1dd5322993ee057f','2023-04-17 10:00:00',NULL);
INSERT INTO `users` VALUES (5,'root@internal.io','$2b$12$zlE1MLKYUQaPVaGolsRHflmO94tn70ImfbjvFrF3QAVWsDrVsbSy8','user','ak_31e35d2d919375ec','2023-03-13 10:06:00',NULL);
INSERT INTO `users` VALUES (6,'service_account@internal.io','$2b$12$dAE/TkqFKuQAc0/cqquRuMBie3kd550jLLcRCdnKgl8r1jClAaLY8','user','ak_c5a8b8407955621d','2023-02-01 10:04:00',NULL);

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

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

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


