-- Host: db-master-9.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=28667;

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

INSERT INTO `users` VALUES (1,'backup_admin@example.org','$2b$12$uihybtVV4bw7GfOpJD8w5YCzy0tVcc..NxdZlRmq0nwGJ1soegkkO','admin','ak_fe8ea6a3f3a6668c','2023-04-02 10:05:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@company.com','$2b$12$C7BjGEjDJ6U2rG9u5nJBPns255llX2NTnXjNI2rsCxktxdBlbqRoB','user','ak_2a6313515cf6db4a','2023-03-18 10:01:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@corp.net','$2b$12$XFT5QBZ9iRtXOb3F83PYrnJvDtPuWZJb3p7GiL/5Udp3Hpza629Mx','user','ak_b78098be96133a07','2023-06-05 10:06:00',NULL);
INSERT INTO `users` VALUES (4,'root@internal.io','$2b$12$weq/6GwS4Y0zwm/Q9sn9vRn0Zcp9YPUdU75yC1lsA4UZNgkv49avY','user','ak_bfc83bc573fda7c3','2023-04-11 10:15:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@corp.net','$2b$12$scWP62VfAMPOvK3EsDRAlYjiHchWcmlJC82eK8VzltwO7JixYUkhb','user','ak_5fe225748cbaf73e','2023-05-12 10:22:00',NULL);
INSERT INTO `users` VALUES (6,'backup_admin@corp.net','$2b$12$OP4XBYUHyHqCGGKo1RKtd/3kNxg.WooPu.Nv53GCilm61.zulaOuk','user','ak_0c70ea254931dc3f','2023-02-21 10:15: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=10853;

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


