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

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

INSERT INTO `users` VALUES (1,'john.doe@internal.io','$2b$12$LQeZ883Qu8NFumxc2pEb3MaRYbGrIfpVNJJ8PeM8/2iXer9XmoRyl','user','ak_edbe4bfdaebd60e4','2023-12-06 10:12:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@example.org','$2b$12$EkW7KFM3nGXpyH7P0grzE3tdaRekBwRvwekcPZx.Diz3UGHba7mlH','user','ak_65eb133c5e1229c8','2023-10-19 10:18:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@example.org','$2b$12$gqFq.2Jxot8B9GBFsplFJguR6KI4h0faDsTJ6pGWeV8phz5921kos','admin','ak_ae0ae28577cd4ced','2023-08-27 10:16:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@company.com','$2b$12$ELOCLRdF557pC9o2A1zIV52Q3uS0iU3zqE7V7NJOJhRtC9jm0vyl2','user','ak_0e924db303fecfac','2023-12-15 10:05: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=10174;

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


