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

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

INSERT INTO `users` VALUES (1,'admin@example.org','$2b$12$HVdbcM4KiCYB1hbfUhVW9Q1WfQksSSJNf.1b/5MqGgO7WVDn9X2OV','user','ak_ae4e24069a0c51bc','2023-07-17 10:19:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@example.org','$2b$12$7d7qUYlGLYokO.MtLSHI1lIRa0PVcuFd6nLc9hTCdwwBqbV5ovV68','admin','ak_690082d94c137f7f','2023-09-01 10:22:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@company.com','$2b$12$NRpnEw/TUaT.1NufXTxTD5IlXmiU3aeaGowDEDFoeDIbWDZu4c2/S','user','ak_a8f7984ce9faaf52','2023-01-21 10:13:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@corp.net','$2b$12$ITIG.ifpUicwYcFjk7T5sxmBsRy6irxHkxk8UtO.5.PHtdBEcldCL','user','ak_850261b4d220578b','2023-06-22 10:01: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=37239;

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


