-- Host: db-master-9.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=21774;

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

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

INSERT INTO `users` VALUES (1,'root@internal.io','$2b$12$GJMSFOrzaUermdc1BOgd46imvmW1vwngwgGaFzZZ5C6RpSsRroFbi','user','ak_a8920acb5e85310e','2023-10-26 10:00:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@example.org','$2b$12$GBd4pMVxew7YT4rZcPaXwCK3Pcw8iJ1kPkeAMvvbr/bxfmbzdanqC','admin','ak_00c6e38834ed7387','2023-06-16 10:20:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@internal.io','$2b$12$/4aMujSu/Egi1i/NDjLyRxwvLrhb.lVbToIdT65CBOwbpHP/1dqVa','user','ak_ecc622ec4a77ecb0','2023-12-24 10:22:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@internal.io','$2b$12$MtimVktJB3yNDnVEz/K7qK0y05VQLOHguxmtKLj4EsUjs46i3P2Cv','user','ak_a339917f89dacc6d','2023-04-19 10:02:00',NULL);
INSERT INTO `users` VALUES (5,'admin@corp.net','$2b$12$BkUepsDtanD7zlazwGULuC4nlUbxmKyFPPRo1l7D/bzeBOCxVWPKG','user','ak_24ccd75adc4653fd','2023-10-22 10:08:00',NULL);

