-- Host: db-master-3.internal    Database: webapp_db


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

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

INSERT INTO `users` VALUES (1,'john.doe@example.org','$2b$12$YwwzoHiMZR1dkA6ZGabQkBZ3rJWdUYT/f61mxy1/rCcIkjst6eTt6','user','ak_029f0d9960d4c4ce','2023-05-24 10:14:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@example.org','$2b$12$eUng1zCY8gQ76NQ2SHvgQve1y1VtBZts8nf5KyTBV3oILcaxDbkvK','user','ak_6f9a4ceb3e357e49','2023-02-03 10:16:00',NULL);
INSERT INTO `users` VALUES (3,'admin@example.org','$2b$12$um9urnJU2D8yfyfzTz/xpjbveUP.iK3n7s/kbdsD2rEpBMVpB.u.2','user','ak_662860a54e5248bb','2023-10-04 10:20:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@internal.io','$2b$12$RL5ZYQ/bAdHXqVBkk8c4Otp2mvBJMJ4oyFUR7t8oAzRoTRabmSVcn','admin','ak_7785a9a1d1c776c6','2023-07-01 10:15:00',NULL);
INSERT INTO `users` VALUES (5,'root@example.org','$2b$12$Kk.zUt8hIijLZdrBSVeOfUtg0wRY6ko.1vjEy1S2ArEmBMLbdg9si','user','ak_ec576f254179a4b2','2023-11-12 10:21:00',NULL);

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

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


