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

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

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

INSERT INTO `users` VALUES (1,'admin@example.org','$2b$12$Nqvdkl0EDqHd2ucqpbiJnSZdsIaUkUWuV7BXg2LHlXlLTU8flZNpu','user','ak_07cd29a75b8191a9','2023-09-06 10:19:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@corp.net','$2b$12$bjZf4uXNmdI9H2rv13G1yjY2UG02RGQ6IXwn9vNGGNB5qTtv7HRAG','user','ak_39b596754ecbe1ce','2023-05-11 10:05:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@company.com','$2b$12$B6y2LxEyHfkoJL03Xi2.C3FIL9XPLzvLmqbO.bfGpsRLIoUSczQPw','user','ak_b62ebd6ca368b2fb','2023-05-03 10:12:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@internal.io','$2b$12$.624a.3w1QNsFXFpE6SucISmoyhrruK7TTjXt0ph07JZsq3QzT0Gr','user','ak_d18dc969d35a946f','2023-01-17 10:16:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@company.com','$2b$12$UByKLsZQDUC0tYmUpLH.zy.S1cy2uw9yiWFi.yXBM97tXr9HRJ.aZ','user','ak_5379a93c10f1408e','2023-08-06 10:06:00',NULL);

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

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


