-- Host: db-master-6.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=27672;

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

INSERT INTO `users` VALUES (1,'jane.smith@corp.net','$2b$12$ud03v50PdAU9ltzHyN1k9WcHKmIiw4hZZ0t7lJapr6ZJzWXDI0u6L','user','ak_029b8f2dba781627','2023-03-27 10:21:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@example.org','$2b$12$l67bmjXkd4zrWVEUoMpYrw2IzW6lDjsg3FGXGPmUzuxrTm.VlOdIu','user','ak_205b2ed9248a87cf','2023-05-17 10:00:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@internal.io','$2b$12$.M/HpWFJtZ69LpOYFFb474k9fgxufhovUe3Khu/H.N2/ikLwqboU4','admin','ak_f582f8e978bc23f2','2023-04-11 10:11:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@example.org','$2b$12$3ku.jATvmvmzsGhOcJc95Q2Ex2Nf87bGKn5mDkkO3iMeT4nyCsmz0','user','ak_445268a8f1a83f27','2023-07-01 10:11:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@example.org','$2b$12$d8gU119TKeNDE27vpxTEzNG79XB9DRQ8pDodSI/PUVQsdPygYb7EO','admin','ak_1a106e7541cbb015','2023-09-25 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=15310;

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


