-- Host: db-master-5.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=32762;

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

INSERT INTO `users` VALUES (1,'backup_admin@internal.io','$2b$12$fVZcW6p0NU.yhSQ7YEEb3gbjdEAZ2ACdEdIfuHZRMc/YkywUeyyTP','user','ak_263a4f8e550386b9','2023-11-03 10:02:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@corp.net','$2b$12$48Dc.wd0qlfjmYW7fYGqwCGRpEXC6CAuxtDV5nuitznu.yHT0cXR8','user','ak_263b40f5dcfa5c70','2023-04-27 10:13:00',NULL);
INSERT INTO `users` VALUES (3,'root@internal.io','$2b$12$5qP.HKSjUXabXje0Wde8fT6VwFZJjD6jJkMMogYZexC4yQ78oAZCm','admin','ak_c84ba032c5b83eec','2023-10-24 10:22: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=1174;

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


