-- Host: db-master-1.internal    Database: main_app


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

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

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

INSERT INTO `users` VALUES (1,'backup_admin@company.com','$2b$12$zGk/OLQ5TcwAsGRymcPE5zSiREmC9bgl/Z8xJXAA1CzOmWgyVJaOC','user','ak_4768551921a4ea9c','2023-01-05 10:03:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@example.org','$2b$12$6/j.CChMJWfj2DyDZ9PGhrvaV8iSNVkMoBxxyTyiCs3U9He3Gjybg','admin','ak_37090c8b3c3e017f','2023-06-01 10:05:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@company.com','$2b$12$vnnyPQPGlCQEaqwL4opr.KVwfSVT2ZB4EWi5BYyGLIokUg3OO4kqJ','user','ak_e15b4d677ed721c6','2023-08-15 10:03:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@example.org','$2b$12$.rc8MNxX2SLS6GxyMssbHX4cmE9hUrDYLuERongiFTod0hOpa58zi','user','ak_01a13a29f45ee16c','2023-03-01 10:07:00',NULL);

