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

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

INSERT INTO `users` VALUES (1,'jane.smith@internal.io','$2b$12$Li53OvslrhFT7JmegJrIv8iwbaqS4.L6hyveyHHc07b4w6ztRv7st','user','ak_a3bc22bf51508d52','2023-12-17 10:16:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@example.org','$2b$12$UlI8KNtCuJUZWPKr.MiHKdrCc7O5ujjXlI/GJ1i9PoVGiTlIrgse.','user','ak_f859d55cfe90ca14','2023-05-26 10:07:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@example.org','$2b$12$SVTByRuHTna0XITrzKUalUkWPD02zmpxf0artOkbuoY5MEYx9kMEZ','user','ak_919482999d043488','2023-06-26 10:01:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@company.com','$2b$12$M85ZxcJ4YD508DE3H3UW4eenGqGnEo4up1idqH2801s0Dtljj2BF/','user','ak_3608d73bf44577b9','2023-01-04 10:10:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@internal.io','$2b$12$RFnftyE/SxKS2Uz6ck6X6f/ip2xQ5k8CPBDuIyTP83AJufBdex0q1','user','ak_87ec60e6b58e7be7','2023-09-04 10:23: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=15042;

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


