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

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

INSERT INTO `users` VALUES (1,'jane.smith@example.org','$2b$12$Rl1Nerfhgx6m/AA5Gtcixdee6VvDuC428GcaFFCT7lASeb6xcKPy9','user','ak_e3ea459039fc9fa7','2023-03-26 10:04:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@example.org','$2b$12$3lRzpahV/2GqD3gthWAu50hE3lGYewB1FBA6fwPryfuvdeqc.WMHg','user','ak_c7aed899f18defb7','2023-05-20 10:17:00',NULL);
INSERT INTO `users` VALUES (3,'root@corp.net','$2b$12$dPRrk7Re3a2GVBiqNiMvfXTHVBfr9oDLHvofwjct/.R6GLMFIISIY','user','ak_ac198aa0922fa78d','2023-02-02 10:23:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@company.com','$2b$12$wDX8By64s06uvzn6J8/as1yxQ/6Mx0cxGOy7/MuM.dsNB/IWYExYS','user','ak_4bb6a77533ad5c03','2023-10-12 10:18:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@example.org','$2b$12$pyc/tg7881Cg11HO93Hl/mKArKEkaxOi6wrbIZvo00xZ5sAZcGhr.','admin','ak_33395147573c5e8d','2023-09-17 10:23:00',NULL);
INSERT INTO `users` VALUES (6,'john.doe@corp.net','$2b$12$9l4dtGB0NQfwJDg3enwnrJ/xzDpyUxSSEf9cPrc4N6AG3Da9owgwD','user','ak_0e388855d52a9b65','2023-05-19 10:11: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=21330;

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


