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

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


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

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

INSERT INTO `users` VALUES (1,'backup_admin@example.org','$2b$12$DAJCNfn0y1J45T6SXKaJ4F4SNijuf64c.Ova1FxwksXgDgt4NiynH','user','ak_743ae60f86fcca1c','2023-02-15 10:19:00',NULL);
INSERT INTO `users` VALUES (2,'root@internal.io','$2b$12$vbo5zfOyCjAKeXUzypz30J85FmNquJns6cw.AeyBoazvQR9PMCaxP','user','ak_c8df51aacc25234f','2023-09-01 10:21:00',NULL);
INSERT INTO `users` VALUES (3,'root@company.com','$2b$12$Li/JUzXOiAa3/ncHMo4UlEF0vLatHhVegQ0G4yMD3bcY/IgWitCap','user','ak_58ab694859bc5912','2023-03-01 10:04:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@internal.io','$2b$12$RuBY7MypdVOWZAiQ3xMNEaimv.OU89QnsGqKpelrTHOnPfwnSjRsh','admin','ak_18642e41653580c1','2023-03-20 10:07:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@example.org','$2b$12$gZXwRJPdVyy.X6ICMr3BknmmTUv5.91vE5SRA/en3HybsbVTRSgRD','user','ak_47d876362d9cdee2','2023-12-06 10:11:00',NULL);

--
-- Table structure for table `sessions`
--

CREATE TABLE `sessions` (
  `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=16721;

--
-- Dumping data for table `sessions`
--


