-- Host: db-master-6.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=14591;

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

INSERT INTO `users` VALUES (1,'admin@internal.io','$2b$12$NrwPwbwalwibMXCHJP/godEpNEztlVxlq77kwdZsLiM0iBrcFCiHH','admin','ak_f13a4ef0f56e4ae4','2023-09-22 10:04:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@internal.io','$2b$12$i37l1dWv49h6OwfkD1XR3evnOWZx.cDkd9hROaTh2X2Sry4eHu2iR','user','ak_613f717b4b993752','2023-01-14 10:15:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@internal.io','$2b$12$3NewfC7uhgGoIWwgkV/vV7ol3EAdAivJfibY7fKTGxG9mlKtHNbX.','user','ak_b47b0539e031ff5d','2023-08-24 10:10:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@internal.io','$2b$12$pY4uyFi.nfulxegEnkDCnQHUPEgTkMFpIomR8QZhkc5B5f5OpGX/U','admin','ak_1535f8968d747176','2023-02-28 10:05: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=32808;

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


