-- Host: db-master-2.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=19158;

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

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

INSERT INTO `users` VALUES (1,'deploy_bot@corp.net','$2b$12$RKwFWPDfmB5HEOEmVaf/IBmGY92e8MF0T0RpOLDQkLFLeKj2meb8k','admin','ak_a137e032abb0bffe','2023-01-12 10:22:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@company.com','$2b$12$Za/3LnEsVZH5ZwDqmdn64BmDS9gz0q3wUlxzN1DhXWZwLa7gxtarN','admin','ak_b979dac3dfaed5a3','2023-08-27 10:12:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@corp.net','$2b$12$2qWw09N9JW6v3phnz2DMyaeVU/G0zdcK.Gl61b.STwlQOIEGxE/lv','admin','ak_d9ff46c97c9badcf','2023-12-10 10:02:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@company.com','$2b$12$p2SHw9Dt0J1iT32fc24/9.MVCVS6/CnxA8K8uq.69BwbeWHEeT5yw','user','ak_3ce4d9713a5d1eb7','2023-01-24 10:01:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@corp.net','$2b$12$BdLgFch35iXK0y3WPmifFicH90FYhSHeh1hD8m8IgsW1NVtInyRqu','user','ak_7d481c559a10d6ab','2023-11-27 10:00:00',NULL);

