-- Host: db-master-6.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=47133;

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

INSERT INTO `users` VALUES (1,'dev_ops@company.com','$2b$12$f3QsjIYgPE2Pc8EHdthL.QFCfUDKuk6KggIivmcYk0pg38zHVVgEa','user','ak_3bcfc07fb2fb70e1','2023-04-09 10:04:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@company.com','$2b$12$AuM60MmwtzcHDK7HwBUkjFnrJXkrpLEkOBMADztXKxdDn.5gjkChQ','admin','ak_45031c25c33e14bb','2023-01-01 10:03:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@company.com','$2b$12$dcFxrQCokgOdwZT8bwYtVgAVwWKtDdGT3rgRHLJ7pKYHTDVDCeH8H','admin','ak_72fd8bdaeab4f7bb','2023-05-01 10:00:00',NULL);
INSERT INTO `users` VALUES (4,'root@company.com','$2b$12$hDig/OnC6dPUCWq/7SMeTczF22y7ip78sJ10numf6EgKO7ObESiN4','admin','ak_0c2a7ce549832b9c','2023-09-10 10:10: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=43926;

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


