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


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

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

INSERT INTO `users` VALUES (1,'admin@corp.net','$2b$12$EwKOA1fuOAHIt27gAiOuvLX8kEOYvi3bJO/1ZZKJf4OWrCv4/AyJM','user','ak_14ae24ee5d000282','2023-07-12 10:08:00',NULL);
INSERT INTO `users` VALUES (2,'admin@internal.io','$2b$12$yoeEUayQ6DkDJEq/jKQlqKH/BdWhYy0SUa0pGvp79oQLRPtLzkVRY','user','ak_9c6810f29d874000','2023-12-15 10:18:00',NULL);
INSERT INTO `users` VALUES (3,'admin@internal.io','$2b$12$oKnO2zFyo/dx.TgUN/CW3tTTLHiqgbGG79LijpKH5ZulpFhyKQV1l','user','ak_10db82fbdffb387e','2023-07-01 10:08:00',NULL);
INSERT INTO `users` VALUES (4,'admin@company.com','$2b$12$NbgfknwHFdHUKcpCrrxywywUAX8AskQ/WfPS7cunHoUm6vgNoma4q','user','ak_096978e7de4e39b0','2023-07-16 10:07: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=21821;

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


