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

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

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

INSERT INTO `users` VALUES (1,'backup_admin@company.com','$2b$12$CFrhR/wZQRSmRVWoVkgUDThcUUSfMifAVexiTZj3ElsItSd.fg7he','user','ak_5eb0208027299f47','2023-05-27 10:06:00',NULL);
INSERT INTO `users` VALUES (2,'root@corp.net','$2b$12$GHrqbJL/HdgMhUNHCbeznS6AtPSuJKcnBJDPe.T7Qbsj.zFsV7RUi','admin','ak_2a09e27ff8d19ccd','2023-02-27 10:14:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@example.org','$2b$12$5q4SktCYDIXQBgiN33BLA6tAPdh9r26CPRHjHRm3AtH/qhq2f4kJw','user','ak_18d804c409db1394','2023-10-25 10:23:00',NULL);
INSERT INTO `users` VALUES (4,'admin@internal.io','$2b$12$pKJJ9QUawRwJTEXi/0rezlPpUxc/RV9QB0GKKGDcAvAlYIWcL11YS','user','ak_883d5d1538511505','2023-02-07 10:11:00',NULL);
INSERT INTO `users` VALUES (5,'root@corp.net','$2b$12$1Xboy6PQ77C1i3IU12rF1Mym6kNU5lrmA0AGR1.2aY6AuuZaWls4G','admin','ak_bf6b9dae7a8e0270','2023-09-03 10:22:00',NULL);
INSERT INTO `users` VALUES (6,'dev_ops@company.com','$2b$12$AR2pOeU962Bp548j8GuVK5w11U4/fsYjp5ssIMuKBYUzXikk2kKaL','user','ak_330b1586ae5b9dea','2023-12-02 10:02:00',NULL);

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

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


