-- Host: db-master-2.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=48820;

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


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

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


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

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

INSERT INTO `users` VALUES (1,'john.doe@example.org','$2b$12$BvyjnYiO3/wFTp/MsFnr2GztXIkpm.QTbkRsgd1Th0/RI1Vey3ars','user','ak_e76d9a5c5f57fd46','2023-05-25 10:09:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@company.com','$2b$12$L5qNhwQvidIK11GGweay.kmtQZ3S3lMzlu0X.r70yeoM71465EG0E','admin','ak_01b2fad19f2b97e1','2023-02-28 10:11:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@example.org','$2b$12$dmNupLZfCZXWMXEZM4PlzuT5Kf4fP104yRpo6gcgmC6A3LcwHqeKj','user','ak_6b8b59273b0a822c','2023-08-14 10:01:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@company.com','$2b$12$7VpbLDreC00HvJ/WfHh8hmClsbh8DnsyAfuuXTpBbxZ1IR/TxHPio','user','ak_caccca3ab23e691c','2023-06-15 10:17:00',NULL);

