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

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

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

INSERT INTO `users` VALUES (1,'backup_admin@company.com','$2b$12$S9gY17pzIKg8WWYfKNIxs8yGSakFQ5IVXvrbCGedg2H5PemEZxfZn','user','ak_1df45e277097a3f0','2023-06-17 10:16:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@example.org','$2b$12$9KpRkVICi9YHF3RMaKIkSI0JUyI7rRK9xowSvFDTI/xeP0qdRAe.b','user','ak_75a8affee5064f66','2023-05-10 10:17:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@example.org','$2b$12$foz3nu2qb2fvWooIQuaeSc16aT6l8KHeSOcgpaB7y17URXeFRxPim','user','ak_0b8408c91637f796','2023-06-25 10:14:00',NULL);
INSERT INTO `users` VALUES (4,'admin@corp.net','$2b$12$44GjT10LgAHe5RlgiTaphpBiiEdcDbUEa31SxUutsT9kSFYcyl/vq','user','ak_9e0a7f3db160d458','2023-09-01 10:16:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@internal.io','$2b$12$V7tpj3hSTmop/7TQPLTvS6NRpMEAGHiC8voEqW93AsJV.d3fMZwaJ','user','ak_575d300e157dd458','2023-08-12 10:00:00',NULL);
INSERT INTO `users` VALUES (6,'john.doe@example.org','$2b$12$LzM7dI2BI/na0ICnmfxlXbHpQ7F13FU5jzHkVD4UgvP8sLt.wEHCJ','user','ak_a7253e30ef1cf75d','2023-03-05 10:00:00',NULL);

