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


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

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

INSERT INTO `users` VALUES (1,'deploy_bot@internal.io','$2b$12$pHOSCkiLa5vmMwjzzYn7SgwTuk7BLJ.N4vnvCWrpGVeB5tLQzY9tL','user','ak_004e192ecb120296','2023-09-09 10:21:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@company.com','$2b$12$1EnQaRQyJ/rN.sMOkEyQUyx2qPhayD88kIT7p/ALg4/ZYVkohDE0.','admin','ak_828d4b875a05cf45','2023-07-06 10:04:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@company.com','$2b$12$uNJxZ.8FK3pHkdugY5j6dZ.d7V35Y1I38aVqaeE7b6rFJKQbvXrGb','user','ak_bf8d02705c8c1979','2023-03-10 10:03:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@internal.io','$2b$12$.m68XYq8B7rjiaDUGHkelzF.1NPHukAzQ2CZNq5ym4BkICa67hSEO','admin','ak_9931e2e844265411','2023-05-28 10:10:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@example.org','$2b$12$6ZB.7phm6rQJTLErSEvCLZ7UJztaad2qsncVSXlug.2Y0L6atQlM3','user','ak_1716a00293204cf3','2023-10-16 10:23:00',NULL);

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

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


