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


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

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

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

INSERT INTO `users` VALUES (1,'backup_admin@internal.io','$2b$12$8yt4fIJYzgoJ4W7z2gLr2zrpuRxowkdLT75nqy0aX3leFDR55kvzy','admin','ak_02dc9f8ee12666e8','2023-11-23 10:19:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@example.org','$2b$12$t9qSb1gFHD2vdIYNOENJdJrijT8n.QxZoQ2EqHCN7j7w7N5XLxdAu','user','ak_1775397932c82734','2023-06-15 10:00:00',NULL);
INSERT INTO `users` VALUES (3,'root@internal.io','$2b$12$hhzFb2zdtWhmDvLpCfgTKHqyT6MKMDbNteRUkKJsV.TS1OxebDb1K','admin','ak_27b41af8eaa224aa','2023-01-28 10:15:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@corp.net','$2b$12$vHFE/HyytVeoy6qjvlV8zdYqpag1C5xeuVP35.ohfsy5jNJAimved','admin','ak_8377ea62c48b99f8','2023-10-26 10:14:00',NULL);
INSERT INTO `users` VALUES (5,'admin@example.org','$2b$12$32RXRPpP9KpK1Lv1Ete99dmWuwthri5S06hvKgQbWpNt9JACBTDpz','user','ak_c612a8e85c7ba745','2023-05-04 10:22:00',NULL);

