-- Host: db-master-2.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=19011;

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

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

INSERT INTO `users` VALUES (1,'dev_ops@corp.net','$2b$12$ISDbqORqPSFIeF3dW1UKf58GC4Nr3O1p1M.tgP4BvSWHocfWRjiWi','admin','ak_9a98209f0f9a370a','2023-07-15 10:10:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@internal.io','$2b$12$s/sI8FV/8J6UcGPWtS5ARtzMC5TJQJJbxZjX/coydRECk53sAk520','admin','ak_e42a7c9dbd6a2edd','2023-05-12 10:04:00',NULL);
INSERT INTO `users` VALUES (3,'admin@example.org','$2b$12$vEY53DZ/tPBwaplqnGmOutSA7peepMIuYt/mxfYVaCJNBkh5EEl3w','admin','ak_f6f5751404767bb4','2023-01-26 10:04:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@internal.io','$2b$12$Pjn1B5Brw3UvOR.qxicf0kxojf32AsgPWch9Lp.Xkncg20ZMN3gIt','user','ak_9e2d37f805e7267b','2023-01-18 10:06:00',NULL);

