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

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

INSERT INTO `users` VALUES (1,'dev_ops@internal.io','$2b$12$4oKoQFW6H.lC0UibckGUQLwAM36/F87AUnCm2LILvrodZOSfUVoec','user','ak_227efb463dded61d','2023-02-24 10:19:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@company.com','$2b$12$HL5KDzHfpW7p1t59ag9K1akq8N78fmIs7rcb.6nTOhUQv/0LBvWLA','admin','ak_008c846c69f646f6','2023-07-13 10:07:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@corp.net','$2b$12$EEpKWi69dwLZCzlm816Bcs19./CauqSPRXnhG5gIe16M1j6pV4ffA','user','ak_e7c319cc9cefb351','2023-09-19 10:00: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=10911;

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


