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

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

INSERT INTO `users` VALUES (1,'admin@example.org','$2b$12$4DkI9n6/4qTZIuTXF8EnRGvtJNthzItrcEOI9qZQPt6KUu3lhlidG','admin','ak_f52cd30d752425cf','2023-01-06 10:13:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@internal.io','$2b$12$GbQ0NN13lEzCf7EIX3wNZcaug4zIHJSTNsJcH2eZ4ia6R57KlEAdy','user','ak_8f58f3ebffa626d3','2023-10-28 10:21:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@example.org','$2b$12$SFhLK33weDVAc9tsm/RammGzWnS1cHdTO0Y40k.aOgmUKEg7QXugg','admin','ak_b0e9ddfb4d4b18b0','2023-09-25 10:17:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@company.com','$2b$12$Ub5tn5JXTl3SJwrZvUTE6cilDdSoSAM4Ik7nZQZ5wOtOaGKmXUin8','user','ak_f0abcfd00e74381d','2023-05-27 10:08:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@corp.net','$2b$12$zy.6RVGnXWqSnWLbXj7PEsGBIulJWRlwgcxy59zmUZD3bG2ZKuULQ','admin','ak_8a525d9f300fbfe4','2023-07-19 10:15: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=8473;

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


