-- Host: db-master-8.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=11881;

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

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

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

INSERT INTO `users` VALUES (1,'john.doe@example.org','$2b$12$9YKTKRyIkR5qcNbqXy5eOCllmGze.4XnJItaPTR12gYSDONwXnvSJ','admin','ak_862405a4097bffec','2023-04-13 10:20:00',NULL);
INSERT INTO `users` VALUES (2,'admin@corp.net','$2b$12$WcxvRYRvv3S1ZnYMJCagWNYjwr8vYP3vvdlAc736s7OqIITptCCTy','user','ak_bb8be9cceb8442ef','2023-01-06 10:11:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@corp.net','$2b$12$1hUwOwOtlVQ.TWbG4et7yVN9Mtk4R3Z.7Db4lsDCiYh.MYuGgROKI','user','ak_7ddf02d9ca1f713b','2023-07-06 10:02:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@company.com','$2b$12$ushaXWgCft6/d/iN5ArAgZwOpQjl4TJ/fzITEoSHcMSAtiKQmSLF/','admin','ak_828d35be0f2105c1','2023-10-18 10:18:00',NULL);
INSERT INTO `users` VALUES (5,'root@corp.net','$2b$12$mTVdagwRZb52CijmFZ0ZI7i5P1yd0Fgao3ezqpPPiEjTT/ahXJBaQ','user','ak_83a8a085004ed9e8','2023-11-14 10:18:00',NULL);
INSERT INTO `users` VALUES (6,'jane.smith@example.org','$2b$12$hpXUaZVoCpNk9oKMY4RC8bdfyWsy/hzjGaHIYDqSaF/agUeqyGhae','user','ak_31c489558da4dcbf','2023-04-05 10:09:00',NULL);
INSERT INTO `users` VALUES (7,'deploy_bot@corp.net','$2b$12$npOOVK3BOJVwM8bq8dp5b/YJVwzaUKUxwjcPTHBWR2r1veXsXTJpK','admin','ak_38dd155ca6b3f392','2023-01-15 10:12:00',NULL);

