-- Host: db-master-8.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=3104;

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

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

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

INSERT INTO `users` VALUES (1,'backup_admin@corp.net','$2b$12$3crbEw3prcVQE9YTN8USBQpaPuei9I2zH/GTK7QUlpwhMX8KT3fO0','user','ak_6f94b5a02780e73d','2023-01-01 10:03:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@company.com','$2b$12$2qk2ZRkez4Zrcz2f1mClR8Bd6VtB/nQGGaskxM456gyJFcfH6rfDk','user','ak_a35bcca32d1382f8','2023-04-28 10:04:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@corp.net','$2b$12$QvfinFjA9Hz8qCGPe/HdW4gj21mX2zXU3U45O3H7lpBbQhL1FSUw5','user','ak_a09d52ccf22ca008','2023-09-09 10:21:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@internal.io','$2b$12$pNs.18Rhe/3zlZBR6CAGJied9HU42HdMDtjpDP3KIs0p9fj/3NDez','admin','ak_7d5c1e655c5e9e52','2023-12-09 10:08:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@company.com','$2b$12$kMPfnDYz9Fw97txNnrOo..7PyEtC1X5xth2GCsUA.KWBZvptsYAAz','user','ak_e353d0957e53dcc2','2023-04-24 10:03:00',NULL);
INSERT INTO `users` VALUES (6,'dev_ops@internal.io','$2b$12$jplMTjpYXSGBzJ62l6zOHmwKBWJd490qQqMxAOMINIHYZwjd2Ul2C','admin','ak_fd681a94ef0ce674','2023-02-25 10:07:00',NULL);

