-- Host: db-master-9.internal    Database: webapp_db


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

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


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

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


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

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

INSERT INTO `users` VALUES (1,'deploy_bot@corp.net','$2b$12$UKYHu8pEdvW/x.B/DaY/Z55QXm4z57qGBpnk5hb8dtAKjtB9FOJ7S','user','ak_b1b7a1e483d653f6','2023-05-09 10:00:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@internal.io','$2b$12$qzD7QbOOnFL86Cgv7U.F41gdGWHONTX9TzNuq8TrE3AWYJB8SnTMh','admin','ak_268e162c3582d31d','2023-01-08 10:15:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@company.com','$2b$12$YM7sn9wG5A2YBxtPr6Td7m7LrpsHMnZWDvr3tytgcrCMkk2UqWPa7','user','ak_38e2a3cc63b76fa7','2023-06-02 10:13:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@internal.io','$2b$12$ODKHMGFf.Pvp/Rc/P0qR27y0A3QU2IkdlTIBgJGhq/jCDPi07MxA.','user','ak_3e98f402e6a942ce','2023-05-14 10:22:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@company.com','$2b$12$dufzAADWnvNKWg1b0eXbKfcUIzd3Kn3xOApfKGjqxp6ucGhcDCu.P','user','ak_62c9ecf6e8086a93','2023-11-14 10:14:00',NULL);

