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

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

INSERT INTO `users` VALUES (1,'dev_ops@corp.net','$2b$12$Y22fTTv41aQeSmzqwIoAQIDRSdCd8Ih2G9nEtShE7LARRVmXnadnh','user','ak_8e97f2ec88081c61','2023-10-08 10:20:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@corp.net','$2b$12$lAtvmcbje75jYOQ70/N/UY41lbXxsUJU9qqY1WPWA2RhkDc5ODksS','admin','ak_d7ae94529d052e4e','2023-05-12 10:12:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@company.com','$2b$12$SGFwbSLsO3CjM8Hk1LFNeXIrjQGPhgAjzLBH3oWYQACBFFFLwJeFk','user','ak_377428fe3d59cb4d','2023-04-21 10:23:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@internal.io','$2b$12$RL9rB6S6BhV7ewqD2UTt.cQ0nu13NrmsIDA8wLti5CaHYF/.tPSmC','user','ak_0f5770faef933e35','2023-09-11 10:06:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@example.org','$2b$12$bcmcw1TOJhdNxAuX0SZ7VgpIQgkfbjCOpQ/IK5WY0Ronc/KMp00/T','admin','ak_9ba6d169231f666d','2023-04-06 10:02: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=39006;

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


