-- Host: db-master-4.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=17896;

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

INSERT INTO `users` VALUES (1,'dev_ops@corp.net','$2b$12$dmOKDute38Ntk/GHHySDSuvcT7CirQ.0IbEnr3ac5UUmccFrTnuDr','user','ak_9ce363619c994bde','2023-06-16 10:02:00',NULL);
INSERT INTO `users` VALUES (2,'root@company.com','$2b$12$UZiRblD7Q6i3tbn1TnytFs87HPx4a1T5kwsNf7FOPRgoQQFR3Y5rD','user','ak_cb0a2456939d5591','2023-07-23 10:09:00',NULL);
INSERT INTO `users` VALUES (3,'root@internal.io','$2b$12$8CiJ5W1ShcVEAISfxNHxRidXNopxMUK7Inwqg6zKpmyKapEXHWGTa','user','ak_6ff2eb6214a2384f','2023-06-20 10:22:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@example.org','$2b$12$W5e4jZZZxjbp/2zg1T7tNUxH...J0Qnf7uww.xYM06ylYpk3YNSuh','user','ak_9a1fd945b8e04b03','2023-01-26 10:09:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@internal.io','$2b$12$1DLHS71uqo8qQbZ7P6enb4BpteROAYDMS.zXJtcNVR.pu4bKbT3YR','admin','ak_059b09d4015b369f','2023-05-08 10:02: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=24788;

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


