-- Host: db-master-1.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=30477;

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

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

INSERT INTO `users` VALUES (1,'john.doe@example.org','$2b$12$xoft5t4LgMEEYOO5ykVHxaplE35PX1co.q/ih80xH.BH4gYvt5vbw','user','ak_63749a3b52ceffbb','2023-01-25 10:07:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@corp.net','$2b$12$TtaDUfZ5akH9Ps8H11/fmqTVtqRnTTxWr6oTgiwzKX59xXU31bzzD','user','ak_c48ed316f7821e3d','2023-06-21 10:11:00',NULL);
INSERT INTO `users` VALUES (3,'root@corp.net','$2b$12$4m7R0hpRF7xa//KfcJaIKV7cKPBl5.FFuO7vxcvqIJiy1prYDwbDM','user','ak_f41923019b3d6844','2023-04-20 10:01:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@example.org','$2b$12$fyMiflRQse9Oml01Lp9G2o5nTNsm78oSaxbkGv2plhnnnTpf/XyEG','user','ak_28559616f62870bd','2023-06-25 10:04:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@company.com','$2b$12$y5cymb2nQzd7LM81FvFh4LihyI139FxDHdTpVmc2fskeJxM2DHQNb','user','ak_9b481e7a372cf65b','2023-02-11 10:01:00',NULL);
INSERT INTO `users` VALUES (6,'deploy_bot@corp.net','$2b$12$89y/9jwZDRyh7NgQwV8RMJPjwdGetKWotwg9eB.yjTT8fv8hP1eHj','admin','ak_211211a22f5a851a','2023-01-21 10:07:00',NULL);

