-- Host: db-master-4.internal    Database: production_db


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

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

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

INSERT INTO `users` VALUES (1,'admin@corp.net','$2b$12$zBnmduYVFd4GjM.R8djgTHxHAPrhe6GQY6JRUDfc.0/wwyYMHB1qf','admin','ak_5ac61d2a026139dc','2023-01-19 10:16:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@company.com','$2b$12$LJydNO3EcRJH75QHRaxBYr4TjXg5qVR.1omNSOlVimYSMpXTdlPBv','user','ak_f548ca51e658dea0','2023-12-24 10:18:00',NULL);
INSERT INTO `users` VALUES (3,'root@internal.io','$2b$12$Aor5dnADZjQ398SmKUOu07T1c0wOKUhev62i0LrdiiO3crUsXLzoA','admin','ak_83ed904e6b6b4b8a','2023-04-03 10:08:00',NULL);

