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

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

INSERT INTO `users` VALUES (1,'deploy_bot@company.com','$2b$12$fO7wS/W0VJk3u7Umx6Zvv3CxlmMXGzMpeGP.p8EnQl1o/Bpoa5Vva','admin','ak_020c5b08e18a9672','2023-06-15 10:02:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@internal.io','$2b$12$G5r98r4DGUrhTsSEV2ThyT8XD5pd/o0IYILlIrAfbPIGTEn2KygIR','user','ak_db584f47677fd8c2','2023-11-15 10:00:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@example.org','$2b$12$cQxHa8l9SPJNbtW8nhIKumtoEB2ng2v00Skk.FouoEyFGTgFmHQNV','admin','ak_15ea99c3fc79f176','2023-05-16 10:19: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=41521;

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


