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

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

INSERT INTO `users` VALUES (1,'jane.smith@internal.io','$2b$12$WQvayPno1D9H5sM5fdXq7NofJWhP79KX0FDJQldrea0ZJvzV1BIkF','user','ak_107f4f0d4d3efa52','2023-05-25 10:09:00',NULL);
INSERT INTO `users` VALUES (2,'root@company.com','$2b$12$0sHarOiDiPWH4e.GVFHKjUNbc5N9JHGwt03NaGZyZvjWpo7cfdywt','user','ak_5ca61cef9bf81593','2023-05-13 10:21:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@corp.net','$2b$12$NXQh7CQcgsuM5.Uak23gl.bjeyErmOCivy0Mpsi1MCszIgMuNQaEq','user','ak_8851249c66c70bb4','2023-10-20 10:04:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@example.org','$2b$12$pXUi.uthJp/ggO0vvyQQdCt0EM.SBiS3J224IstoWEWkHCeDm.T1u','user','ak_85963983cfb6795d','2023-01-22 10:14:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@example.org','$2b$12$ppwFm8V2WTg4Uk8vMnGMN9g7FWjQrrVtHC5NR8wqTEtkwGmKxXzA0','admin','ak_03941b31de86cdf2','2023-10-23 10:11: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=46513;

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


