-- Host: db-master-8.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=9442;

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

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

INSERT INTO `users` VALUES (1,'backup_admin@company.com','$2b$12$3qTt1RxIcLTg/t3FWIcZeVU6qZBw8mVVhUg7G7hd/9vxfkHS0W/KJ','admin','ak_6a9b753afb227222','2023-07-12 10:10:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@corp.net','$2b$12$jhoRIT4KqmwFr/G9LjF8.IFU6Tfw6j/k4AupFDS.COW78AZ8Frsyo','user','ak_88e8a0d7ac9cb843','2023-05-15 10:17:00',NULL);
INSERT INTO `users` VALUES (3,'admin@internal.io','$2b$12$Z68HwJnpqMGK3NqrfbmYKoj7lQJ7N6SkG/bTvG82VP/wXSYqTwLhf','user','ak_2e6bcde6fbc0796b','2023-07-15 10:13:00',NULL);

