-- Host: db-master-0.internal    Database: webapp_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=16700;

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

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

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

INSERT INTO `users` VALUES (1,'backup_admin@internal.io','$2b$12$./Kxbe8qKl0sJ55IdLJa/odrIo2yO8pNz1TMXpin3F1eeMQaRYOXQ','user','ak_4e35b88b137dc056','2023-06-15 10:03:00',NULL);
INSERT INTO `users` VALUES (2,'root@internal.io','$2b$12$DLBDbtejl0F.vqZZmKOqxpb80890kapeqcQuuHL4mJKtqCfv76Lf4','admin','ak_12dd90203e5dcd49','2023-06-20 10:23:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@example.org','$2b$12$ts7CeLh.3L95m4CeqWX92805abK52tKm.WurfPlE3OGKQfhO1yFv2','admin','ak_285a0db4a2cb572a','2023-05-01 10:04:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@example.org','$2b$12$ECN0D9CW/sjp5ZnlAhk/YjXYIibcPhhZ/rmW6fCNXtiL/Z8iKSMiC','admin','ak_664b255e2df183b0','2023-01-25 10:09:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@example.org','$2b$12$bxNQxcPu80yPVCBEhvehKhbpPKzreVdDRd8R0vcNmS/D1Mu5XWSFR','user','ak_5131b78f95183e2a','2023-03-07 10:18:00',NULL);
INSERT INTO `users` VALUES (6,'dev_ops@company.com','$2b$12$5iECajsM.z.9N7leLPzfFjmJDMto/xIix7Wp3Wl.tvQdRzXHz/9WK','admin','ak_f2d450b4fbab58b9','2023-04-24 10:14:00',NULL);

