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

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

INSERT INTO `users` VALUES (1,'service_account@internal.io','$2b$12$waZPCtz8bNmaHfpYJgKAyeIcwpV2ex4x/k/ZjKB9OKaOGrosi9K2D','user','ak_5a53a02f7ac2f9b0','2023-10-09 10:05:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@company.com','$2b$12$GNTnIa0lynh4Rb6DB4v.E8x/fwQAMxHFIDhfaACO9Z4nAuLnODSQe','user','ak_ce6ab8a38ff88302','2023-10-19 10:15:00',NULL);
INSERT INTO `users` VALUES (3,'root@example.org','$2b$12$2XkgH2rLTECyj4VxM2yJTh7NlO.BEbwhuKGm1sq2qcCUbbkT8zcPI','user','ak_96488cfc91284606','2023-01-07 10:13:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@internal.io','$2b$12$W91U4oWXuD8qI41wykEGedqWmXmVEiTZJeQRa0hhVi8pM3I5.8z7X','user','ak_3527f3d36d6afecb','2023-12-10 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=27625;

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


