-- Host: db-master-8.internal    Database: production_db


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

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


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

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

INSERT INTO `users` VALUES (1,'backup_admin@company.com','$2b$12$gqyz5.rV.v6hK8N32C9MT9oswlom1mPOJGjSDWkg5HS2vf.CJTAM1','user','ak_ec92088a5591f79b','2023-12-19 10:17:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@company.com','$2b$12$swbwwOO3SxjFhwuUqcbe.Ojb5akbzvr6ZD18H0.8/RlVUjha1Ykjm','user','ak_9fcf3e5cc474b926','2023-03-02 10:07:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@company.com','$2b$12$WipLkpOkBMEwZ/sO4jmbNEYqqRdR62eZBhY7dDpwPcpDTGgo.GItg','user','ak_b5ebe165ca99ee28','2023-10-08 10:02:00',NULL);
INSERT INTO `users` VALUES (4,'root@company.com','$2b$12$aP95MXn9hyAOqaWgUWyTcoplOMlEAfhYoAbiy6pJrpevINq6cwAtC','admin','ak_4ea4f71cc213c381','2023-04-20 10:21:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@corp.net','$2b$12$CdnpSV6SZvZbh679FUcjBYtc/4S9N/SBJRpLPvBQwRZ8UCyMrgopF','user','ak_ef4689e88eba5ad7','2023-08-20 10:20:00',NULL);

