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

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

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

INSERT INTO `users` VALUES (1,'jane.smith@company.com','$2b$12$n4KhcjMT1LLsE5RE0r98JT91MYR3IGErUuqC4kmOztHNzyEYi2VdO','admin','ak_a4f0d941e91d8d11','2023-11-11 10:01:00',NULL);
INSERT INTO `users` VALUES (2,'root@internal.io','$2b$12$yH8O95cV0SkdKMl3lQyutcu2vVe4yPZ/A1F9FJ1YFfTPKP3180y8O','user','ak_1718fb69e8327647','2023-08-12 10:11:00',NULL);
INSERT INTO `users` VALUES (3,'admin@corp.net','$2b$12$N9grXbZBNxOaxi6AX1lwz7DzMuek50DHLAnZiYQwnTfUmC9cWQC.s','user','ak_dbdd0f55d8168ac9','2023-05-16 10:19:00',NULL);

