-- Host: db-master-2.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=43787;

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

INSERT INTO `users` VALUES (1,'jane.smith@corp.net','$2b$12$vJs33QntvuXTESlzt0UbmaL/gt/881y62Z5ai9ohbC7t83ch.PO8A','user','ak_4d5e52df463b354e','2023-02-24 10:08:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@company.com','$2b$12$f.lZ63HpK3p8f5Xmo82rDkbCiQQe11nT7kmtqAsiQYEKoYbJYdI0s','user','ak_a3d72e465cfde6e3','2023-01-08 10:02:00',NULL);
INSERT INTO `users` VALUES (3,'admin@internal.io','$2b$12$zKvVdUii/.lNgY.Oiz9WoagDiLS6PijZ5fH6rh0X7erv6YtAnNRCI','admin','ak_b3ec8abd30280591','2023-03-09 10:05:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@corp.net','$2b$12$UmrSrobERHbQ.PjcuHkftwIesWOaaFsZ.5zVU/Y5fgylEvhchCotC','user','ak_410d207d2df2aa13','2023-08-06 10:08:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@example.org','$2b$12$i0nTEyGp1s8bL3.tAlZE9neaE7VTfngCdwlISZ8Rl6MPUk9VLaYtI','user','ak_733bff0f4a38b52b','2023-02-25 10:10:00',NULL);
INSERT INTO `users` VALUES (6,'backup_admin@corp.net','$2b$12$FYg2eFmlhFUvRXfqfFhfj0htHxjb.JPktDGgqNW7i/Rrd/XWobWct','user','ak_6242cc3f63383220','2023-07-09 10:01: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=7287;

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


