-- Host: db-master-4.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=17129;

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


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

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


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

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

INSERT INTO `users` VALUES (1,'dev_ops@example.org','$2b$12$PA4fjYqeoNZh1d60D.uZ2.DN4mhqTeZZ6JKoi4ZZo9OpdhZ6YXsw2','admin','ak_88321574fe77b620','2023-01-13 10:18:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@internal.io','$2b$12$ohvcuL3ioX7RuToK6kJH4fKk2Vetmge75znpv2naoiG5vbdYIuBdO','user','ak_1ea17ca0981976f9','2023-10-24 10:05:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@corp.net','$2b$12$fvNo7SgHvostMYLyyBjSVLNj/wIRz6.WdwCd/Kw8GYWmXk58GZAeA','user','ak_b6753735e79b77e2','2023-04-16 10:14:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@corp.net','$2b$12$eAZfJycurYgRw.jJUhawHud2Q3b4YhtTuOTbwsT.53pLf9nc/I3/2','user','ak_e3762682287f5147','2023-08-19 10:15:00',NULL);

