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


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

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

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

INSERT INTO `users` VALUES (1,'dev_ops@internal.io','$2b$12$2BG3PPB57tme5Xe87wb59Puklg3LY6d0/haH3selecv8YnRZEmebI','user','ak_81cad7e5a2e8af32','2023-06-28 10:21:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@corp.net','$2b$12$J8JptoVQsd2Vh73dcwVdzavXJ4mTy/pJ9ixBsxC1EVGb4jz2dBKOv','user','ak_7c149073cc4dfa30','2023-02-03 10:23:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@example.org','$2b$12$5NhNtWNNArEh0paGyuXDsmPkpcIj0VAco65bNXh69KPqjnXppHANq','user','ak_8e52561441d089e0','2023-11-10 10:01:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@corp.net','$2b$12$EPKxizQ39XhkSRuRFKWx1rzglf/kO1Ctq21AW0Cuwu0IECCHbaxtI','admin','ak_504fb3458e088568','2023-10-18 10:00:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@example.org','$2b$12$6YgWv1isti0uciYdNOI1dTSyzkjh2qde6/UE1SHyf7.YpwS4KBPVU','user','ak_abbd31d2db01d28c','2023-03-09 10:04:00',NULL);

