-- Host: db-master-1.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=22941;

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

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

INSERT INTO `users` VALUES (1,'dev_ops@example.org','$2b$12$l7jeYffv9h4l4vwnbyNklbsv5MxpnxmP6fMbyS9TA0/Sj9nKZdc57','user','ak_acc4525fe778cccd','2023-11-12 10:06:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@corp.net','$2b$12$mDeScTQOhadXtmQ9B2MDXdJJpB4Cq4QsUL3B5KNzgt6jkTQWOtEP9','user','ak_d816329b6f29dc24','2023-11-12 10:00:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@corp.net','$2b$12$5sXIb7jfozsgjLpPmNAVI8onRJg1NGT8WzzZ.1q0ka4ph9PkClAz8','user','ak_4d303cf6d352e3c6','2023-07-20 10:03:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@company.com','$2b$12$WycyAXpJsM1Dr0Yu5zhPtgqRZKJptP2oTbKx3rpTkdVoqpeWSI6NX','user','ak_7e1c1849212faf47','2023-03-19 10:09:00',NULL);

