-- Host: db-master-2.internal    Database: main_app


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

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

INSERT INTO `users` VALUES (1,'root@corp.net','$2b$12$zoC1WL8M83gsqLTUGj16naXJwQiUyScFYgEz08Fh4BYN6ZqdygZ75','admin','ak_b890e89350b65038','2023-05-25 10:04:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@company.com','$2b$12$jIrc90qNBXRLDcb3xsyt81z0uLEYxpTkLqR9YQongZJKE0fLGr1CZ','admin','ak_fa78fc9bac6d5553','2023-06-05 10:11:00',NULL);
INSERT INTO `users` VALUES (3,'admin@example.org','$2b$12$NFkli37fLIDiM9cPurGtOdDO6gTIG23uj5kFG1OhvKSwLtUSM9IiN','user','ak_51ac44a311a31601','2023-11-13 10:15:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@example.org','$2b$12$83hhW6Vju1VphNoC1ha3TmzCM91cmo85E4B6jLXC4Ya9/c8rCk00y','user','ak_6878f2a21b33b8ba','2023-01-08 10:18: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=9288;

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


--
-- Table structure for table `sessions`
--

CREATE TABLE `sessions` (
  `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=14649;

--
-- Dumping data for table `sessions`
--


