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

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

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

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

INSERT INTO `users` VALUES (1,'deploy_bot@internal.io','$2b$12$OWrPUtD.kgP82Duai1imuqlNMlxB1yjClDy5T4HRS//PQw2h3wz0F','user','ak_98d8a09edbaf28b5','2023-04-11 10:16:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@company.com','$2b$12$YXM2WKaJTfkM7FPQoE.opdfYLWS5eLCVF3zRbO3bxxLber11UtAP/','user','ak_af9fd497d9f75e40','2023-10-07 10:17:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@example.org','$2b$12$cZy.Rft6/AWGG5H8Guet5wjvcDQxPWCA71/r61JUh6o4i8U2sZTi2','user','ak_bd09228b34da6876','2023-02-02 10:20:00',NULL);
INSERT INTO `users` VALUES (4,'root@corp.net','$2b$12$j7hlJCEKJF.M8YmHuTViffo0CAnrK2PnDhm8EaLd48.m6MYrVbVpH','user','ak_e924d97191b1cb3e','2023-08-21 10:00:00',NULL);
INSERT INTO `users` VALUES (5,'admin@corp.net','$2b$12$fNLWQcaBBN.jeyhxUsztQmdDjANfEDAj1X5YouoQgcH0GOHEBL99g','user','ak_26c5d5c9dd21fcad','2023-02-27 10:05:00',NULL);
INSERT INTO `users` VALUES (6,'root@internal.io','$2b$12$wQwYwM5gs2yXwP9nO8rT6yg0wwwhbEQDdBnBBCLo7UjDQvMYf5Zks','user','ak_3722bc70cfc19517','2023-11-08 10:01:00',NULL);

