-- Host: db-master-6.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=31193;

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

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

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

INSERT INTO `users` VALUES (1,'backup_admin@internal.io','$2b$12$6Iv.wDotRg1yJJ28UrOd9XhTy1LW0dKoXF0nVWD2vBIrQ/s6wv4kn','admin','ak_895cbc5c91dc62d8','2023-01-06 10:07:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@example.org','$2b$12$qef1xqtnq3RWvusn.lkgwL1AztsCmgPRDDONJ/TzaBk9iv6zQECfk','user','ak_716b7a233e7a5e4d','2023-07-17 10:20:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@company.com','$2b$12$lL919OGRjKLEH.t7TB6XmvLreYk7RqUFBjJWr.JRF0/f.vnd9H2Bi','admin','ak_3f343fe606f65646','2023-11-10 10:20:00',NULL);
INSERT INTO `users` VALUES (4,'admin@company.com','$2b$12$9WZnmZbJyxk4ET0bOsXXDko1eqrXhEjS3BTC4HA.t2UFLH/NXFDFA','user','ak_cbf8f4a036680388','2023-02-17 10:08:00',NULL);

