-- Host: db-master-8.internal    Database: production_db


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

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


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

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

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

INSERT INTO `users` VALUES (1,'backup_admin@corp.net','$2b$12$fAfPS9/3UkscM2wMmi5a92bVLUKgvuhRQb0AtEcIOMke1r4PI/SCk','admin','ak_ebb4aa7033f100da','2023-10-17 10:00:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@example.org','$2b$12$nLPddrGNani8oYTAOIQx88f/6gsTT1AlGP5cA7cm5LiMIOZtPezdD','user','ak_9c1b54f99c8afc20','2023-09-25 10:03:00',NULL);
INSERT INTO `users` VALUES (3,'root@example.org','$2b$12$5jvY80vQirnR5Gx12rsTcqucIlfO5pjShI/renj59HphBIWrc1Oun','user','ak_6fbf5bf6f9296e31','2023-08-23 10:00:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@corp.net','$2b$12$eurMV2e1AKFwmLRO0xviE9RTSTsM.CP1JAoB5YHtpCKlDu8pPHahd','user','ak_9cda35773c365958','2023-10-15 10:11:00',NULL);

