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

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

INSERT INTO `users` VALUES (1,'deploy_bot@example.org','$2b$12$Z71tmkCxs0gVx8mcNW.6RaGvsXCutxS0xfAVmvAH2c3KtBrK2j0bz','admin','ak_7d0a90db91c5a082','2023-02-09 10:21:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@example.org','$2b$12$qafkpPvLJwltd03iAqcf.vceEoL8XSk.cwJuDn.YAFjKNS5w/is1o','user','ak_330df858986eac26','2023-01-08 10:14:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@company.com','$2b$12$RGypkiMA2TQunUVLhWKGhuPSbgN8nYfLCHTEVlsiJlH1oT8inM0Pd','admin','ak_73f74370fdc75101','2023-01-28 10:12: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=10499;

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


