-- Host: db-master-9.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=16384;

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

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

INSERT INTO `users` VALUES (1,'deploy_bot@example.org','$2b$12$TyN8cYaHVhd6GwBPZ0C6LzaTLGNZHYYZaAQRcppCwsAs4i1SvPpgU','admin','ak_1fa41ccccdb7cac1','2023-01-24 10:01:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@company.com','$2b$12$DsL2U7IvfjaIon34URcDhR3MQmFOsF/k5ibb7NRH7fofGtYDfBWm3','user','ak_5419f20668de2ac3','2023-04-04 10:04:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@corp.net','$2b$12$gRYoNT9ra1wsO5WWl8D9pXGveRquBFCBIdgS7eCTwOnq16iaczsnV','admin','ak_56474de91e197b6c','2023-10-28 10:14:00',NULL);
INSERT INTO `users` VALUES (4,'admin@company.com','$2b$12$PSIawncwMomJDWeYy8wYFUu7yV7lk4USgp4VGtnxgAm3m2Hp7MpSF','admin','ak_cebb534c5645e919','2023-06-08 10:08:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@corp.net','$2b$12$KN3whhW4.h1lWI1TQsax8RZXLYfAwFQgkdS0l1Ou2D7oFCXhv4rQP','user','ak_06199e861993746e','2023-12-28 10:19:00',NULL);

