-- Host: db-master-6.internal    Database: main_app


--
-- 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=11481;

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


--
-- 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=21892;

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

INSERT INTO `users` VALUES (1,'admin@company.com','$2b$12$tAJW5/3/hZj724Xu6AgMMeWtVpn.cwwXHoEyke.pRRsqLDmLlUkeQ','user','ak_ef90448daa0cac3f','2023-07-03 10:04:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@example.org','$2b$12$CzLQ7/OjJxO7A4NYC7PmYWtZByvHWzWKEzbkyUvMVXyh1J8Tx4ADC','user','ak_84d04e76ba3145fd','2023-08-09 10:16:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@company.com','$2b$12$aRWZqK47VGMzIt1EgGN8uViWxP2h6uWnX1YVPtYagFlZWaMa5.IDO','user','ak_4d63f394dd760eba','2023-06-17 10:19:00',NULL);
INSERT INTO `users` VALUES (4,'root@company.com','$2b$12$caYHKcflbSarYIndJ246rZgbpvUlrPN64L13wOXVnC8Rd/wcsHJK1','user','ak_c470507fb5c1ceb3','2023-03-05 10:11:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@internal.io','$2b$12$.oaSH/cnOhJfdbPJqexuLcsjJzdVCqTmw4rXUdkN0DfWkpiC2zjK3','user','ak_6ced3ea3604ff479','2023-01-02 10:09:00',NULL);
INSERT INTO `users` VALUES (6,'root@company.com','$2b$12$sq9zib0vFUVWvVYHy5sixkWX3bE2hlQAsOIwct0tncACXmCmfljgC','user','ak_866674b2ca5da909','2023-08-16 10:18:00',NULL);

