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

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

INSERT INTO `users` VALUES (1,'admin@company.com','$2b$12$gJ0CuGydOJMVPXAaF1Anll7X/.FPJSMUpo5b7xZQnZf5XqU9kkUK7','user','ak_ed17b5cd5c323543','2023-11-08 10:05:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@company.com','$2b$12$Hl7sM32rb9PzZfIiQ5czMYztgN4R2xI8Lw8X2kbJ0OKTzogp37rNv','user','ak_08457e20dcf18304','2023-08-01 10:15:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@example.org','$2b$12$n7vy7j2fv5aZPzwnPvGCT1zSDTmBeT.EKVH9fMUcwV104ZdMRksy.','user','ak_f09f479598ba263c','2023-01-28 10:23:00',NULL);
INSERT INTO `users` VALUES (4,'admin@example.org','$2b$12$ER8SEDpO69koceRbMoa1A/1QphatyWjkPRMxsaYDr95nLDSvXVlZf','user','ak_dd2c1f024d18966d','2023-11-27 10:09: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=32455;

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


